Lines Matching refs:NamedDecl
372 const NamedDecl *D, in isPreferredLookupResult()
373 const NamedDecl *Existing) { in isPreferredLookupResult()
465 static bool canHideTag(const NamedDecl *D) { in canHideTag()
498 const NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
509 llvm::SmallDenseMap<const NamedDecl *, unsigned, 16> Unique; in resolveKind()
516 const NamedDecl *HasNonFunction = nullptr; in resolveKind()
518 llvm::SmallVector<const NamedDecl *, 4> EquivalentNonFunctions; in resolveKind()
522 const NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
523 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind()
694 for (NamedDecl *D : *this) in dump()
965 if (NamedDecl *D = in LookupBuiltin()
1124 for (NamedDecl *D : DR) { in LookupDirect()
1334 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1398 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName()
1487 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1541 void Sema::makeMergedDefinitionVisible(NamedDecl *ND) { in makeMergedDefinitionVisible()
1639 bool Sema::hasVisibleMergedDefinition(const NamedDecl *Def) { in hasVisibleMergedDefinition()
1646 bool Sema::hasMergedDefinitionInCurrentModule(const NamedDecl *Def) { in hasMergedDefinitionInCurrentModule()
1680 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules, in hasAcceptableDefaultArgument()
1692 bool Sema::hasVisibleDefaultArgument(const NamedDecl *D, in hasVisibleDefaultArgument()
1699 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasReachableDefaultArgument()
1706 hasAcceptableDeclarationImpl(Sema &S, const NamedDecl *D, in hasAcceptableDeclarationImpl()
1712 auto *R = cast<NamedDecl>(Redecl); in hasAcceptableDeclarationImpl()
1733 hasAcceptableExplicitSpecialization(Sema &S, const NamedDecl *D, in hasAcceptableExplicitSpecialization()
1738 [](const NamedDecl *D) { in hasAcceptableExplicitSpecialization()
1754 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasVisibleExplicitSpecialization()
1760 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasReachableExplicitSpecialization()
1766 hasAcceptableMemberSpecialization(Sema &S, const NamedDecl *D, in hasAcceptableMemberSpecialization()
1773 [](const NamedDecl *D) { in hasAcceptableMemberSpecialization()
1788 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasVisibleMemberSpecialization()
1794 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasReachableMemberSpecialization()
1808 bool LookupResult::isAcceptableSlow(Sema &SemaRef, NamedDecl *D, in isAcceptableSlow()
1852 SemaRef.hasAcceptableDefinition(cast<NamedDecl>(DC), Kind); in isAcceptableSlow()
1855 isAcceptable(SemaRef, cast<NamedDecl>(DC), Kind); in isAcceptableSlow()
1858 AcceptableWithinParent = isAcceptable(SemaRef, cast<NamedDecl>(DC), Kind); in isAcceptableSlow()
1864 if (SemaRef.hasMergedDefinitionInCurrentModule(cast<NamedDecl>(DC))) { in isAcceptableSlow()
1872 SemaRef.hasAcceptableDefinition(cast<NamedDecl>(DC), Kind); in isAcceptableSlow()
1935 bool LookupResult::isReachableSlow(Sema &SemaRef, NamedDecl *D) { in isReachableSlow()
1991 bool Sema::isAcceptableSlow(const NamedDecl *D, Sema::AcceptableKind Kind) { in isAcceptableSlow()
1992 return LookupResult::isAcceptable(*this, const_cast<NamedDecl *>(D), Kind); in isAcceptableSlow()
1995 bool Sema::shouldLinkPossiblyHiddenDecl(LookupResult &R, const NamedDecl *New) { in shouldLinkPossiblyHiddenDecl()
2039 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D, in findAcceptableDecl()
2048 auto ND = cast<NamedDecl>(RD); in findAcceptableDecl()
2060 bool Sema::hasVisibleDeclarationSlow(const NamedDecl *D, in hasVisibleDeclarationSlow()
2064 *this, D, Modules, [](const NamedDecl *) { return true; }, in hasVisibleDeclarationSlow() argument
2069 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasReachableDeclarationSlow()
2072 *this, D, Modules, [](const NamedDecl *) { return true; }, in hasReachableDeclarationSlow() argument
2076 NamedDecl *LookupResult::getAcceptableDeclSlow(NamedDecl *D) const { in getAcceptableDeclSlow()
2098 bool LookupResult::isVisible(Sema &SemaRef, NamedDecl *D) { in isVisible()
2108 bool LookupResult::isReachable(Sema &SemaRef, NamedDecl *D) { in isReachable()
2115 bool LookupResult::isAvailableForLookup(Sema &SemaRef, NamedDecl *ND) { in isAvailableForLookup()
2204 if (NamedDecl *D = R.getAcceptableDecl(*I)) { in LookupName()
2258 if (NamedDecl *LastD = R.getAcceptableDecl(*LastI)) in LookupName()
2541 NamedDecl *ND = *It++; in LookupQualifiedName()
2659 if (NamedDecl *ND = R.getAcceptableDecl(*I)) in LookupQualifiedName()
2788 std::set<const NamedDecl *> DeclsPrinted; in DiagnoseAmbiguousLookup()
2792 const NamedDecl *D = *Path->Decls; in DiagnoseAmbiguousLookup()
2812 llvm::SmallPtrSet<NamedDecl*, 8> TagDecls; in DiagnoseAmbiguousLookup()
3255 for (const NamedDecl *D : OE->decls()) { in FindAssociatedClassesAndNamespaces()
3266 NamedDecl *Sema::LookupSingleName(Scope *S, DeclarationName Name, in LookupSingleName()
3272 return R.getAsSingle<NamedDecl>(); in LookupSingleName()
3447 SmallVector<NamedDecl *, 8> Candidates(R.begin(), R.end()); in LookupSpecialMember()
3449 for (NamedDecl *CandDecl : Candidates) { in LookupSpecialMember()
3721 for (const NamedDecl *D : R) in LookupLiteralOperator()
3747 void ADLResult::insert(NamedDecl *New) { in insert()
3748 NamedDecl *&Old = Decls[cast<NamedDecl>(New->getCanonicalDecl())]; in insert()
3832 D = cast_or_null<NamedDecl>(D->getPreviousDecl())) { in ArgumentDependentLookup()
3911 typedef llvm::TinyPtrVector<NamedDecl*> ShadowMapEntry;
3942 NamedDecl *checkHidden(NamedDecl *ND);
3945 void add(NamedDecl *ND) { in add()
3968 NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) { in checkHidden()
4090 if (NamedDecl *ND = Result.getAcceptableDecl(*I)) { in lookupInDeclContext()
4104 llvm::SmallVector<NamedDecl *, 4> DeclsToVisit; in lookupInDeclContext()
4265 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in lookupInScope()
4365 NamedDecl *Res = nullptr; in LookupOrCreateLabel()
4426 llvm::SmallVector<NamedDecl*, 4> NewDecls(TC.begin(), DI); in checkCorrectionVisibility()
4491 void TypoCorrectionConsumer::FoundDecl(NamedDecl *ND, NamedDecl *Hiding, in FoundDecl()
4524 void TypoCorrectionConsumer::addName(StringRef Name, NamedDecl *ND, in addName()
4570 if (NamedDecl *NewND = Correction.getCorrectionDecl()) { in addCorrection()
4873 } else if (NamedDecl *ND = in addNameSpecifier()
4874 dyn_cast_or_null<NamedDecl>(NamespaceDeclChain.back())) { in addNameSpecifier()
5392 void TypoCorrection::addCorrectionDecl(NamedDecl *CDecl) { in addCorrectionDecl()
5466 NamedDecl *ND = C->getUnderlyingDecl(); in ValidateCandidate()
5529 static const NamedDecl *getDefinitionToImport(const NamedDecl *D) { in getDefinitionToImport()
5541 if (const NamedDecl *TTD = TD->getTemplatedDecl()) in getDefinitionToImport()
5546 void Sema::diagnoseMissingImport(SourceLocation Loc, const NamedDecl *Decl, in diagnoseMissingImport()
5550 const NamedDecl *Def = getDefinitionToImport(Decl); in diagnoseMissingImport()
5576 void Sema::diagnoseMissingImport(SourceLocation UseLoc, const NamedDecl *Decl, in diagnoseMissingImport()
5684 NamedDecl *Decl = Correction.getFoundDecl(); in diagnoseTypo()
5695 NamedDecl *ChosenDecl = in diagnoseTypo()