aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsscope_p.h
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-04-30 10:02:23 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-05-03 08:40:50 +0200
commit56c16d0e9770b39df142ba946357562be6b9731c (patch)
tree194f42794e5d132d19d0c41837d771d49ed42c10 /src/qmlcompiler/qqmljsscope_p.h
parent3464655f5e2adaa1aed8925a9a54b8fb5f238f31 (diff)
qmllint: Exclude children of custom parser elements from warnings
Some warnings caused by the children of custom parser elements also need to be ignored. Change-Id: Iff3c6e5ce2ea334c6de7a14c8592ee1ebf80bb58 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsscope_p.h')
-rw-r--r--src/qmlcompiler/qqmljsscope_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsscope_p.h b/src/qmlcompiler/qqmljsscope_p.h
index e03c2c1342..e3463c5192 100644
--- a/src/qmlcompiler/qqmljsscope_p.h
+++ b/src/qmlcompiler/qqmljsscope_p.h
@@ -355,6 +355,12 @@ public:
*/
bool canAssign(const QQmlJSScope::ConstPtr &derived) const;
+ /*!
+ \internal
+ Checks whether this type or its parents have a custom parser.
+ */
+ bool isInCustomParserParent() const;
+
private:
QQmlJSScope(ScopeType type, const QQmlJSScope::Ptr &parentScope = QQmlJSScope::Ptr());