From 99904874ca479d648d4cf9620274bf40dee98f8f Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 6 Mar 2018 19:52:16 +0100 Subject: [PATCH] Fix libclang generic error on Windows --- src/project.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/project.cc b/src/project.cc index ce9f13a4..646ac36e 100644 --- a/src/project.cc +++ b/src/project.cc @@ -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]); }