Lines Matching defs:DC
104 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) {
105 DeclList &Decls = LookupTable[DC][ND->getDeclName()];
110 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) {
112 DeclList &Decls = LookupTable[DC][Name];
120 Name.getAsString(), ND->getDeclKindName(), DC->getDeclKindName())
129 DeclContext *DC = ND->getDeclContext();
130 add(DC, ND);
131 DeclContext *ReDC = DC->getRedeclContext();
132 if (DC != ReDC)
138 DeclContext *DC = ND->getDeclContext();
139 remove(DC, ND);
140 DeclContext *ReDC = DC->getRedeclContext();
141 if (DC != ReDC)
164 ASTImporterLookupTable::lookup(DeclContext *DC, DeclarationName Name) const {
165 auto DCI = LookupTable.find(DC);
177 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const {
178 return lookup(DC, ND->getDeclName()).contains(ND);
181 void ASTImporterLookupTable::dump(DeclContext *DC) const {
182 auto DCI = LookupTable.find(DC);
199 DeclContext *DC = Entry.first;
200 llvm::errs() << "== DC:" << cast<Decl>(DC) << "\n";
201 dump(DC);