mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Strip main source filename if it is a relative path in GetCompilationEntryFromCompileCommandEntry
This commit is contained in:
parent
de1de3e51a
commit
fb38537f20
@ -114,7 +114,7 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry(
|
||||
++i;
|
||||
continue;
|
||||
}
|
||||
if (StartsWithAny(arg, kBlacklist))
|
||||
if (StartsWithAny(arg, kBlacklist) || arg == result.filename)
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user