Commit 1b14c3c5 authored by Kevin Funk's avatar Kevin Funk
Browse files

Clang: Reduce matches for include file scanner

For the include path scanner, only propose files (headers) which
either match $identifier or $identifier.*. Don't match all of $identifier* as before
parent b7f05086
......@@ -91,7 +91,8 @@ QStringList scanIncludePaths( const QString& identifier, const QDir& dir, int ma
return {};
for (const auto& file : dir.entryList({identifier + QLatin1Char('*')}, QDir::Files)) {
const QStringList nameFilters = {identifier, identifier + QLatin1String(".*")};
for (const auto& file : dir.entryList(nameFilters, QDir::Files)) {
if (, Qt::CaseInsensitive) == 0 || ClangHelpers::isHeader(file)) {
const QString filePath = path + QLatin1Char('/') + file;
clangDebug() << "Found candidate file" << filePath;
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