Fix libclang generic error on Windows

This commit is contained in:
Daan De Meyer 2018-03-06 19:52:16 +01:00 committed by Jacob Dufault
parent e5a904f9c7
commit 99904874ca

View File

@ -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]);
} }