mirror of
https://github.com/MaskRay/ccls.git
synced 2024-12-01 20:07:08 +00:00
GetFallback: append clang.extraArgs
When compile_commands.json is absent, GetFallback is called to get default clang command line when there is no .ccls or .ccls is empty.
This commit is contained in:
parent
4fd6e11c90
commit
f54a350e0c
@ -215,6 +215,8 @@ std::vector<const char *> GetFallback(const std::string path) {
|
||||
std::vector<const char *> argv{"clang"};
|
||||
if (sys::path::extension(path) == ".h")
|
||||
argv.push_back("-xobjective-c++-header");
|
||||
for (const std::string &arg : g_config->clang.extraArgs)
|
||||
argv.push_back(Intern(arg));
|
||||
argv.push_back(Intern(path));
|
||||
return argv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user