Lines Matching refs:ND
104 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add() argument
105 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in add()
107 Decls.insert(ND); in add()
110 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove() argument
111 const DeclarationName Name = ND->getDeclName(); in remove()
113 bool EraseResult = Decls.remove(ND); in remove()
126 void ASTImporterLookupTable::add(NamedDecl *ND) { in add() argument
127 assert(ND); in add()
128 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add()
129 add(DC, ND); in add()
132 add(ReDC, ND); in add()
135 void ASTImporterLookupTable::remove(NamedDecl *ND) { in remove() argument
136 assert(ND); in remove()
137 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove()
138 remove(DC, ND); in remove()
141 remove(ReDC, ND); in remove()
144 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update() argument
145 assert(OldDC != ND->getDeclContext() && in update()
147 if (contains(ND->getDeclContext(), ND)) { in update()
148 assert(!contains(OldDC, ND) && in update()
153 remove(OldDC, ND); in update()
154 add(ND); in update()
157 void ASTImporterLookupTable::updateForced(NamedDecl *ND, DeclContext *OldDC) { in updateForced() argument
158 LookupTable[OldDC][ND->getDeclName()].remove(ND); in updateForced()
159 add(ND); in updateForced()
176 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains()
177 return lookup(DC, ND->getDeclName()).contains(ND); in contains()
190 for (NamedDecl *ND : List) { in dump()
191 ND->dump(); in dump()