Replace them with suffix mappings.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 21769 Build 21769: arc lint + arc unit
Event Timeline
clangd/index/CanonicalIncludes.h | ||
---|---|---|
44 | 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 | ||
---|---|---|
24 | 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.