Replace them with suffix mappings.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCTE Clang Tools Extra
Event Timeline
clangd/index/CanonicalIncludes.h | ||
---|---|---|
43–46 | Renamed to addPathSuffixMapping, updated the doc. |
Comment Actions
- s/addSuffixMapping/addFileSuffixMapping
- Document the intention of MaxSuffixComponents
Comment Actions
- Use std::distance instead of an explicit loop
- Merge break into loop condition
clangd/index/CanonicalIncludes.cpp | ||
---|---|---|
25 | Surprisingly, operator - gives byte difference. Thanks! |
It seems that this is only file path suffix matching (by components) now. We should probably rename the function to be explicit.