diff options
author | Maximilian Goldstein <[email protected]> | 2022-01-10 14:52:30 +0100 |
---|---|---|
committer | Maximilian Goldstein <[email protected]> | 2022-01-17 12:35:54 +0100 |
commit | f19582f630b7af1498cf4d83c2ecb339d51f6ffa (patch) | |
tree | 2259f2bfc3131740d58743e256b0521f2f1f9ba0 /src/qmlcompiler/qqmljsimportvisitor_p.h | |
parent | 6e4dd74bbcb6c67229c87c3113c006df4f11847a (diff) |
qmllint: Enable compiler warnings for pragma Strict
If a file sets pragma Strict, it expects to be fully compiler
compliant, so let's enable the warnings for that by default.
Fixes: QTBUG-97081
Change-Id: I0b388f64d99846ee0c03e24397b3a997d4b0173b
Reviewed-by: Andrei Golubev <[email protected]>
Reviewed-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'src/qmlcompiler/qqmljsimportvisitor_p.h')
-rw-r--r-- | src/qmlcompiler/qqmljsimportvisitor_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsimportvisitor_p.h b/src/qmlcompiler/qqmljsimportvisitor_p.h index 5a5256a98c..efa21ffb4b 100644 --- a/src/qmlcompiler/qqmljsimportvisitor_p.h +++ b/src/qmlcompiler/qqmljsimportvisitor_p.h @@ -112,6 +112,7 @@ protected: bool visit(QQmlJS::AST::ClassExpression *ast) override; void endVisit(QQmlJS::AST::ClassExpression *) override; bool visit(QQmlJS::AST::UiImport *import) override; + bool visit(QQmlJS::AST::UiPragma *pragma) override; bool visit(QQmlJS::AST::ClassDeclaration *ast) override; void endVisit(QQmlJS::AST::ClassDeclaration *ast) override; bool visit(QQmlJS::AST::ForStatement *ast) override; |