mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-29 11:01:57 +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 (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]);
|
is_drive_letter(path[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user