Clang: Adapt test DiagnosticSlowTest.Text for LLVM/Clang 10

Change-Id: I99ac001d1231f14cd5cda9268d925fa442b16a35
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Nikolai Kosjar
2020-05-19 10:08:54 +02:00
parent 79766caf52
commit e2a68edbc1

View File

@@ -123,7 +123,11 @@ TEST_F(DiagnosticSlowTest, MoveSelfAssigment)
TEST_F(DiagnosticSlowTest, Text)
{
#if CINDEX_VERSION_MAJOR == 0 && CINDEX_VERSION_MINOR >= 59 // >= LLVM/Clang 10
ASSERT_THAT(diagnostic.text(), Utf8StringLiteral("warning: non-void function does not return a value"));
#else
ASSERT_THAT(diagnostic.text(), Utf8StringLiteral("warning: control reaches end of non-void function"));
#endif
}
TEST_F(DiagnosticSlowTest, Category)