aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljslogger.cpp
diff options
context:
space:
mode:
authorOlivier De Cannière <olivier.decanniere@qt.io>2025-04-29 16:35:10 +0200
committerOlivier De Cannière <olivier.decanniere@qt.io>2025-05-08 12:31:35 +0200
commitfb61c6bb84100b47e6c9aaf59571b15371092c67 (patch)
tree2031d4208637b5c23ed45191fc197b04a170d5e7 /src/qmlcompiler/qqmljslogger.cpp
parent230c1afe3e5c9b01bd2494b3eb9b90fec2844a50 (diff)
qmllint: Warn about duplicate inline components
Fixes: QTBUG-126715 Task-number: QTBUG-129307 Change-Id: I739587bf6d44131d9a0bdcec4df60ab3f53e1a12 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljslogger.cpp')
-rw-r--r--src/qmlcompiler/qqmljslogger.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljslogger.cpp b/src/qmlcompiler/qqmljslogger.cpp
index 5b1c2fee9c..c729a623f5 100644
--- a/src/qmlcompiler/qqmljslogger.cpp
+++ b/src/qmlcompiler/qqmljslogger.cpp
@@ -43,6 +43,8 @@ using namespace Qt::StringLiterals;
true) \
X(qmlDeprecated, "deprecated", "Deprecated", "Warn about deprecated properties and types", \
QtWarningMsg, false, false) \
+ X(qmlDuplicateInlineComponent, "duplicate-inline-component", "DuplicateInlineComponent", \
+ "Warn about duplicate inline components", QtWarningMsg, false, false) \
X(qmlDuplicatePropertyBinding, "duplicate-property-binding", "DuplicatePropertyBinding", \
"Warn about duplicate property bindings", QtWarningMsg, false, false) \
X(qmlDuplicatedName, "duplicated-name", "DuplicatedName", \
@@ -119,6 +121,7 @@ using namespace Qt::StringLiterals;
"positives when checking for unqualified access", \
QtWarningMsg, false, false)
+
#define X(category, name, setting, description, level, ignored, isDefault) \
const QQmlSA::LoggerWarningId category{ name };
QMLLINT_DEFAULT_CATEGORIES