aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-02-12 11:32:53 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-02-19 13:14:05 +0100
commitf74d278994d35a3ac154ddd411009a785dd46800 (patch)
treec026d70a6e89ef876794a80a6fee5f5bfa34eedf /tools
parentbf8888971732dbd0012eadc53cddada59bb17b2e (diff)
qmllint: Fix false unknown grouped property warning
We seem to be checking grouped properties twice by endVisit(UiObjectBinding*) and endVisit(UiObjectDefinition*). So the UiObjectBinding variant is removed here as this gets run before all type information is available. Change-Id: Idfe23869792f787df6109cde3b6bc1d96cce3dc3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 4660f51f25a6c56182dff0ea24f7c1ad2bac9cea)
Diffstat (limited to 'tools')
-rw-r--r--tools/qmllint/findwarnings.cpp8
-rw-r--r--tools/qmllint/findwarnings.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/tools/qmllint/findwarnings.cpp b/tools/qmllint/findwarnings.cpp
index 17e73c770c..110f6d4627 100644
--- a/tools/qmllint/findwarnings.cpp
+++ b/tools/qmllint/findwarnings.cpp
@@ -404,14 +404,6 @@ bool FindWarningVisitor::visit(QQmlJS::AST::UiObjectBinding *uiob)
return true;
}
-void FindWarningVisitor::endVisit(QQmlJS::AST::UiObjectBinding *uiob)
-{
- QQmlJSImportVisitor::endVisit(uiob);
-
- if (m_warnUnqualified)
- checkGroupedScopes(m_currentScope);
-}
-
bool FindWarningVisitor::visit(QQmlJS::AST::UiObjectDefinition *uiod)
{
using namespace QQmlJS::AST;
diff --git a/tools/qmllint/findwarnings.h b/tools/qmllint/findwarnings.h
index 96cd0c3897..138f83098d 100644
--- a/tools/qmllint/findwarnings.h
+++ b/tools/qmllint/findwarnings.h
@@ -109,7 +109,6 @@ private:
/* --- end block handling --- */
bool visit(QQmlJS::AST::UiObjectBinding *uiob) override;
- void endVisit(QQmlJS::AST::UiObjectBinding *uiob) override;
bool visit(QQmlJS::AST::UiObjectDefinition *uiod) override;
void endVisit(QQmlJS::AST::UiObjectDefinition *) override;
bool visit(QQmlJS::AST::UiScriptBinding *uisb) override;