From 2cdd3b9e267ac2eb805c40a251d4859ef55a52d5 Mon Sep 17 00:00:00 2001 From: Riatre Foo Date: Sun, 28 Apr 2019 19:11:10 +0800 Subject: [PATCH] Append '/' before populating folder.dot_ccls --- src/project.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project.cc b/src/project.cc index 32637f65..6c54bbd2 100644 --- a/src/project.cc +++ b/src/project.cc @@ -261,7 +261,7 @@ void LoadDirectoryListing(ProjectProcessor &proc, const std::string &root, files.push_back(path); } else if (sys::path::filename(path) == ".ccls") { std::vector 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++) {