aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmltc/main.cpp
diff options
context:
space:
mode:
authorAndrei Golubev <[email protected]>2022-06-08 16:36:56 +0200
committerAndrei Golubev <[email protected]>2022-06-09 16:22:29 +0200
commit3234f5baeca8232a21ad1a5c5d093b2a1f37a84a (patch)
tree932ef81097272da5f4a4444af91e6eaaa3641b88 /tools/qmltc/main.cpp
parentd28f088371befbe5b50fed37e41025afa7b72c0c (diff)
qmltc: Move C++ naming collision check to QmltcVisitor
Relocate the prototype code that tests for reserved C++ words used in QML document over to QmltcVisitor As a drive by, remove internal name update code as well since this is already covered by the visitor for a long time Pick-to: 6.4 Change-Id: I88b2ea6b2f0ac313357b36b6cf8957e99ab56edc Reviewed-by: Sami Shalayel <[email protected]> Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'tools/qmltc/main.cpp')
-rw-r--r--tools/qmltc/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qmltc/main.cpp b/tools/qmltc/main.cpp
index 2c27d508d1..8d1d0de73f 100644
--- a/tools/qmltc/main.cpp
+++ b/tools/qmltc/main.cpp
@@ -232,6 +232,7 @@ int main(int argc, char **argv)
QmltcVisitor visitor(QQmlJSScope::create(), &importer, &logger,
QQmlJSImportVisitor::implicitImportDirectory(url, &mapper), qmldirFiles);
+ visitor.setMode(QmltcVisitor::Compile);
QmltcTypeResolver typeResolver { &importer };
typeResolver.init(&visitor, qmlParser.rootNode());