Commit 039d9309 authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by Marco Bubke

Clang: Ignore include dirs matching lib/clang/x.y/include

On OS X the clang versioning is different.

This completes

    775661fa
    Clang: Ignore clang include directories from the toolchain

Task-number: QTCREATORBUG-14856
Change-Id: Ib93ce9fcf18a3c8693f9f2af8075eeef8b93fa32
Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent f020edc2
......@@ -154,7 +154,7 @@ 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"));
static QRegExp clangIncludeDir(QLatin1String(".*/lib/clang/\\d+\\.\\d+(\\.\\d+)?/include"));
if (clangIncludeDir.exactMatch(path))
return true;
......
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