Lines Matching refs:NamedDecl
360 NamedDecl *D, NamedDecl *Existing) { in isPreferredLookupResult()
449 static bool canHideTag(NamedDecl *D) { in canHideTag()
482 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
493 llvm::SmallDenseMap<NamedDecl*, unsigned, 16> Unique; in resolveKind()
499 NamedDecl *HasNonFunction = nullptr; in resolveKind()
501 llvm::SmallVector<NamedDecl*, 4> EquivalentNonFunctions; in resolveKind()
507 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
508 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind()
597 NamedDecl *OtherDecl = Decls[UniqueTagIndex ? 0 : N - 1]; in resolveKind()
666 for (NamedDecl *D : *this) in dump()
700 if (NamedDecl *D = S.LazilyCreateBuiltin((IdentifierInfo *)II, in LookupBuiltin()
842 for (NamedDecl *D : DR) { in LookupDirect()
1102 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1182 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName()
1271 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1341 void Sema::makeMergedDefinitionVisible(NamedDecl *ND) { in makeMergedDefinitionVisible()
1402 bool Sema::hasVisibleMergedDefinition(NamedDecl *Def) { in hasVisibleMergedDefinition()
1409 bool Sema::hasMergedDefinitionInCurrentModule(NamedDecl *Def) { in hasMergedDefinitionInCurrentModule()
1439 bool Sema::hasVisibleDefaultArgument(const NamedDecl *D, in hasVisibleDefaultArgument()
1450 static bool hasVisibleDeclarationImpl(Sema &S, const NamedDecl *D, in hasVisibleDeclarationImpl()
1456 auto *R = cast<NamedDecl>(Redecl); in hasVisibleDeclarationImpl()
1477 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasVisibleExplicitSpecialization()
1478 return hasVisibleDeclarationImpl(*this, D, Modules, [](const NamedDecl *D) { in hasVisibleExplicitSpecialization()
1490 const NamedDecl *D, llvm::SmallVectorImpl<Module *> *Modules) { in hasVisibleMemberSpecialization()
1493 return hasVisibleDeclarationImpl(*this, D, Modules, [](const NamedDecl *D) { in hasVisibleMemberSpecialization()
1513 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { in isVisibleSlow()
1545 VisibleWithinParent = isVisible(SemaRef, cast<NamedDecl>(DC)); in isVisibleSlow()
1551 if (SemaRef.hasMergedDefinitionInCurrentModule(cast<NamedDecl>(DC))) { in isVisibleSlow()
1558 VisibleWithinParent = SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC)); in isVisibleSlow()
1608 bool Sema::isVisibleSlow(const NamedDecl *D) { in isVisibleSlow()
1609 return LookupResult::isVisible(*this, const_cast<NamedDecl*>(D)); in isVisibleSlow()
1612 bool Sema::shouldLinkPossiblyHiddenDecl(LookupResult &R, const NamedDecl *New) { in shouldLinkPossiblyHiddenDecl()
1656 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D, in findAcceptableDecl()
1665 auto ND = cast<NamedDecl>(RD); in findAcceptableDecl()
1677 bool Sema::hasVisibleDeclarationSlow(const NamedDecl *D, in hasVisibleDeclarationSlow()
1681 [](const NamedDecl *) { return true; }); in hasVisibleDeclarationSlow() argument
1684 NamedDecl *LookupResult::getAcceptableDeclSlow(NamedDecl *D) const { in getAcceptableDeclSlow()
1762 if (NamedDecl *D = R.getAcceptableDecl(*I)) { in LookupName()
1816 if (NamedDecl *LastD = R.getAcceptableDecl(*LastI)) in LookupName()
2379 llvm::SmallPtrSet<NamedDecl*, 8> TagDecls; in DiagnoseAmbiguousLookup()
2815 NamedDecl *Sema::LookupSingleName(Scope *S, DeclarationName Name, in LookupSingleName()
2821 return R.getAsSingle<NamedDecl>(); in LookupSingleName()
2988 SmallVector<NamedDecl *, 8> Candidates(R.begin(), R.end()); in LookupSpecialMember()
2990 for (NamedDecl *CandDecl : Candidates) { in LookupSpecialMember()
3266 void ADLResult::insert(NamedDecl *New) { in insert()
3267 NamedDecl *&Old = Decls[cast<NamedDecl>(New->getCanonicalDecl())]; in insert()
3345 D = cast_or_null<NamedDecl>(D->getPreviousDecl())) { in ArgumentDependentLookup()
3383 typedef llvm::TinyPtrVector<NamedDecl*> ShadowMapEntry;
3414 NamedDecl *checkHidden(NamedDecl *ND);
3417 void add(NamedDecl *ND) { in add()
3440 NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) { in checkHidden()
3520 if (NamedDecl *ND = Result.getAcceptableDecl(*I)) { in LookupVisibleDecls()
3691 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in LookupVisibleDecls()
3815 NamedDecl *Res = nullptr; in LookupOrCreateLabel()
3875 llvm::SmallVector<NamedDecl*, 4> NewDecls(TC.begin(), DI); in checkCorrectionVisibility()
3940 void TypoCorrectionConsumer::FoundDecl(NamedDecl *ND, NamedDecl *Hiding, in FoundDecl()
3973 void TypoCorrectionConsumer::addName(StringRef Name, NamedDecl *ND, in addName()
4019 if (NamedDecl *NewND = Correction.getCorrectionDecl()) { in addCorrection()
4305 } else if (NamedDecl *ND = in addNameSpecifier()
4306 dyn_cast_or_null<NamedDecl>(NamespaceDeclChain.back())) { in addNameSpecifier()
4895 void TypoCorrection::addCorrectionDecl(NamedDecl *CDecl) { in addCorrectionDecl()
4967 NamedDecl *ND = C->getUnderlyingDecl(); in ValidateCandidate()
5023 static NamedDecl *getDefinitionToImport(NamedDecl *D) { in getDefinitionToImport()
5039 void Sema::diagnoseMissingImport(SourceLocation Loc, NamedDecl *Decl, in diagnoseMissingImport()
5043 NamedDecl *Def = getDefinitionToImport(Decl); in diagnoseMissingImport()
5069 void Sema::diagnoseMissingImport(SourceLocation UseLoc, NamedDecl *Decl, in diagnoseMissingImport()
5161 NamedDecl *Decl = Correction.getFoundDecl(); in diagnoseTypo()
5172 NamedDecl *ChosenDecl = in diagnoseTypo()