sourcegraph / scip-clang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emit references for dependent member expressions

varungandhi-src opened this issue · comments

Right now, dependent member expressions don't have any reference information.
E.g. see the test cases added in #292

The "naive" way would involve actually walking over the instantiated body and then
recording reference information per instantiation. However, this will cause a bunch
of overhead when the number of instantiations is high. While this would be more accurate
than some kind of "guess", it still won't be 100% complete as templates being in
headers + the header-skipping optimization mean that certain instantiations
will anyways not be traversed.

It might be possible to look at the clangd code to figure out how it handles
navigation in such situations.

Closing this as too broad; more narrow cases are covered in #296