Lines Matching refs:ND
886 if (NamedDecl *ND = R.getAcceptableDecl(*I)) {
888 R.addDecl(ND);
937 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) {
938 R.addDecl(ND);
988 if (NamedDecl *ND = R.getAcceptableDecl(*I)) {
994 R.addDecl(ND);
1072 if (NamedDecl *ND = dyn_cast<NamedDecl>(*RD)) {
1073 if (LookupResult::isVisible(ND))
1074 return ND;
1274 NamespaceDecl *ND = (*I)->getNominatedNamespace()->getOriginalNamespace();
1275 if (Visited.insert(ND))
1276 Queue.push_back(ND);
1290 NamespaceDecl *ND = Queue.back();
1297 bool FoundDirect = LookupDirect(S, DirectR, ND);
1322 for (llvm::tie(I,E) = ND->getUsingDirectives(); I != E; ++I) {
2767 NamedDecl *checkHidden(NamedDecl *ND);
2770 void add(NamedDecl *ND) {
2771 ShadowMaps.back()[ND->getDeclName()].push_back(ND);
2793 NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) {
2795 ND = ND->getUnderlyingDecl();
2797 unsigned IDNS = ND->getIdentifierNamespace();
2801 ShadowMap::iterator Pos = SM->find(ND->getDeclName());
2824 ND->isFunctionOrFunctionTemplate() &&
2856 if (NamedDecl *ND = dyn_cast<NamedDecl>(*R.first)) {
2857 if ((ND = Result.getAcceptableDecl(ND))) {
2858 Consumer.FoundDecl(ND, Visited.checkHidden(ND), Ctx, InBaseClass);
2859 Visited.add(ND);
2991 if (NamedDecl *ND = dyn_cast<NamedDecl>(*D))
2992 if ((ND = Result.getAcceptableDecl(ND))) {
2993 Consumer.FoundDecl(ND, Visited.checkHidden(ND), 0, false);
2994 Visited.add(ND);
3164 virtual void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
3168 void addName(StringRef Name, NamedDecl *ND, unsigned Distance,
3200 void TypoCorrectionConsumer::FoundDecl(NamedDecl *ND, NamedDecl *Hiding,
3209 IdentifierInfo *Name = ND->getIdentifier();
3239 NamedDecl *ND,
3243 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, Distance);
3364 if (NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(*C))
3365 CurContextIdentifiers.push_back(ND->getIdentifier());
3371 void AddNamespace(NamespaceDecl *ND);
3388 NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(DC);
3390 !(ND && ND->isAnonymousNamespace()))
3414 void NamespaceSpecifierSet::AddNamespace(NamespaceDecl *ND) {
3415 DeclContext *Ctx = cast<DeclContext>(ND);
3430 if (NamespaceDecl *ND =
3433 IdentifierInfo *Name = ND->getIdentifier();
3448 NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(*C);
3449 if (ND) {
3450 NNS = NestedNameSpecifier::Create(Context, NNS, ND);