mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-29 19:07:08 +00:00
Detect Windows absolute paths in LoadCompilationEntriesFromDirectory
This commit is contained in:
parent
e4d4c7b139
commit
69d439ae8d
@ -364,7 +364,8 @@ std::vector<Project::Entry> LoadCompilationEntriesFromDirectory(
|
||||
our_time.Resume();
|
||||
entry.directory = directory;
|
||||
std::string absolute_filename;
|
||||
if (!relative_filename.empty() && relative_filename[0] == '/')
|
||||
if (IsUnixAbsolutePath(relative_filename) ||
|
||||
IsWindowsAbsolutePath(relative_filename))
|
||||
absolute_filename = relative_filename;
|
||||
else
|
||||
absolute_filename = directory + "/" + relative_filename;
|
||||
|
Loading…
Reference in New Issue
Block a user