Commit 8ab1804b authored by Morten Volden's avatar Morten Volden

Fix test_codecompletion, test_duchain-clang, test_problems and...

Fix test_codecompletion, test_duchain-clang, test_problems and test_files-clang failing on newer Ubuntu
parent 0fdb6a14
Pipeline #40706 passed with stage
in 33 minutes and 17 seconds
......@@ -366,7 +366,8 @@ QString ClangHelpers::clangVersion()
// samples:
// clang version 6.0.1 (trunk 321709) ( 5136df4d089a086b70d452160ad5451861269498)
// clang version 7.0.0-svn341916-1~exp1~20180911115939.26 (branches/release_70)
QRegularExpression re(QStringLiteral("^clang version (\\d+\\.\\d+\\.\\d+)"));
// Ubuntu clang version 11.0.0-2
QRegularExpression re(QStringLiteral("clang version (\\d+\\.\\d+\\.\\d+)"));
const auto match = re.match(version.toString());
if (!match.hasMatch())
return {};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment