aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmllint
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-08-02 17:16:09 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-08-04 10:15:52 +0200
commit453bd25b498e74e708e66836ef15791e0055e608 (patch)
treeb7ab304f9f07f6be15674f4f1a06dd7d122d8271 /tools/qmllint
parente1fa8df0dadfbd9887d6c186ef7f14725c7e751c (diff)
qmllint: Move 'type not found in namespace' warning to qmlcompiler
Change-Id: Ibe7ae9afbfb7754d16cd0ce13185961e9ae2c769 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmllint')
-rw-r--r--tools/qmllint/checkidentifiers.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/tools/qmllint/checkidentifiers.cpp b/tools/qmllint/checkidentifiers.cpp
index 52e8b068a1..4d643c4817 100644
--- a/tools/qmllint/checkidentifiers.cpp
+++ b/tools/qmllint/checkidentifiers.cpp
@@ -319,7 +319,6 @@ void CheckIdentifiers::operator()(
const QString baseName = memberAccessBase.m_name;
auto typeIt = m_types.find(memberAccessBase.m_name);
- bool baseIsPrefixed = false;
while (typeIt != m_types.end() && typeIt->isNull()) {
// This is a namespaced import. Check with the full name.
if (!memberAccessChain.isEmpty()) {
@@ -330,7 +329,6 @@ void CheckIdentifiers::operator()(
+ memberAccessBase.m_location.length;
memberAccessBase.m_location = location;
typeIt = m_types.find(memberAccessBase.m_name);
- baseIsPrefixed = true;
}
}
@@ -339,23 +337,6 @@ void CheckIdentifiers::operator()(
continue;
}
- // If we're in a custom parser component (or one of their children) we cannot be sure
- // that this is really an unqualified access. We have to err on the side of producing
- // false negatives for the sake of usability.
- if (qmlScope->isInCustomParserParent()) {
- // We can handle Connections properly
- if (qmlScope->baseType()
- && qmlScope->baseType()->internalName() != u"QQmlConnections"_qs)
- continue;
- }
-
- const auto location = memberAccessBase.m_location;
-
- if (baseIsPrefixed) {
- m_logger->logWarning(QLatin1String("Type not found in namespace"), Log_Type,
- location);
- }
-
Q_UNUSED(signalHandlers)
Q_UNUSED(rootId)
}