mirror of
https://github.com/MaskRay/ccls.git
synced 2024-12-03 04:57:09 +00:00
Append '/' before populating folder.dot_ccls
This commit is contained in:
parent
9dc5a6f90b
commit
2cdd3b9e26
@ -261,7 +261,7 @@ void LoadDirectoryListing(ProjectProcessor &proc, const std::string &root,
|
|||||||
files.push_back(path);
|
files.push_back(path);
|
||||||
} else if (sys::path::filename(path) == ".ccls") {
|
} else if (sys::path::filename(path) == ".ccls") {
|
||||||
std::vector<const char *> args = ReadCompilerArgumentsFromFile(path);
|
std::vector<const char *> args = ReadCompilerArgumentsFromFile(path);
|
||||||
folder.dot_ccls.emplace(sys::path::parent_path(path),
|
folder.dot_ccls.emplace(sys::path::parent_path(path).str() + '/',
|
||||||
args);
|
args);
|
||||||
std::string l;
|
std::string l;
|
||||||
for (size_t i = 0; i < args.size(); i++) {
|
for (size_t i = 0; i < args.size(); i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user