Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks! Just a couple of Qs...
clang-tools-extra/clangd/FindTarget.cpp | ||
---|---|---|
88 | Is this the bit that "breaks" the dependence? getDecl() works even if the type might ultimately correspond to a different decl? It's not obvious to me where the magic happens, so wherever it is, maybe add a comment :-) | |
88 | The actual lookup doesn't do anything subtle in this case (no dependent base lookup, failing to match IsArrow isn't possible). What do you think about just calling Decl->lookup() here and early returning, not bothering with the generalization of lookupDependentName? (I find the mix of behavior in that function a little hard to get my head around) |
Thanks!
clang-tools-extra/clangd/FindTarget.cpp | ||
---|---|---|
82 | or auto result = ET->getDecl()->lookup(...); return {result.begin(), result.end()} |
or auto result = ET->getDecl()->lookup(...); return {result.begin(), result.end()}