reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
37 auto &TU = *Ctx.getTranslationUnitDecl(); 38 auto &Foo = *TU.lookup(&Ctx.Idents.get("foo")).front(); 39 auto &Bar = *cast<DeclContext>(Foo).lookup(&Ctx.Idents.get("bar")).front(); 41 Ctx.setTraversalScope({&Bar}); 43 Visitor V(&Ctx); 47 V.TraverseAST(Ctx);