mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +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;
|
++i;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (StartsWithAny(arg, kBlacklist))
|
if (StartsWithAny(arg, kBlacklist) || arg == result.filename)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user