2 Commits

Author SHA1 Message Date
Kadir Cetinkaya
cdef5a7161
[clangd] Fix windows buildbots after ecea7218fb9b994b26471e9877851cdb51a5f1d4 2021-02-16 20:57:08 +01:00
Kadir Cetinkaya
ecea7218fb
[clangd] Treat paths case-insensitively depending on the platform
Path{Match,Exclude} and MountPoint were checking paths case-sensitively
on all platforms, as with other features, this was causing problems on
windows. Since users can have capital drive letters on config files, but
editors might lower-case them.

This patch addresses that issue by:
- Creating regexes with case-insensitive matching on those platforms.
- Introducing a new pathIsAncestor helper, which performs checks in a
  case-correct manner where needed.

Differential Revision: https://reviews.llvm.org/D96690
2021-02-16 20:20:53 +01:00