diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2024-02-20 11:51:39 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-02-21 14:27:53 +0100 |
| commit | 655087e05d6976bdbe91b40017de4062f67fbcca (patch) | |
| tree | 61b1a95934e1420598328c89a862c426c872af85 /tests/auto/qml/qmlcppcodegen/data | |
| parent | 8f705f0db91155401e50a750f0e7037d13df1d0a (diff) | |
QmlCompiler: Escape question marks in string literals
This prevents the generation of trigraphs and suppresses the warnings
about those.
Pick-to: 6.7
Fixes: QTBUG-110772
Change-Id: If30ad39737eae097fdcb18b0d33b6bbfa05be656
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/trigraphs.qml | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt b/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt index 8d771b18f9..3742514684 100644 --- a/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt +++ b/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt @@ -263,6 +263,7 @@ set(qml_files toString.qml topLevelComponent.qml translation.qml + trigraphs.qml trivialSignalHandler.qml typePropagationLoop.qml typePropertyClash.qml diff --git a/tests/auto/qml/qmlcppcodegen/data/trigraphs.qml b/tests/auto/qml/qmlcppcodegen/data/trigraphs.qml new file mode 100644 index 0000000000..e7bf5ccec9 --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/trigraphs.qml @@ -0,0 +1,5 @@ +import QtQml + +QtObject { + objectName: "??= ??/ ??' ??( ??) ??! ??< ??> ??-" +} |
