Skip to content

Commit 24f03d9

Browse files
[clangd] Use llvm::erase_value (NFC)
1 parent f24d949 commit 24f03d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang-tools-extra/clangd/SystemIncludeExtractor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,7 @@ extractSystemIncludesAndTarget(const DriverArgs &InputArgs,
376376
auto Path = llvm::StringRef(*BuiltinHeaders).trim();
377377
if (!Path.empty() && llvm::sys::path::is_absolute(Path)) {
378378
auto Size = Info->SystemIncludes.size();
379-
llvm::erase_if(Info->SystemIncludes,
380-
[&](llvm::StringRef Entry) { return Path == Entry; });
379+
llvm::erase_value(Info->SystemIncludes, Path);
381380
vlog("System includes extractor: builtin headers {0} {1}", Path,
382381
(Info->SystemIncludes.size() != Size)
383382
? "excluded"

0 commit comments

Comments
 (0)