Lines Matching refs:NamedDecl
370 const NamedDecl *D, in isPreferredLookupResult()
371 const NamedDecl *Existing) { in isPreferredLookupResult()
463 static bool canHideTag(const NamedDecl *D) { in canHideTag()
496 const NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
507 llvm::SmallDenseMap<const NamedDecl *, unsigned, 16> Unique; in resolveKind()
514 const NamedDecl *HasNonFunction = nullptr; in resolveKind()
516 llvm::SmallVector<const NamedDecl *, 4> EquivalentNonFunctions; in resolveKind()
520 const NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
521 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind()
692 for (NamedDecl *D : *this) in dump()
965 if (NamedDecl *D = in LookupBuiltin()
1124 for (NamedDecl *D : DR) { in LookupDirect()
1322 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1386 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName()
1475 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1529 void Sema::makeMergedDefinitionVisible(NamedDecl *ND) { in makeMergedDefinitionVisible()
1618 bool Sema::hasVisibleMergedDefinition(const NamedDecl *Def) { in hasVisibleMergedDefinition()
1625 bool Sema::hasMergedDefinitionInCurrentModule(const NamedDecl *Def) { in hasMergedDefinitionInCurrentModule()
1659 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules, in hasAcceptableDefaultArgument()
1671 bool Sema::hasVisibleDefaultArgument(const NamedDecl *D, in hasVisibleDefaultArgument()
1678 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasReachableDefaultArgument()
1685 hasAcceptableDeclarationImpl(Sema &S, const NamedDecl *D, in hasAcceptableDeclarationImpl()
1691 auto *R = cast<NamedDecl>(Redecl); in hasAcceptableDeclarationImpl()
1712 hasAcceptableExplicitSpecialization(Sema &S, const NamedDecl *D, in hasAcceptableExplicitSpecialization()
1717 [](const NamedDecl *D) { in hasAcceptableExplicitSpecialization()
1733 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasVisibleExplicitSpecialization()
1739 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasReachableExplicitSpecialization()
1745 hasAcceptableMemberSpecialization(Sema &S, const NamedDecl *D, in hasAcceptableMemberSpecialization()
1752 [](const NamedDecl *D) { in hasAcceptableMemberSpecialization()
1767 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasVisibleMemberSpecialization()
1773 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasReachableMemberSpecialization()
1787 bool LookupResult::isAcceptableSlow(Sema &SemaRef, NamedDecl *D, in isAcceptableSlow()
1831 SemaRef.hasAcceptableDefinition(cast<NamedDecl>(DC), Kind); in isAcceptableSlow()
1834 isAcceptable(SemaRef, cast<NamedDecl>(DC), Kind); in isAcceptableSlow()
1837 AcceptableWithinParent = isAcceptable(SemaRef, cast<NamedDecl>(DC), Kind); in isAcceptableSlow()
1843 if (SemaRef.hasMergedDefinitionInCurrentModule(cast<NamedDecl>(DC))) { in isAcceptableSlow()
1851 SemaRef.hasAcceptableDefinition(cast<NamedDecl>(DC), Kind); in isAcceptableSlow()
1914 bool LookupResult::isReachableSlow(Sema &SemaRef, NamedDecl *D) { in isReachableSlow()
1970 bool Sema::isAcceptableSlow(const NamedDecl *D, Sema::AcceptableKind Kind) { in isAcceptableSlow()
1971 return LookupResult::isAcceptable(*this, const_cast<NamedDecl *>(D), Kind); in isAcceptableSlow()
1974 bool Sema::shouldLinkPossiblyHiddenDecl(LookupResult &R, const NamedDecl *New) { in shouldLinkPossiblyHiddenDecl()
2018 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D, in findAcceptableDecl()
2027 auto ND = cast<NamedDecl>(RD); in findAcceptableDecl()
2039 bool Sema::hasVisibleDeclarationSlow(const NamedDecl *D, in hasVisibleDeclarationSlow()
2043 *this, D, Modules, [](const NamedDecl *) { return true; }, in hasVisibleDeclarationSlow() argument
2048 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasReachableDeclarationSlow()
2051 *this, D, Modules, [](const NamedDecl *) { return true; }, in hasReachableDeclarationSlow() argument
2055 NamedDecl *LookupResult::getAcceptableDeclSlow(NamedDecl *D) const { in getAcceptableDeclSlow()
2077 bool LookupResult::isVisible(Sema &SemaRef, NamedDecl *D) { in isVisible()
2087 bool LookupResult::isReachable(Sema &SemaRef, NamedDecl *D) { in isReachable()
2094 bool LookupResult::isAvailableForLookup(Sema &SemaRef, NamedDecl *ND) { in isAvailableForLookup()
2211 if (NamedDecl *D = R.getAcceptableDecl(*I)) { in LookupName()
2265 if (NamedDecl *LastD = R.getAcceptableDecl(*LastI)) in LookupName()
2550 NamedDecl *ND = *It++; in LookupQualifiedName()
2668 if (NamedDecl *ND = R.getAcceptableDecl(*I)) in LookupQualifiedName()
2825 std::set<const NamedDecl *> DeclsPrinted; in DiagnoseAmbiguousLookup()
2829 const NamedDecl *D = *Path->Decls; in DiagnoseAmbiguousLookup()
2849 llvm::SmallPtrSet<NamedDecl*, 8> TagDecls; in DiagnoseAmbiguousLookup()
3295 for (const NamedDecl *D : OE->decls()) { in FindAssociatedClassesAndNamespaces()
3306 NamedDecl *Sema::LookupSingleName(Scope *S, DeclarationName Name, in LookupSingleName()
3312 return R.getAsSingle<NamedDecl>(); in LookupSingleName()
3495 SmallVector<NamedDecl *, 8> Candidates(R.begin(), R.end()); in LookupSpecialMember()
3497 for (NamedDecl *CandDecl : Candidates) { in LookupSpecialMember()
3787 for (const NamedDecl *D : R) in LookupLiteralOperator()
3813 void ADLResult::insert(NamedDecl *New) { in insert()
3814 NamedDecl *&Old = Decls[cast<NamedDecl>(New->getCanonicalDecl())]; in insert()
3898 D = cast_or_null<NamedDecl>(D->getPreviousDecl())) { in ArgumentDependentLookup()
3977 typedef llvm::TinyPtrVector<NamedDecl*> ShadowMapEntry;
4008 NamedDecl *checkHidden(NamedDecl *ND);
4011 void add(NamedDecl *ND) { in add()
4034 NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) { in checkHidden()
4156 if (NamedDecl *ND = Result.getAcceptableDecl(*I)) { in lookupInDeclContext()
4170 llvm::SmallVector<NamedDecl *, 4> DeclsToVisit; in lookupInDeclContext()
4331 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in lookupInScope()
4435 NamedDecl *Res = nullptr; in LookupOrCreateLabel()
4495 llvm::SmallVector<NamedDecl*, 4> NewDecls(TC.begin(), DI); in checkCorrectionVisibility()
4560 void TypoCorrectionConsumer::FoundDecl(NamedDecl *ND, NamedDecl *Hiding, in FoundDecl()
4593 void TypoCorrectionConsumer::addName(StringRef Name, NamedDecl *ND, in addName()
4639 if (NamedDecl *NewND = Correction.getCorrectionDecl()) { in addCorrection()
4942 } else if (NamedDecl *ND = in addNameSpecifier()
4943 dyn_cast_or_null<NamedDecl>(NamespaceDeclChain.back())) { in addNameSpecifier()
5526 void TypoCorrection::addCorrectionDecl(NamedDecl *CDecl) { in addCorrectionDecl()
5600 NamedDecl *ND = C->getUnderlyingDecl(); in ValidateCandidate()
5663 static const NamedDecl *getDefinitionToImport(const NamedDecl *D) { in getDefinitionToImport()
5675 if (const NamedDecl *TTD = TD->getTemplatedDecl()) in getDefinitionToImport()
5680 void Sema::diagnoseMissingImport(SourceLocation Loc, const NamedDecl *Decl, in diagnoseMissingImport()
5684 const NamedDecl *Def = getDefinitionToImport(Decl); in diagnoseMissingImport()
5710 void Sema::diagnoseMissingImport(SourceLocation UseLoc, const NamedDecl *Decl, in diagnoseMissingImport()
5836 NamedDecl *Decl = Correction.getFoundDecl(); in diagnoseTypo()
5847 NamedDecl *ChosenDecl = in diagnoseTypo()