Home | History | Annotate | Download | only in AST

Lines Matching refs:DC

229     bool hasNodes(const DeclContext *DC);
230 void dumpDeclContext(const DeclContext *DC);
231 void dumpLookups(const DeclContext *DC, bool DumpDecls);
723 bool ASTDumper::hasNodes(const DeclContext *DC) {
724 if (!DC)
727 return DC->hasExternalLexicalStorage() ||
728 DC->noload_decls_begin() != DC->noload_decls_end();
731 void ASTDumper::dumpDeclContext(const DeclContext *DC) {
732 if (!DC)
735 for (auto *D : DC->noload_decls())
738 if (DC->hasExternalLexicalStorage()) {
746 void ASTDumper::dumpLookups(const DeclContext *DC, bool DumpDecls) {
749 dumpBareDeclRef(cast<Decl>(DC));
751 const DeclContext *Primary = DC->getPrimaryContext();
752 if (Primary != DC) {
2336 const DeclContext *DC = this;
2337 while (!DC->isTranslationUnit())
2338 DC = DC->getParent();
2339 ASTContext &Ctx = cast<TranslationUnitDecl>(DC)->getASTContext();