mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Fix project.cc unit tests.
-x processing broke.
This commit is contained in:
parent
5238c50027
commit
487680e8d1
@ -190,7 +190,7 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry(
|
||||
// Clang does not have good hueristics for determining source language, we
|
||||
// should explicitly specify it.
|
||||
if (auto source_file_type = SourceFileType(entry.file)) {
|
||||
if (AnyStartsWith(result.args, "-x")) {
|
||||
if (!AnyStartsWith(result.args, "-x")) {
|
||||
result.args.push_back("-x" + *source_file_type);
|
||||
}
|
||||
if (!AnyStartsWith(result.args, "-std=")) {
|
||||
|
Loading…
Reference in New Issue
Block a user