[clangd] Canonicalize inputs provided with `--`
authorKadir Cetinkaya <kadircet@google.com>
Fri, 6 Aug 2021 11:25:14 +0000 (13:25 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Fri, 6 Aug 2021 13:04:04 +0000 (15:04 +0200)
commit79c2616d315f54d72bcdeebb6576c84be7b585d8
tree17da756766eeada94b9edc04ddd89fe94ad31ddf
parent3bf77980d934c4aa383e4ea9a9a5de86598bea9b
[clangd] Canonicalize inputs provided with `--`

We already strip all the inputs provided without `--`, this patch also
handles the cases with `--`.

Differential Revision: https://reviews.llvm.org/D107637
clang-tools-extra/clangd/CompileCommands.cpp
clang-tools-extra/clangd/unittests/CompileCommandsTests.cpp