forked from OSchip/llvm-project
[clangd] Use drop_front instead of consume_front to get rid of a redundant check
This commit is contained in:
parent
dfafba3989
commit
3bd7acf2e5
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue