Commit fa83c76b authored by Morten Volden's avatar Morten Volden Committed by Milian Wolff

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 edbd7213
......@@ -386,7 +386,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