aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/tests/testreverseoperators.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/ApiExtractor/tests/testreverseoperators.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/tests/testreverseoperators.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/shiboken2/ApiExtractor/tests/testreverseoperators.cpp b/sources/shiboken2/ApiExtractor/tests/testreverseoperators.cpp
index 76ba7d3b4..18d6902c2 100644
--- a/sources/shiboken2/ApiExtractor/tests/testreverseoperators.cpp
+++ b/sources/shiboken2/ApiExtractor/tests/testreverseoperators.cpp
@@ -53,7 +53,7 @@ void TestReverseOperators::testReverseSum()
const AbstractMetaFunction* reverseOp = 0;
const AbstractMetaFunction* normalOp = 0;
- foreach(const AbstractMetaFunction* func, classA->functions()) {
+ for (const AbstractMetaFunction *func : classA->functions()) {
if (func->name() == QLatin1String("operator+")) {
if (func->isReverseOperator())
reverseOp = func;
@@ -89,6 +89,7 @@ void TestReverseOperators::testReverseSumWithAmbiguity()
</typesystem>";
QScopedPointer<AbstractMetaBuilder> builder(TestUtil::parse(cppCode, xmlCode, false));
+ QEXPECT_FAIL("", "Clang: Does not compile", Abort);
QVERIFY(!builder.isNull());
AbstractMetaClassList classes = builder->classes();
const AbstractMetaClass *classA = AbstractMetaClass::findClass(classes, QLatin1String("A"));
@@ -101,7 +102,7 @@ void TestReverseOperators::testReverseSumWithAmbiguity()
const AbstractMetaFunction* reverseOp = 0;
const AbstractMetaFunction* normalOp = 0;
- foreach(const AbstractMetaFunction* func, classB->functions()) {
+ for (const AbstractMetaFunction *func : classB->functions()) {
if (func->name() == QLatin1String("operator+")) {
if (func->isReverseOperator())
reverseOp = func;