Commit 2bc96c76 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

Clang: Fix threading issue with QRegExp

exactMatch() is declared const, but is actually not. Replace with

Change-Id: Ib9d9c091de1cd81d81671c19a76cada8777ff287
Reviewed-by: default avatarOrgad Shaneh <>
parent b5dcc865
......@@ -44,7 +44,7 @@
#include <QDir>
#include <QFile>
#include <QLoggingCategory>
#include <QRegExp>
#include <QRegularExpression>
#include <QSet>
#include <QString>
......@@ -154,8 +154,9 @@ private:
// We already provide a custom clang include path matching the used libclang version,
// so better ignore the clang include paths from the system as this might lead to an
// unfavorable order with regard to include_next.
static QRegExp clangIncludeDir(QLatin1String(".*/lib/clang/\\d+\\.\\d+(\\.\\d+)?/include"));
if (clangIncludeDir.exactMatch(path))
static QRegularExpression clangIncludeDir(
if (clangIncludeDir.match(path).hasMatch())
return true;
return false;
Supports Markdown
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