summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/tools')
-rw-r--r--tests/auto/tools/moc/allmocs_baseline_in.json180
-rw-r--r--tests/auto/tools/moc/tst_moc.cpp20
-rw-r--r--tests/auto/tools/mochelpers/tst_mochelpers.cpp7
-rw-r--r--tests/auto/tools/rcc/data/legal/rcc_legal.cpp2
4 files changed, 205 insertions, 4 deletions
diff --git a/tests/auto/tools/moc/allmocs_baseline_in.json b/tests/auto/tools/moc/allmocs_baseline_in.json
index d8e6c4df538..d36bdb907ae 100644
--- a/tests/auto/tools/moc/allmocs_baseline_in.json
+++ b/tests/auto/tools/moc/allmocs_baseline_in.json
@@ -23,6 +23,9 @@
]
}
],
+ "hashes": {
+ "BackslashNewlines": "0$VAkStqKr6pw5W81yZ3rCFn98h9U"
+ },
"inputFile": "backslash-newlines.h",
"outputRevision": 69
},
@@ -41,6 +44,9 @@
]
}
],
+ "hashes": {
+ "IfdefedClass": "0$OochknExuVUAqq2zc5gt2Ldj4+4"
+ },
"inputFile": "c-comments.h",
"outputRevision": 69
},
@@ -75,6 +81,9 @@
"qualifiedClassName": "CStyleEnums"
}
],
+ "hashes": {
+ "CStyleEnums": "0$fqbHabuJUT79FJr/S/6WsAiFcJI"
+ },
"inputFile": "cstyle-enums.h",
"outputRevision": 69
},
@@ -325,6 +334,11 @@
]
}
],
+ "hashes": {
+ "CXX11Enums": "0$SPzFG1raX8GCqiq6g21PoU/7ixs",
+ "CXX11Enums2": "0$uYFCI2+nT8TI8jLcKAvO8vp9OYA",
+ "CXX11Enums3": "0$bRezVo4UbDNuGatmLEd0/n8K8FA"
+ },
"inputFile": "cxx11-enums.h",
"outputRevision": 69
},
@@ -727,6 +741,17 @@
]
}
],
+ "hashes": {
+ "ExplicitOverrideControlBase": "0$PFsRqLGh0wP5gfqwF9CVeUi9EVU",
+ "ExplicitOverrideControlFinalCxx11": "0$RQTN9wEJCVZ1N4IcieHs2LuRKY8",
+ "ExplicitOverrideControlFinalCxx11OverrideCxx11": "0$ZEBCUhi5oEGiDVdmoqD+x4n1KJk",
+ "ExplicitOverrideControlFinalQt": "0$GuS6YD8Kcf/9KyehmFsrmDWW42M",
+ "ExplicitOverrideControlFinalQtOverrideQt": "0$q48mSBftA2LJFVSB4uqTmKs2gOc",
+ "ExplicitOverrideControlOverrideCxx11": "0$he1BJyFAtIcrEf74bZY1d54aCbc",
+ "ExplicitOverrideControlOverrideQt": "0$dWQ+iDw9oKEYXiSgy2izIISyRMg",
+ "ExplicitOverrideControlSealed": "0$3nq5psg7nFNDlPnBpaYraCr3CHQ",
+ "ExplicitOverrideControlSealedOverride": "0$I7ySe3SgUSARroswRh74wJoZkkA"
+ },
"inputFile": "cxx11-explicit-override-control.h",
"outputRevision": 69
},
@@ -850,6 +875,17 @@
]
}
],
+ "hashes": {
+ "ExportedFinalTestClassCpp11": "0$eUEIDQi+/lB9KOjB+oul4rZe9xE",
+ "ExportedFinalTestClassCpp11X": "0$g03sLKAEeX8BLjKjFsG3MMfunaY",
+ "ExportedFinalTestClassQt": "0$fYFeeRSmEnokVTW4eIiCU6PR5HM",
+ "ExportedFinalTestClassQtX": "0$7+xgvb70xVV3Xot9q7FhSm8mUew",
+ "ExportedSealedTestClass": "0$jzcARHlbTm1whxXOtg9edtN1ctg",
+ "ExportedSealedTestClassX": "0$tEmYiad6hqJMlGaCnNc2GhZtDgM",
+ "FinalTestClassCpp11": "0$Opb/8DnbfVjpH2CZvHo9Rv93iV8",
+ "FinalTestClassQt": "0$DtnHOKRNbQ5Y3QbO5AeLM4qYDW0",
+ "SealedTestClass": "0$VUU19XJgT+KhqRBlwQmXkd0yVgQ"
+ },
"inputFile": "cxx11-final-classes.h",
"outputRevision": 69
},
@@ -937,6 +973,9 @@
]
}
],
+ "hashes": {
+ "CXX11TrailingReturn": "0$UrmUM8dix1r2pcj94cUzTALq0x8"
+ },
"inputFile": "cxx11-trailing-return.h",
"outputRevision": 69
},
@@ -977,6 +1016,10 @@
"qualifiedClassName": "CXX17Namespace::A::B::C::D"
}
],
+ "hashes": {
+ "CXX17Namespace::A::B::C::D": "0$WwEpzp6jKMGQfcvBrtsAJOy01KM",
+ "CXX17Namespace::A::B::C::D::ClassInNamespace": "0$/g09nq8R/tK4tC37pIgfRw/mBog"
+ },
"inputFile": "cxx17-namespaces.h",
"outputRevision": 69
},
@@ -1007,6 +1050,9 @@
]
}
],
+ "hashes": {
+ "DirInIncludePath": "0$Yj0uFD5gTp9Ie67oMAyjAEUetbo"
+ },
"inputFile": "dir-in-include-path.h",
"outputRevision": 69
},
@@ -1025,6 +1071,9 @@
]
}
],
+ "hashes": {
+ "Foo": "0$CB6VdqlszayDKadxVcYxPz1KzvI"
+ },
"inputFile": "enum_with_include.h",
"outputRevision": 69
},
@@ -1057,6 +1106,9 @@
]
}
],
+ "hashes": {
+ "StringLiterals": "0$ZMhjewm0f9PVVN6Nf31Slot+IRo"
+ },
"inputFile": "escapes-in-string-literals.h",
"outputRevision": 69
},
@@ -1295,6 +1347,9 @@
]
}
],
+ "hashes": {
+ "ForwardDeclaredParamClass": "0$1v+gvQyQz9IWyRMSBZJfmhZpCw4"
+ },
"inputFile": "forward-declared-param.h",
"outputRevision": 69
},
@@ -1329,6 +1384,9 @@
]
}
],
+ "hashes": {
+ "FunctionWithAttributes": "0$PHwt9wN4wGfmeCWQSXJ4CFyLKCk"
+ },
"inputFile": "function-with-attributes.h",
"outputRevision": 69
},
@@ -1364,6 +1422,10 @@
]
}
],
+ "hashes": {
+ "DerivedGadgetWithEnums": "0$ziLf2XE3jIzXb4mHc1AtXn2Pr+w",
+ "GadgetWithNoEnums": "0$Jahs+W0ABVb+g0vSoUQ80hLQCzk"
+ },
"inputFile": "gadgetwithnoenums.h",
"outputRevision": 69
},
@@ -1400,6 +1462,11 @@
]
}
],
+ "hashes": {
+ "GrandParentGadget::BaseGadget": "0$edRI9jp0xvXAhzuu71v5ByBmvbw",
+ "GrandParentGadget::CRTPDerivedGadget": "0$Y3W4552o/BUqjdHf2NxgqKGkRmI",
+ "GrandParentGadget::DerivedGadget": "0$AhUcr6i4Hne/y216sE3UnzvaBks"
+ },
"inputFile": "grand-parent-gadget-class.h",
"outputRevision": 69
},
@@ -1471,6 +1538,10 @@
"qualifiedClassName": "SomeRandomNamespace"
}
],
+ "hashes": {
+ "SomeRandomNamespace": "0$haTJ0XROzXzF0eXH4sreUExdPxg",
+ "TestFwdProperties": "0$3+84uwm9jhX5WgZzqClAZM6h7Hg"
+ },
"inputFile": "moc_include.h",
"outputRevision": 69
},
@@ -1541,6 +1612,11 @@
"qualifiedClassName": "FooNamespace::FooNestedNamespace::FooMoreNestedNamespace"
}
],
+ "hashes": {
+ "FooNamespace": "0$Z0uaI0MMFqu0YzU7vExYNRUcBhs",
+ "FooNamespace::FooNestedNamespace": "0$c0mGYICDOoC4QPdVm5HRH9ApH68",
+ "FooNamespace::FooNestedNamespace::FooMoreNestedNamespace": "0$FHRRWVs1L+xEcXWY318xVxYlx+Y"
+ },
"inputFile": "namespace.h",
"outputRevision": 69
},
@@ -1572,6 +1648,10 @@
]
}
],
+ "hashes": {
+ "QTBUG_101141::Base": "0$U366MOIqv3M+uAirFGzc/YkYdoA",
+ "QTBUG_101141::Derived": "0$RhyA1CgCTHJhP+oLRVIDYv85oNQ"
+ },
"inputFile": "namespaced-base-class.h",
"outputRevision": 69
},
@@ -1664,6 +1744,10 @@
]
}
],
+ "hashes": {
+ "Foo::Bar": "0$bYnwxHCP+WvK/RySc0Cz7hJ/Mv4",
+ "Foo::Baz": "0$/xEtUkDT353vJHNrTTLCovKNWyo"
+ },
"inputFile": "namespaced-flags.h",
"outputRevision": 69
},
@@ -1700,6 +1784,9 @@
]
}
],
+ "hashes": {
+ "MyBooooooostishClass": "0$RDRAZTtVcMrrVnaW3ccG5tm5kvU"
+ },
"inputFile": "no-keywords.h",
"outputRevision": 69
},
@@ -1718,6 +1805,9 @@
]
}
],
+ "hashes": {
+ "NonGadgetParent::Derived": "0$3bsnxOwlHgO7cAngQLFI5JRtpDE"
+ },
"inputFile": "non-gadget-parent-class.h",
"outputRevision": 69
},
@@ -1784,6 +1874,9 @@
]
}
],
+ "hashes": {
+ "OldStyleCast": "0$tg567Jxb/wczCGYgDo7CHjLQaF8"
+ },
"inputFile": "oldstyle-casts.h",
"outputRevision": 69
},
@@ -2027,6 +2120,9 @@
]
}
],
+ "hashes": {
+ "PD::ParseDefine": "0$gtPGvhjjReF7/9ujAvwWNaRWEdk"
+ },
"inputFile": "parse-defines.h",
"outputRevision": 69
},
@@ -2045,6 +2141,9 @@
]
}
],
+ "hashes": {
+ "TestPluginMetaData": "0$D43pha4BOvdLMUbKSF0Pw0b2rfQ"
+ },
"inputFile": "plugin_metadata.h",
"outputRevision": 69
},
@@ -2149,6 +2248,9 @@
]
}
],
+ "hashes": {
+ "TestPointeeCanBeIncomplete": "0$BXzN6PCuKk/qhZeYZaaNyUNKW/8"
+ },
"inputFile": "pointery_to_incomplete.h",
"outputRevision": 69
},
@@ -2230,6 +2332,10 @@
]
}
],
+ "hashes": {
+ "PureVirtualSignalsImpl": "0$+RHy7vy0RgivuAtQW3Dohe0R+qk",
+ "PureVirtualSignalsTest": "0$31whJazqnFwWMc3cO9MaT9wBSy8"
+ },
"inputFile": "pure-virtual-signals.h",
"outputRevision": 69
},
@@ -2302,6 +2408,10 @@
]
}
],
+ "hashes": {
+ "QEnum64Object": "0$mPIUjAUmfYvqxkkkXghMo9RAiZA",
+ "QFlags64Object": "0$o86jnlU0tZ0uyjOrEZ4/oOXAKfk"
+ },
"inputFile": "qflags64object.h",
"outputRevision": 69
},
@@ -2358,6 +2468,10 @@
]
}
],
+ "hashes": {
+ "InvokableBeforeInline": "0$t5nSESnZz1Liw62inFXd2SZTQTg",
+ "InvokableBeforeReturnType": "0$q7unyP9EifVhdxdSVIaFweQMDs4"
+ },
"inputFile": "qinvokable.h",
"outputRevision": 69
},
@@ -2397,6 +2511,9 @@
]
}
],
+ "hashes": {
+ "QmlMacro": "0$ohmDXSSvwPL9cUf7TItBqGRGOXM"
+ },
"inputFile": "qmlmacro.h",
"outputRevision": 69
},
@@ -2433,6 +2550,9 @@
]
}
],
+ "hashes": {
+ "TestQPrivateSlots": "0$akM0QTpV2o3AF3v6YBUh+iY1NsM"
+ },
"inputFile": "qprivateslots.h",
"outputRevision": 69
},
@@ -2456,6 +2576,9 @@
"qualifiedClassName": "QTBUG_35657::A"
}
],
+ "hashes": {
+ "QTBUG_35657::A": "0$ExnqnOcM0keSitP69QEKBZXt4Es"
+ },
"inputFile": "qtbug-35657-gadget.h",
"outputRevision": 69
},
@@ -2490,6 +2613,9 @@
]
}
],
+ "hashes": {
+ "QTBUG_35657::B": "0$72RlEvuVajxk55rzeym5e5E7LmA"
+ },
"inputFile": "related-metaobjects-in-gadget.h",
"outputRevision": 69
},
@@ -2547,6 +2673,10 @@
]
}
],
+ "hashes": {
+ "QTBUG_2151::A": "0$wwzOwB54lloQnRalZ9IiAf2oCII",
+ "QTBUG_2151::B": "0$b4fk7Aaf9GubBohh4VCfABMTEJM"
+ },
"inputFile": "related-metaobjects-in-namespaces.h",
"outputRevision": 69
},
@@ -3029,6 +3159,28 @@
]
}
],
+ "hashes": {
+ "NS1::DependingNestedGadget": "0$AjMR5Q0D2DupU0l/8Fl2wE0HX/w",
+ "NS1::DependingNestedObject": "0$DopB5FLdxxGgVBjg2pb8LDui8hA",
+ "NS1::DependingObject": "0$NBnkXMTHy3+HN77VtSKqsQrn2Ds",
+ "NS1::Gadget": "0$x+7FBtXOnCa+gBCDQYYJELL4q6I",
+ "NS1::Nested::Gadget": "0$QrFH5wzXn6x40CgbEt6o8+GwAEw",
+ "NS1::Nested::Object": "0$pMIVvuQb0tyLZ5mwRFw8QDUTsPE",
+ "NS1::NestedUnsused::Gadget": "0$ksUC+FXicub96bqLdCnYlMjTIQg",
+ "NS1::NestedUnsused::Object": "0$Cu9dTusUon5OJbsbCNDszsTWsk4",
+ "NS1::Object": "0$FkizYy4XPEX9QPIyL2eE9bFYc5E",
+ "NS2::DependingNestedGadget": "0$DMnk8/Na+tVbOCW2bDplJtp+qfI",
+ "NS2::DependingNestedObject": "0$us8HSPRnoTuPP+yEIj9VoF0+wgY",
+ "NS2::DependingObject": "0$Y9OXadBw3CKbCLiiIcwarWKy4Ko",
+ "NS2::Gadget": "0$1c2uSbAFT5taj/PGDXyGdXgWhk0",
+ "NS2::Nested::Gadget": "0$1Xmv0ccjZFLq/Y68TxyTQNopa8E",
+ "NS2::Nested::Object": "0$usRIIUM8ix6bMuqFyxtLIGnTAew",
+ "NS2::NestedUnsused::Gadget": "0$V8PumQY6aJmatQ/V72bPVRUyPtM",
+ "NS2::NestedUnsused::Object": "0$HJl5p4/beto2yDugYIrnCfTIRm0",
+ "NS2::Object": "0$qx8DIVSOVAgRXwqE1JjvDXnuM44",
+ "Unsused::Gadget": "0$9DYMYjqKdVlC6OknSGIF2TCoZJo",
+ "Unsused::Object": "0$KW85gaAnMYh4a0phjBcM1vGAyKw"
+ },
"inputFile": "related-metaobjects-name-conflict.h",
"outputRevision": 69
},
@@ -3070,6 +3222,9 @@
]
}
],
+ "hashes": {
+ "SignalWithDefaultArg": "0$nxiVjK8ieRlRO/uDdq0gKtPSgTU"
+ },
"inputFile": "signal-with-default-arg.h",
"outputRevision": 69
},
@@ -3099,6 +3254,9 @@
]
}
],
+ "hashes": {
+ "KDAB": "0$grAoknUYC0BkMxt4HLH2mGR4Tu8"
+ },
"inputFile": "single-quote-digit-separator-n3781.h",
"outputRevision": 69
},
@@ -3180,6 +3338,9 @@
]
}
],
+ "hashes": {
+ "SlotsWithVoidTemplateTest": "0$/08YvkDzSSJmzKO0L6t3PWzQTpA"
+ },
"inputFile": "slots-with-void-template.h",
"outputRevision": 69
},
@@ -3198,6 +3359,9 @@
]
}
],
+ "hashes": {
+ "Task192552": "0$QGM+ZcuSQWGxY2IolngyVZy8sy4"
+ },
"inputFile": "task192552.h",
"outputRevision": 69
},
@@ -3228,6 +3392,10 @@
]
}
],
+ "hashes": {
+ "NS_A::NS_B::TestObject": "0$IMqa1PfGS0EaXXK+9Ch24g/nP2A",
+ "NS_A::NS_Main::TestMain": "0$0z3ZNVKocxpdZHzRFtoTKQimUm0"
+ },
"inputFile": "task234909.h",
"outputRevision": 69
},
@@ -3403,6 +3571,9 @@
]
}
],
+ "hashes": {
+ "TypenameWithUnsigned": "0$jwklF5QEzeV58Ui5C0aT9ZFwDVo"
+ },
"inputFile": "task240368.h",
"outputRevision": 69
},
@@ -3421,6 +3592,9 @@
]
}
],
+ "hashes": {
+ "Task87883": "0$wz5QuoSTJ+0peRmMDYqL9p8q5q4"
+ },
"inputFile": "task87883.h",
"outputRevision": 69
},
@@ -3507,6 +3681,9 @@
]
}
],
+ "hashes": {
+ "MyTechPreviewObject": "0$70fB9sh1BICrgFbeYIYRC8QX+PQ"
+ },
"inputFile": "tech-preview.h",
"outputRevision": 69
},
@@ -3591,6 +3768,9 @@
]
}
],
+ "hashes": {
+ "BBB::Foo": "0$QBU7ysZZuCx+IZ4+vUQEQ84tqu8"
+ },
"inputFile": "trigraphs.h",
"outputRevision": 69
},
diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp
index fb30d66e6ec..7001d676878 100644
--- a/tests/auto/tools/moc/tst_moc.cpp
+++ b/tests/auto/tools/moc/tst_moc.cpp
@@ -2576,6 +2576,26 @@ void tst_Moc::warnings_data()
<< QString()
<< u"standard input:2:1: error: Parse error at \"NONSENSE\""_s;
+ QTest::newRow("VIRTUAL FINAL property")
+ << "class X { \n Q_PROPERTY(int p READ p VIRTUAL FINAL) \n };"_ba << QStringList() << 1
+ << QString()
+ << u"standard input:2:1: error: Issue with property declaration p: "
+ u"The VIRTUAL cannot be combined with FINAL, as these attributes are mutually exclusive"_s;
+
+ QTest::newRow("FINAL OVERRIDE property")
+ << "class X { \n Q_PROPERTY(int p READ p FINAL OVERRIDE) \n };"_ba << QStringList() << 1
+ << QString()
+ << u"standard input:2:1: error: Issue with property declaration p: "
+ u"OVERRIDE is redundant when property is marked FINAL"_s;
+
+ QTest::newRow("VIRTUAL OVERRIDE property")
+ << "class X { \n Q_PROPERTY(int p READ p VIRTUAL OVERRIDE) \n };"_ba << QStringList()
+ << 1 << QString()
+ << u"standard input:2:1: error: Issue with property declaration p: VIRTUAL is "
+ u"redundant when overriding a property."
+ u" The OVERRIDE must only be used when actually overriding an existing property;"
+ u" using it on a new property is an error."_s;
+
#ifdef Q_OS_UNIX // Limit to Unix because the error message is platform-dependent
QTest::newRow("Q_PLUGIN_METADATA: unreadable file")
<< QByteArray("class X { \n Q_PLUGIN_METADATA(FILE \".\") \n };")
diff --git a/tests/auto/tools/mochelpers/tst_mochelpers.cpp b/tests/auto/tools/mochelpers/tst_mochelpers.cpp
index 7e5d18d160e..ae80f0c2b58 100644
--- a/tests/auto/tools/mochelpers/tst_mochelpers.cpp
+++ b/tests/auto/tools/mochelpers/tst_mochelpers.cpp
@@ -104,7 +104,7 @@ void tst_MocHelpers::classinfoDataGroup()
{
constexpr auto data = QtMocHelpers::metaObjectData<void, void>(0, dummyStringData,
QtMocHelpers::UintData{}, QtMocHelpers::UintData{},
- QtMocHelpers::UintData{}, QtMocHelpers::UintData{},
+ QtMocHelpers::UintData{}, -1, QtMocHelpers::UintData{},
QtMocHelpers::ClassInfos({{1, 2}, {3, 4}}));
checkClassInfos(data.staticData.data);
}
@@ -612,7 +612,7 @@ void tst_MocHelpers::constructorUintGroup()
constexpr auto data = QtMocHelpers::metaObjectData<void, void>(0, dummyStringData,
QtMocHelpers::UintData{}, QtMocHelpers::UintData{},
- QtMocHelpers::UintData{}, constructors);
+ QtMocHelpers::UintData{}, -1, constructors);
checkConstructors(data.staticData.data, data.relocatingData.metaTypes);
}
@@ -676,7 +676,7 @@ void tst_MocHelpers::uintArrayNoMethods()
QtMocHelpers::EnumData<E2>(7, 6, EnumIsFlag | EnumIsScoped)
.add({ { 7, E2::V0 }, { 10, E2::V1 }, }),
QtMocHelpers::EnumData<QFlags<E1>>(11, 1, EnumIsFlag).add({ { 3, E1::AnEnumValue } }),
- }, QtMocHelpers::UintData{}, QtMocHelpers::ClassInfos({{1, 2}, {3, 4}}));
+ }, -1, QtMocHelpers::UintData{}, QtMocHelpers::ClassInfos({{1, 2}, {3, 4}}));
auto &data = mo.staticData.data;
auto &metaTypes = mo.relocatingData.metaTypes;
@@ -724,6 +724,7 @@ void tst_MocHelpers::uintArray()
.add({ { 7, E2::V0 }, { 10, E2::V1 }, }),
QtMocHelpers::EnumData<QFlags<E1>>(11, 1, EnumIsFlag).add({ { 3, E1::AnEnumValue } }),
},
+ -1,
QtMocHelpers::UintData{
QtMocHelpers::ConstructorData<NoType(QObject *)>(1, QtMocConstants::AccessPublic,
{{ { QMetaType::QObjectStar, 2 } }}
diff --git a/tests/auto/tools/rcc/data/legal/rcc_legal.cpp b/tests/auto/tools/rcc/data/legal/rcc_legal.cpp
index 248ab2e3b48..96f87d192e7 100644
--- a/tests/auto/tools/rcc/data/legal/rcc_legal.cpp
+++ b/tests/auto/tools/rcc/data/legal/rcc_legal.cpp
@@ -3,7 +3,7 @@
** Copyright (C) 2024 Intel Corporation.
** SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
**
-** Created by: The Resource Compiler for Qt version 6.11.0
+** Created by: The Resource Compiler for Qt version 6.12.0
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/