Lines Matching refs:ND

1322       if (NamedDecl *ND = R.getAcceptableDecl(*I)) {  in CppLookupName()  local
1344 R.addDecl(ND); in CppLookupName()
1386 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName() local
1387 R.addDecl(ND); in CppLookupName()
1475 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName() local
1481 R.addDecl(ND); in CppLookupName()
1529 void Sema::makeMergedDefinitionVisible(NamedDecl *ND) { in makeMergedDefinitionVisible() argument
1531 Context.mergeDefinitionIntoModule(ND, M); in makeMergedDefinitionVisible()
1534 ND->setVisibleDespiteOwningModule(); in makeMergedDefinitionVisible()
1538 if (auto *TD = dyn_cast<TemplateDecl>(ND)) in makeMergedDefinitionVisible()
2027 auto ND = cast<NamedDecl>(RD); in findAcceptableDecl() local
2031 if (ND->isInIdentifierNamespace(IDNS) && in findAcceptableDecl()
2032 LookupResult::isAvailableForLookup(SemaRef, ND)) in findAcceptableDecl()
2033 return ND; in findAcceptableDecl()
2056 if (auto *ND = dyn_cast<NamespaceDecl>(D)) { in getAcceptableDeclSlow() local
2063 auto *Key = ND->getCanonicalDecl(); in getAcceptableDeclSlow()
2094 bool LookupResult::isAvailableForLookup(Sema &SemaRef, NamedDecl *ND) { in isAvailableForLookup() argument
2096 if (isVisible(SemaRef, ND)) in isAvailableForLookup()
2103 if (auto *DeductionGuide = ND->getDeclName().getCXXDeductionGuideTemplate()) in isAvailableForLookup()
2118 if (auto *FD = dyn_cast<FunctionDecl>(ND); in isAvailableForLookup()
2122 auto *DC = ND->getDeclContext(); in isAvailableForLookup()
2335 NamespaceDecl *ND = I->getNominatedNamespace()->getOriginalNamespace(); in LookupQualifiedNameInUsingDirectives() local
2336 if (S.isVisible(I) && Visited.insert(ND).second) in LookupQualifiedNameInUsingDirectives()
2337 Queue.push_back(ND); in LookupQualifiedNameInUsingDirectives()
2351 NamespaceDecl *ND = Queue.pop_back_val(); in LookupQualifiedNameInUsingDirectives() local
2357 bool FoundDirect = LookupDirect(S, DirectR, ND); in LookupQualifiedNameInUsingDirectives()
2382 for (auto *I : ND->using_directives()) { in LookupQualifiedNameInUsingDirectives()
2550 NamedDecl *ND = *It++; in LookupQualifiedName() local
2551 if (!ND->isInIdentifierNamespace(IDNS)) in LookupQualifiedName()
2563 if (auto *TD = getAsTemplateNameDecl(ND)) in LookupQualifiedName()
2564 ND = TD; in LookupQualifiedName()
2569 if (const TypeDecl *TD = dyn_cast<TypeDecl>(ND->getUnderlyingDecl())) { in LookupQualifiedName()
2574 return ND->getUnderlyingDecl()->getCanonicalDecl(); in LookupQualifiedName()
2668 if (NamedDecl *ND = R.getAcceptableDecl(*I)) in LookupQualifiedName() local
2669 R.addDecl(ND, AS); in LookupQualifiedName()
4008 NamedDecl *checkHidden(NamedDecl *ND);
4011 void add(NamedDecl *ND) { in add() argument
4012 ShadowMaps.back()[ND->getDeclName()].push_back(ND); in add()
4034 NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) { in checkHidden() argument
4035 unsigned IDNS = ND->getIdentifierNamespace(); in checkHidden()
4039 ShadowMap::iterator Pos = SM->find(ND->getDeclName()); in checkHidden()
4060 ND->getUnderlyingDecl()->isFunctionOrFunctionTemplate() && in checkHidden()
4066 if (isa<UsingShadowDecl>(ND) && isa<UsingDecl>(D) && in checkHidden()
4067 cast<UsingShadowDecl>(ND)->getIntroducer() == D) in checkHidden()
4156 if (NamedDecl *ND = Result.getAcceptableDecl(*I)) { in lookupInDeclContext() local
4157 Consumer.FoundDecl(ND, Visited.checkHidden(ND), Ctx, InBaseClass); in lookupInDeclContext()
4158 Visited.add(ND); in lookupInDeclContext()
4187 if (auto *ND = Result.getAcceptableDecl(D)) { in lookupInDeclContext() local
4188 Consumer.FoundDecl(ND, Visited.checkHidden(ND), Ctx, InBaseClass); in lookupInDeclContext()
4189 Visited.add(ND); in lookupInDeclContext()
4331 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in lookupInScope() local
4332 if ((ND = Result.getAcceptableDecl(ND))) { in lookupInScope()
4333 Consumer.FoundDecl(ND, Visited.checkHidden(ND), nullptr, false); in lookupInScope()
4334 Visited.add(ND); in lookupInScope()
4560 void TypoCorrectionConsumer::FoundDecl(NamedDecl *ND, NamedDecl *Hiding, in FoundDecl() argument
4569 IdentifierInfo *Name = ND->getIdentifier(); in FoundDecl()
4575 if (!LookupResult::isVisible(SemaRef, ND) && Name != Typo) in FoundDecl()
4593 void TypoCorrectionConsumer::addName(StringRef Name, NamedDecl *ND, in addName() argument
4608 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED); in addName()
4878 if (auto *ND = dyn_cast_or_null<NamespaceDecl>(C)) in NamespaceSpecifierSet() local
4879 CurContextIdentifiers.push_back(ND->getIdentifier()); in NamespaceSpecifierSet()
4894 NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(DC); in buildContextChain() local
4896 !(ND && ND->isAnonymousNamespace())) in buildContextChain()
4907 if (auto *ND = dyn_cast_or_null<NamespaceDecl>(C)) { in buildNestedNameSpecifier() local
4908 NNS = NestedNameSpecifier::Create(Context, NNS, ND); in buildNestedNameSpecifier()
4942 } else if (NamedDecl *ND = in addNameSpecifier() local
4944 IdentifierInfo *Name = ND->getIdentifier(); in addNameSpecifier()
5600 NamedDecl *ND = C->getUnderlyingDecl(); in ValidateCandidate() local
5601 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in ValidateCandidate()
5604 if (!(FD = dyn_cast<FunctionDecl>(ND)) && isa<ValueDecl>(ND)) { in ValidateCandidate()
5608 QualType ValType = cast<ValueDecl>(ND)->getType(); in ValidateCandidate()
5620 if ((HasExplicitTemplateArgs ? getAsTypeTemplateDecl(ND) != nullptr in ValidateCandidate()
5621 : isa<TypeDecl>(ND)) && in ValidateCandidate()
5624 return NumArgs <= 1 || HasExplicitTemplateArgs || isa<CXXRecordDecl>(ND); in ValidateCandidate()