Skip to content
Snippets Groups Projects
Commit 039d9309 authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by Marco Bubke
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment