[clangd] Avoid traversing C:\ -> C: when looking for CDBs
authorSam McCall <sam.mccall@gmail.com>
Tue, 15 Dec 2020 12:58:08 +0000 (13:58 +0100)
committerSam McCall <sam.mccall@gmail.com>
Tue, 15 Dec 2020 12:59:00 +0000 (13:59 +0100)
commit965d71c69acce658e9e3de00b25a351b00937820
tree1d612ddb863a65df44f15826d0c8faf0418b0658
parent0e0295fd6124163b478603a6cc357867aadf5d70
[clangd] Avoid traversing C:\ -> C: when looking for CDBs

Boost in its infinite wisdom considers C: a parent of C:\, and we've
inherited that. This breaks the assumption that after canonicalizing a
path, the path parents are the directory's parents.
clang-tools-extra/clangd/GlobalCompilationDatabase.cpp