[llvm-branch-commits] [clang-tools-extra] [clangd] check for synthesized symbols when tracking include locations (PR #75128)

kadir çetinkaya via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 11 23:21:03 PST 2023


kadircet wrote:

Hi @mizvekov thanks for the fix, but I am not sure if this is at the right level. The way you're bailing out currently prevents clangd from indexing all implicit definitions, even if we have a hard-coded mapping for them (based on the symbol name).

Also the map you're preventing the insertion stores FileIDs as values, not keys, hence it isn't the place firing assertion failures. Can you instead move the logic to SymbolCollector::finish, which uses FileIDs to determine includers for objective-c symbols? we should only perform that logic if there's a valid FileID.

https://github.com/llvm/llvm-project/pull/75128


More information about the llvm-branch-commits mailing list