Put full path in quotes

This commit is contained in:
Jonathan Müller 2017-06-21 10:00:35 +02:00
commit 35c090e7c3

View file

@ -25,6 +25,11 @@ namespace ts = type_safe;
namespace namespace
{ {
std::string quote(std::string str)
{
return '"' + std::move(str) + '"';
}
// build the command that runs the preprocessor // build the command that runs the preprocessor
std::string get_command(const libclang_compile_config& c, const char* full_path) std::string get_command(const libclang_compile_config& c, const char* full_path)
{ {
@ -56,7 +61,7 @@ namespace
} }
// add path to file being processed // add path to file being processed
cmd += full_path; cmd += quote(full_path);
return cmd; return cmd;
} }