HighCommander4 wrote:

> How the heck does this happen.

I don't have a theory offhand.

(For completeness, one theory I considered but then discarded is that the issue 
is related to the discovery we made 
[here](https://github.com/llvm/llvm-project/pull/169742#issuecomment-3654373277),
 that "the background indexer runs `SymbolCollector` during the parse, on each 
declarations after it's been parsed". The reason I discarded this theory is 
that in that PR, we changed this behaviour by introducing the 
[`DeferIndexingToEndOfTranslationUnit`](https://searchfox.org/llvm/rev/3b908aaf1de387c34738ebe5166adab98d2254ce/clang/include/clang/Index/IndexingOptions.h#44)
 option, and `IndexActionTest` [does 
use](https://searchfox.org/llvm/rev/3b908aaf1de387c34738ebe5166adab98d2254ce/clang-tools-extra/clangd/index/IndexAction.cpp#216)
 that option.)

I'll give you first crack at debugging this, but do let me know if you need 
some help.

https://github.com/llvm/llvm-project/pull/206716
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to