aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsimportvisitor.cpp
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2024-09-20 14:23:07 +0200
committerSami Shalayel <sami.shalayel@qt.io>2024-09-24 14:49:53 +0200
commit11de566dabcb1204dbaf96ee867d72d0952ccfa5 (patch)
tree4cf7cd8972aaa473e0415f7a0eda151d57a53e94 /src/qmlcompiler/qqmljsimportvisitor.cpp
parent2f5336c7d32e506d39473775c218b62ee2615926 (diff)
qmllint: ignore custom parsed list bindings
Amends 56c16d0e9770b39df142ba946357562be6b9731c that only ignores "normal" bindings from warnings in custom parsed contexts, and also ignore list bindings from custom parsed contexts. Pick-to: 6.8 6.7 6.5 Change-Id: I66538ddaac49686a5ad6b6560ddbdbd50bebb717 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsimportvisitor.cpp')
-rw-r--r--src/qmlcompiler/qqmljsimportvisitor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsimportvisitor.cpp b/src/qmlcompiler/qqmljsimportvisitor.cpp
index cb5abd5d7e..26b5348f21 100644
--- a/src/qmlcompiler/qqmljsimportvisitor.cpp
+++ b/src/qmlcompiler/qqmljsimportvisitor.cpp
@@ -2220,6 +2220,12 @@ void QQmlJSImportVisitor::endVisit(UiArrayBinding *arrayBinding)
const auto propertyName = getScopeName(m_currentScope, QQmlSA::ScopeType::QMLScope);
leaveEnvironment();
+ if (m_currentScope->isInCustomParserParent()) {
+ // These warnings do not apply for custom parsers and their children and need to be handled
+ // on a case by case basis
+ return;
+ }
+
qsizetype i = 0;
for (auto element = arrayBinding->members; element; element = element->next, ++i) {
const auto &type = children[i];