diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2021-02-15 09:00:49 +0100 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2021-02-16 20:20:53 +0100 |
commit | ecea7218fb9b994b26471e9877851cdb51a5f1d4 (patch) | |
tree | 0f269d8da815f706d16b4fdbb3ba5d83c8c55c7f /llvm/lib/Support/FileCollector.cpp | |
parent | acfab44eebbeccb41f9fd3c2c363ff61f02dbf76 (diff) | |
download | llvm-ecea7218fb9b994b26471e9877851cdb51a5f1d4.zip llvm-ecea7218fb9b994b26471e9877851cdb51a5f1d4.tar.gz llvm-ecea7218fb9b994b26471e9877851cdb51a5f1d4.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Support/FileCollector.cpp')
0 files changed, 0 insertions, 0 deletions