diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2021-07-09 10:42:51 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2021-07-27 09:43:23 +0200 |
commit | 2eb6d202465166cce052ea6d5d0f570d2b54caf7 (patch) | |
tree | 68b466ea7d974e99c3e9946546a9bb3d7c60d6a7 /tools/qmllint/main.cpp | |
parent | 5e01411c1e2d5c089586135120be6f15ac4d27e8 (diff) |
qmllint: Use type propagator to provide unqualfied access warnings
Do not rely on checkidentifiers to provide unqualified access warnings anymore. Using the type propagator ought to be more accurate and will help remove the relatively hacky checkidentifiers code completely later on.
Change-Id: I40cc040b9455962abbd2ec84cdb494fcec1ab79d
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmllint/main.cpp')
-rw-r--r-- | tools/qmllint/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp index 7f28c4d9cb..fba020cd6c 100644 --- a/tools/qmllint/main.cpp +++ b/tools/qmllint/main.cpp @@ -182,7 +182,6 @@ static bool lint_file(const QString &filename, const bool silent, QJsonArray *js success = v.check(); Codegen codegen { &importer, filename, qmltypesFiles, &v.logger(), code }; - QQmlJSSaveFunction saveFunction = [](const QV4::CompiledData::SaveableUnitPointer &, const QQmlJSAotFunctionMap &, QString *) { return true; }; @@ -191,7 +190,7 @@ static bool lint_file(const QString &filename, const bool silent, QJsonArray *js QLoggingCategory::setFilterRules(u"qt.qml.compiler=false"_qs); - qCompileQmlFile(filename, saveFunction, &codegen, &error); + qCompileQmlFile(filename, saveFunction, &codegen, &error, true); success &= !v.logger().hasWarnings() && !v.logger().hasErrors(); |