diff options
| author | Sami Shalayel <sami.shalayel@qt.io> | 2024-09-20 14:23:07 +0200 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-09-25 00:54:22 +0000 |
| commit | 81c12941e498a162d01f212a6b4ae4f2bf276944 (patch) | |
| tree | 1313de9c389a51271584622660c32a04cc2ce9bb | |
| parent | 4278f024612cc54402192ba332f4c97b2a8a9195 (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.5
Change-Id: I66538ddaac49686a5ad6b6560ddbdbd50bebb717
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit 11de566dabcb1204dbaf96ee867d72d0952ccfa5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit a561e44ac4a84aa389deb4fe79c2c810852398e3)
| -rw-r--r-- | src/qmlcompiler/qqmljsimportvisitor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsimportvisitor.cpp b/src/qmlcompiler/qqmljsimportvisitor.cpp index 8b249817c0..44b5690d3b 100644 --- a/src/qmlcompiler/qqmljsimportvisitor.cpp +++ b/src/qmlcompiler/qqmljsimportvisitor.cpp @@ -2209,6 +2209,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]; |
