aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsscope_p.h
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-09-22 18:57:27 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-09-29 19:48:51 +0200
commite01ede4378f897cd608073fa1f970299051486ac (patch)
tree93e78183a8a5b4fb02e192fb3c4e72c8fd6b574d /src/qmlcompiler/qqmljsscope_p.h
parent73d8a2c01667d1c1ac11d5bf0121b3a144ceb5f1 (diff)
qmllint: Add ability to warn about not reusing attached types
This is mostly useful as an replacement for Quick Controls' tst_sanity but might also be useful in some other instances. Fixes: QTBUG-96572 Change-Id: I5cf414bfeb369cbc394563c5c5ed807599b09a2f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsscope_p.h')
-rw-r--r--src/qmlcompiler/qqmljsscope_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsscope_p.h b/src/qmlcompiler/qqmljsscope_p.h
index 614e8c721a..1ae2e8d037 100644
--- a/src/qmlcompiler/qqmljsscope_p.h
+++ b/src/qmlcompiler/qqmljsscope_p.h
@@ -450,6 +450,11 @@ private:
QQmlJS::SourceLocation m_sourceLocation;
};
+struct QQmlJSTypeInfo
+{
+ QMultiHash<QQmlJSScope::ConstPtr, QQmlJSScope::ConstPtr> usedAttachedTypes;
+};
+
QT_END_NAMESPACE
#endif // QQMLJSSCOPE_P_H