We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f24d949 commit 24f03d9Copy full SHA for 24f03d9
clang-tools-extra/clangd/SystemIncludeExtractor.cpp
@@ -376,8 +376,7 @@ extractSystemIncludesAndTarget(const DriverArgs &InputArgs,
376
auto Path = llvm::StringRef(*BuiltinHeaders).trim();
377
if (!Path.empty() && llvm::sys::path::is_absolute(Path)) {
378
auto Size = Info->SystemIncludes.size();
379
- llvm::erase_if(Info->SystemIncludes,
380
- [&](llvm::StringRef Entry) { return Path == Entry; });
+ llvm::erase_value(Info->SystemIncludes, Path);
381
vlog("System includes extractor: builtin headers {0} {1}", Path,
382
(Info->SystemIncludes.size() != Size)
383
? "excluded"
0 commit comments