• Home
  • Raw
  • Download

Lines Matching refs:ND

1074       if (NamedDecl *ND = R.getAcceptableDecl(*I)) {  in CppLookupName()  local
1092 R.addDecl(ND); in CppLookupName()
1150 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName() local
1151 R.addDecl(ND); in CppLookupName()
1239 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName() local
1245 R.addDecl(ND); in CppLookupName()
1370 void Sema::makeMergedDefinitionVisible(NamedDecl *ND, SourceLocation Loc) { in makeMergedDefinitionVisible() argument
1372 Context.mergeDefinitionIntoModule(ND, M); in makeMergedDefinitionVisible()
1375 ND->setHidden(false); in makeMergedDefinitionVisible()
1379 if (auto *TD = dyn_cast<TemplateDecl>(ND)) in makeMergedDefinitionVisible()
1566 if (auto ND = dyn_cast<NamedDecl>(RD)) { in findAcceptableDecl() local
1570 if (LookupResult::isVisible(SemaRef, ND)) in findAcceptableDecl()
1571 return ND; in findAcceptableDecl()
1765 NamespaceDecl *ND = I->getNominatedNamespace()->getOriginalNamespace(); in LookupQualifiedNameInUsingDirectives() local
1766 if (Visited.insert(ND).second) in LookupQualifiedNameInUsingDirectives()
1767 Queue.push_back(ND); in LookupQualifiedNameInUsingDirectives()
1781 NamespaceDecl *ND = Queue.pop_back_val(); in LookupQualifiedNameInUsingDirectives() local
1787 bool FoundDirect = LookupDirect(S, DirectR, ND); in LookupQualifiedNameInUsingDirectives()
1812 for (auto I : ND->using_directives()) { in LookupQualifiedNameInUsingDirectives()
3281 NamedDecl *checkHidden(NamedDecl *ND);
3284 void add(NamedDecl *ND) { in add() argument
3285 ShadowMaps.back()[ND->getDeclName()].push_back(ND); in add()
3307 NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) { in checkHidden() argument
3309 ND = ND->getUnderlyingDecl(); in checkHidden()
3311 unsigned IDNS = ND->getIdentifierNamespace(); in checkHidden()
3315 ShadowMap::iterator Pos = SM->find(ND->getDeclName()); in checkHidden()
3336 ND->getUnderlyingDecl()->isFunctionOrFunctionTemplate() && in checkHidden()
3379 if (NamedDecl *ND = Result.getAcceptableDecl(*I)) { in LookupVisibleDecls() local
3380 Consumer.FoundDecl(ND, Visited.checkHidden(ND), Ctx, InBaseClass); in LookupVisibleDecls()
3381 Visited.add(ND); in LookupVisibleDecls()
3396 if (auto *ND = Result.getAcceptableDecl(D)) { in LookupVisibleDecls() local
3397 Consumer.FoundDecl(ND, Visited.checkHidden(ND), Ctx, InBaseClass); in LookupVisibleDecls()
3398 Visited.add(ND); in LookupVisibleDecls()
3521 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in LookupVisibleDecls() local
3522 if ((ND = Result.getAcceptableDecl(ND))) { in LookupVisibleDecls()
3523 Consumer.FoundDecl(ND, Visited.checkHidden(ND), nullptr, false); in LookupVisibleDecls()
3524 Visited.add(ND); in LookupVisibleDecls()
3768 void TypoCorrectionConsumer::FoundDecl(NamedDecl *ND, NamedDecl *Hiding, in FoundDecl() argument
3777 IdentifierInfo *Name = ND->getIdentifier(); in FoundDecl()
3783 if (!LookupResult::isVisible(SemaRef, ND) && Name != Typo && in FoundDecl()
3784 !findAcceptableDecl(SemaRef, ND)) in FoundDecl()
3802 void TypoCorrectionConsumer::addName(StringRef Name, NamedDecl *ND, in addName() argument
3817 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED); in addName()
4072 if (NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(*C)) in NamespaceSpecifierSet() local
4073 CurContextIdentifiers.push_back(ND->getIdentifier()); in NamespaceSpecifierSet()
4088 NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(DC); in buildContextChain() local
4090 !(ND && ND->isAnonymousNamespace())) in buildContextChain()
4103 if (NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(*C)) { in buildNestedNameSpecifier() local
4104 NNS = NestedNameSpecifier::Create(Context, NNS, ND); in buildNestedNameSpecifier()
4139 } else if (NamedDecl *ND = in addNameSpecifier() local
4141 IdentifierInfo *Name = ND->getIdentifier(); in addNameSpecifier()
4791 NamedDecl *ND = C->getUnderlyingDecl(); in ValidateCandidate() local
4792 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in ValidateCandidate()
4795 if (!(FD = dyn_cast<FunctionDecl>(ND)) && isa<ValueDecl>(ND)) { in ValidateCandidate()
4799 QualType ValType = cast<ValueDecl>(ND)->getType(); in ValidateCandidate()