mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-22 00:19:28 +00:00
-x c++-header has implicit -std=c++14
This commit is contained in:
parent
a2faa0c519
commit
63178468eb
@ -154,7 +154,7 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry(
|
|||||||
if (!AnyStartsWith(entry.args, "-std=")) {
|
if (!AnyStartsWith(entry.args, "-std=")) {
|
||||||
if (*source_file_type == "c")
|
if (*source_file_type == "c")
|
||||||
result.args.push_back("-std=gnu11");
|
result.args.push_back("-std=gnu11");
|
||||||
else if (*source_file_type == "c++")
|
else if (*source_file_type == "c++" || *source_file_type == "c++-header")
|
||||||
result.args.push_back("-std=c++14");
|
result.args.push_back("-std=c++14");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user