Append '/' before populating folder.dot_ccls

This commit is contained in:
Riatre Foo 2019-04-28 19:11:10 +08:00 committed by Fangrui Song
parent b2f32788d3
commit 9e884fca80

View File

@ -273,7 +273,7 @@ void LoadDirectoryListing(ProjectProcessor &proc, const std::string &root,
files.push_back(path);
} else if (sys::path::filename(path) == ".ccls") {
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);
std::string l;
for (size_t i = 0; i < args.size(); i++) {