[PATCH] D123031: [clangd] Use consistent header paths in CanonicalIncludes mappings

Kirill Bobyrev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 4 08:10:28 PDT 2022


kbobyrev added a comment.

In D123031#3426382 <https://reviews.llvm.org/D123031#3426382>, @kadircet wrote:

>> Right! I think I also need to do that in SymbolCollector.cpp.
>
> Now that you mentioned this too, it feels like the issue is not about being consistent, as I think all of the places that we have today are actually making use of `FileEntry::getName` as keys to `CanonicalIncludes::{addMapping,mapHeader}`. Are we sure we're not relying on some sort of canonization of file path (AFAICT, that's not the case the only canonization that's happening is dropping `..`) when you use `tryGetRealPathName` instead of `getName`?

Right, I think the name of the patch is misleading. "Consistent" means "consistency across different SM/FMs" rather than consistency across the call sites.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123031/new/

https://reviews.llvm.org/D123031



More information about the cfe-commits mailing list