mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
Fix libclang generic error on Windows
This commit is contained in:
parent
e5a904f9c7
commit
99904874ca
@ -53,7 +53,8 @@ bool IsWindowsAbsolutePath(const std::string& path) {
|
||||
return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z');
|
||||
};
|
||||
|
||||
return path.size() > 3 && path[1] == ':' && path[2] == '/' &&
|
||||
return path.size() > 3 && path[1] == ':' &&
|
||||
(path[2] == '/' || path[2] == '\\') &&
|
||||
is_drive_letter(path[0]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user