Add indexing of UsingDecl itself.
Also enable generation of USRs for UsingDecls, using the qualified name of the
decl.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Index/IndexDecl.cpp | ||
---|---|---|
588 ↗ | (On Diff #187201) | Any reason to add this to the middle of the function? So that the function logically reads as visitDecl(); traverseSubdecls(); processReferences(); |
lib/Index/USRGeneration.cpp | ||
115 ↗ | (On Diff #187201) | We need to add a unique tag character here, e.g. namespace aliases are tagged as "@NA@", "@UD@" should be a good fit for using-decls. |
118 ↗ | (On Diff #187201) | This comment does not make sense for the using-decl, ParmDecl is not a using-decl. |
lib/Index/IndexDecl.cpp | ||
---|---|---|
586 ↗ | (On Diff #187208) | NIT: maybe put it at the very first line of the function, before the DC and Parent decls? |
lib/Index/USRGeneration.cpp | ||
118 ↗ | (On Diff #187208) | add (void)EmittedDeclName to avoid unused warning with assertions disabled. |
LGTM, but we need to make sure the variable is used in configs without assertions, otherwise we'll break buildbots.