aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsloggingutils.h
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2025-04-25 15:08:40 +0200
committerSami Shalayel <sami.shalayel@qt.io>2025-05-31 07:02:15 +0200
commit64bc8887f25146b24ffe4e3f25f8e003b8992c24 (patch)
tree2035ce5587b625abd693c947456ea1817127ae6c /src/qmlcompiler/qqmljsloggingutils.h
parentcdd5cc94374ce32e55bfccbba07d144437b78b3a (diff)
qmllint: implement MaybeWarnEqualityTypeCoercion
Warn in qmllint when encountering "==" or "!=" about possible type coercions between JS objects, numbers, strings and booleans. Task-number: QTBUG-129307 Change-Id: Ib9b8057c1b4eca760c4f40825f4053aa35f1680b Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsloggingutils.h')
-rw-r--r--src/qmlcompiler/qqmljsloggingutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsloggingutils.h b/src/qmlcompiler/qqmljsloggingutils.h
index 05067c7d64..5078f3a523 100644
--- a/src/qmlcompiler/qqmljsloggingutils.h
+++ b/src/qmlcompiler/qqmljsloggingutils.h
@@ -60,6 +60,7 @@ extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlDuplicatePropertyBi
extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlDuplicatedName;
extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlEnumEntryMatchesEnum;
extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlEval;
+extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlEqualityTypeCoercion;
extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlFunctionUsedBeforeDeclaration;
extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlImport;
extern const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlIncompatibleType;