diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2021-08-02 16:50:27 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2021-08-04 17:15:22 +0200 |
commit | ef075016527c48f6ec64c088edb400ab52211d75 (patch) | |
tree | 7f33ce9b18ae1ef22cc00c2b8d7c43f45885e277 /tools/qmllint/main.cpp | |
parent | 283816d07dee9afaa9fa183b9102076f32568449 (diff) |
qmllint: Move use-before-declaration warning out of checkidentifiers
Another step to making checkidentifiers obsolete.
Change-Id: I14be7491387200101b66e0930faf16e9b61d4159
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmllint/main.cpp')
-rw-r--r-- | tools/qmllint/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp index fba020cd6c..ee16409f4e 100644 --- a/tools/qmllint/main.cpp +++ b/tools/qmllint/main.cpp @@ -28,6 +28,7 @@ #include "findwarnings.h" #include "codegen.h" +#include "codegenwarninginterface.h" #include "../shared/qqmltoolingsettings.h" #include <QtQmlCompiler/private/qqmljsresourcefilemapper_p.h> @@ -190,7 +191,8 @@ 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, true); + CodegenWarningInterface interface(&v.logger()); + qCompileQmlFile(filename, saveFunction, &codegen, &error, true, &interface); success &= !v.logger().hasWarnings() && !v.logger().hasErrors(); |