diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-12-09 17:03:25 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-12-12 12:05:28 +0100 |
commit | dd0b82abdc6f9b055a0c0ea0b79176c861176fca (patch) | |
tree | 89b86a1158073f89f0a649da6639739b3dd3c9c2 /tests/auto/qml/qmlcppcodegen/data/Cycle1.qml | |
parent | 280a1c013cbe83b833ce466e33cffc94daed9bf2 (diff) |
QQmlJSImportsVisitor: Break inheritance cycles
If we keep them around, later passes on the same data may run into
infinite loops. We cannot fully prevent any further processing of the
data because the import can happen from deep within a hierarchy of
components and modules.
Also, separate the deprecation check from the inheritance check.
Pick-to: 6.2
Change-Id: I62ce7cd15be83f60cd72b63ab858632fbc7dea66
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/Cycle1.qml')
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/Cycle1.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/Cycle1.qml b/tests/auto/qml/qmlcppcodegen/data/Cycle1.qml new file mode 100644 index 0000000000..66784f25f4 --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/Cycle1.qml @@ -0,0 +1,7 @@ +import QtQml 2.0 +Cycle2 { + id: itt + QtObject { + property var thing: itt + } +} |