mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 21:58: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
|
// Clang does not have good hueristics for determining source language, we
|
||||||
// should explicitly specify it.
|
// should explicitly specify it.
|
||||||
if (auto source_file_type = SourceFileType(entry.file)) {
|
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);
|
result.args.push_back("-x" + *source_file_type);
|
||||||
}
|
}
|
||||||
if (!AnyStartsWith(result.args, "-std=")) {
|
if (!AnyStartsWith(result.args, "-std=")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user