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
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to