We already strip all the inputs provided without --, this patch also
handles the cases with --.
Details
Details
- Reviewers
 sammccall - Commits
 - rG79c2616d315f: [clangd] Canonicalize inputs provided with `--`
 
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
| clang-tools-extra/clangd/CompileCommands.cpp | ||
|---|---|---|
| 250 | iterate from dashdash->getIndex() + 1 to Cmd.size() instead? Or just Cmd.resize(dashdash->getIndex() + 2)?  | |
| clang-tools-extra/clangd/CompileCommands.cpp | ||
|---|---|---|
| 250 | ah yes, resize looks a lot better. but we deliberately drop -- too. so that we can always append it without checking again.  | |
iterate from dashdash->getIndex() + 1 to Cmd.size() instead?
Or just Cmd.resize(dashdash->getIndex() + 2)?