3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/qtcreator/0001-Fix-clang-libcpp-regexp.patch

16 lines
896 B
Diff
Raw Normal View History

diff --git a/src/plugins/cpptools/headerpathfilter.cpp b/src/plugins/cpptools/headerpathfilter.cpp
2019-12-21 16:28:12 +00:00
index b656f8e1..a830d3c3 100644
--- a/src/plugins/cpptools/headerpathfilter.cpp
+++ b/src/plugins/cpptools/headerpathfilter.cpp
2019-12-21 16:28:12 +00:00
@@ -124,8 +124,8 @@ HeaderPaths::iterator resourceIterator(HeaderPaths &headerPaths)
{
// include/c++, include/g++, libc++\include and libc++abi\include
2019-12-21 16:28:12 +00:00
static const QString cppIncludes = R"((.*/include/.*(g\+\+|c\+\+).*))"
- R"(|(.*libc\+\+/include))"
- R"(|(.*libc\+\+abi/include))"
+ R"(|(.*libc\+\+.*\/include))"
+ R"(|(.*libc\+\+abi.*\/include))";
2019-12-21 16:28:12 +00:00
R"(|(/usr/local/include))";
static const QRegularExpression includeRegExp("\\A(" + cppIncludes + ")\\z");