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 /src/qmlcompiler/qqmljscompiler.cpp | |
parent | 283816d07dee9afaa9fa183b9102076f32568449 (diff) | |
download | qtdeclarative-ef075016527c48f6ec64c088edb400ab52211d75.tar.gz |
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 'src/qmlcompiler/qqmljscompiler.cpp')
-rw-r--r-- | src/qmlcompiler/qqmljscompiler.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/qmlcompiler/qqmljscompiler.cpp b/src/qmlcompiler/qqmljscompiler.cpp index 7850a27831..9068fcd6b0 100644 --- a/src/qmlcompiler/qqmljscompiler.cpp +++ b/src/qmlcompiler/qqmljscompiler.cpp @@ -194,16 +194,17 @@ private: bool qCompileQmlFile(const QString &inputFileName, QQmlJSSaveFunction saveFunction, QQmlJSAotCompiler *aotCompiler, QQmlJSCompileError *error, - bool storeSourceLocation) + bool storeSourceLocation, QV4::Compiler::CodegenWarningInterface *interface) { QmlIR::Document irDocument(/*debugMode*/false); return qCompileQmlFile(irDocument, inputFileName, saveFunction, aotCompiler, error, - storeSourceLocation); + storeSourceLocation, interface); } bool qCompileQmlFile(QmlIR::Document &irDocument, const QString &inputFileName, QQmlJSSaveFunction saveFunction, QQmlJSAotCompiler *aotCompiler, - QQmlJSCompileError *error, bool storeSourceLocation) + QQmlJSCompileError *error, bool storeSourceLocation, + QV4::Compiler::CodegenWarningInterface *interface) { QString sourceCode; { @@ -231,7 +232,7 @@ bool qCompileQmlFile(QmlIR::Document &irDocument, const QString &inputFileName, QQmlJSAotFunctionMap aotFunctionsByIndex; { - QmlIR::JSCodeGen v4CodeGen(&irDocument, *illegalNames()); + QmlIR::JSCodeGen v4CodeGen(&irDocument, *illegalNames(), interface); if (aotCompiler) aotCompiler->setDocument(&v4CodeGen, &irDocument); |