Put full path in quotes
This commit is contained in:
parent
9590b63c2c
commit
35c090e7c3
1 changed files with 6 additions and 1 deletions
|
|
@ -25,6 +25,11 @@ namespace ts = type_safe;
|
|||
|
||||
namespace
|
||||
{
|
||||
std::string quote(std::string str)
|
||||
{
|
||||
return '"' + std::move(str) + '"';
|
||||
}
|
||||
|
||||
// build the command that runs the preprocessor
|
||||
std::string get_command(const libclang_compile_config& c, const char* full_path)
|
||||
{
|
||||
|
|
@ -56,7 +61,7 @@ namespace
|
|||
}
|
||||
|
||||
// add path to file being processed
|
||||
cmd += full_path;
|
||||
cmd += quote(full_path);
|
||||
|
||||
return cmd;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue