mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:24:42 +01:00
[clangd] Use drop_front instead of consume_front to get rid of a redundant check
This commit is contained in:
@@ -143,7 +143,7 @@ extractSystemIncludes(PathRef Driver, llvm::StringRef Lang,
|
||||
});
|
||||
if (Found == std::end(ArgsToPreserve))
|
||||
continue;
|
||||
Arg.consume_front(*Found);
|
||||
Arg = Arg.drop_front(Found->size());
|
||||
if (Arg.empty() && I + 1 < E) {
|
||||
Args.push_back(CommandLine[I]);
|
||||
Args.push_back(CommandLine[++I]);
|
||||
|
||||
Reference in New Issue
Block a user