Lines Matching defs:DC
82 if (DeclContext *DC = dyn_cast<DeclContext>(D)) {
83 if (DC == DC->getPrimaryContext())
84 DC->dumpLookups(Out, Dump);
87 << DC->getPrimaryContext() << "\n";
193 void PrintDeclContext(const DeclContext* DC, unsigned Indentation);
197 void DeclContextPrinter::PrintDeclContext(const DeclContext* DC,
200 switch (DC->getDeclKind()) {
202 Out << "[translation unit] " << DC;
206 const NamespaceDecl* ND = cast<NamespaceDecl>(DC);
211 const EnumDecl* ED = cast<EnumDecl>(DC);
220 const RecordDecl* RD = cast<RecordDecl>(DC);
229 const CXXRecordDecl* RD = cast<CXXRecordDecl>(DC);
234 Out << *RD << ' ' << DC;
262 const FunctionDecl* FD = cast<FunctionDecl>(DC);
282 const CXXMethodDecl* D = cast<CXXMethodDecl>(DC);
312 const CXXConstructorDecl* D = cast<CXXConstructorDecl>(DC);
333 // Check the semantic DC.
341 const CXXDestructorDecl* D = cast<CXXDestructorDecl>(DC);
349 // Check the semantic DC.
357 const CXXConversionDecl* D = cast<CXXConversionDecl>(DC);
365 // Check the semantic DC.
380 for (auto *I : DC->decls()) {
404 DeclContext* DC = cast<DeclContext>(I);
405 PrintDeclContext(DC, Indentation+2);