Lines Matching refs:NamedDecl
361 NamedDecl *D, NamedDecl *Existing) { in isPreferredLookupResult()
442 static bool canHideTag(NamedDecl *D) { in canHideTag()
472 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
483 llvm::SmallDenseMap<NamedDecl*, unsigned, 16> Unique; in resolveKind()
489 NamedDecl *HasNonFunction = nullptr; in resolveKind()
491 llvm::SmallVector<NamedDecl*, 4> EquivalentNonFunctions; in resolveKind()
497 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
498 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind()
587 NamedDecl *OtherDecl = Decls[UniqueTagIndex ? 0 : N - 1]; in resolveKind()
686 if (NamedDecl *D = S.LazilyCreateBuiltin((IdentifierInfo *)II, in LookupBuiltin()
824 NamedDecl *D = *I; in LookupDirect()
1074 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1150 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName()
1239 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1318 if (M || !isa<NamedDecl>(Entity) || !cast<NamedDecl>(Entity)->isHidden()) in getOwningModule()
1328 auto *Parent = cast<NamedDecl>(Entity->getDeclContext()); in getOwningModule()
1344 cast<NamedDecl>(Entity)->setHidden(false); in getOwningModule()
1370 void Sema::makeMergedDefinitionVisible(NamedDecl *ND, SourceLocation Loc) { in makeMergedDefinitionVisible()
1424 bool Sema::hasVisibleMergedDefinition(NamedDecl *Def) { in hasVisibleMergedDefinition()
1456 bool Sema::hasVisibleDefaultArgument(const NamedDecl *D, in hasVisibleDefaultArgument()
1474 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { in isVisibleSlow()
1504 ? isVisible(SemaRef, cast<NamedDecl>(DC)) in isVisibleSlow()
1505 : SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC))) { in isVisibleSlow()
1542 bool Sema::isVisibleSlow(const NamedDecl *D) { in isVisibleSlow()
1543 return LookupResult::isVisible(*this, const_cast<NamedDecl*>(D)); in isVisibleSlow()
1546 bool Sema::shouldLinkPossiblyHiddenDecl(LookupResult &R, const NamedDecl *New) { in shouldLinkPossiblyHiddenDecl()
1562 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D) { in findAcceptableDecl()
1566 if (auto ND = dyn_cast<NamedDecl>(RD)) { in findAcceptableDecl()
1578 NamedDecl *LookupResult::getAcceptableDeclSlow(NamedDecl *D) const { in getAcceptableDeclSlow()
1638 if (NamedDecl *D = R.getAcceptableDecl(*I)) { in LookupName()
1692 if (NamedDecl *LastD = R.getAcceptableDecl(*LastI)) in LookupName()
2254 llvm::SmallPtrSet<NamedDecl*, 8> TagDecls; in DiagnoseAmbiguousLookup()
2685 NamedDecl *Sema::LookupSingleName(Scope *S, DeclarationName Name, in LookupSingleName()
2691 return R.getAsSingle<NamedDecl>(); in LookupSingleName()
2855 SmallVector<NamedDecl *, 8> Candidates(R.begin(), R.end()); in LookupSpecialMember()
3133 void ADLResult::insert(NamedDecl *New) { in insert()
3134 NamedDecl *&Old = Decls[cast<NamedDecl>(New->getCanonicalDecl())]; in insert()
3211 isVisible(cast<NamedDecl>(DI))) { in ArgumentDependentLookup()
3250 typedef llvm::TinyPtrVector<NamedDecl*> ShadowMapEntry;
3281 NamedDecl *checkHidden(NamedDecl *ND);
3284 void add(NamedDecl *ND) { in add()
3307 NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) { in checkHidden()
3379 if (NamedDecl *ND = Result.getAcceptableDecl(*I)) { in LookupVisibleDecls()
3521 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in LookupVisibleDecls()
3638 NamedDecl *Res = nullptr; in LookupOrCreateLabel()
3699 llvm::SmallVector<NamedDecl*, 4> NewDecls(TC.begin(), DI); in checkCorrectionVisibility()
3703 NamedDecl *VisibleDecl = *DI; in checkCorrectionVisibility()
3768 void TypoCorrectionConsumer::FoundDecl(NamedDecl *ND, NamedDecl *Hiding, in FoundDecl()
3802 void TypoCorrectionConsumer::addName(StringRef Name, NamedDecl *ND, in addName()
3848 if (NamedDecl *NewND = Correction.getCorrectionDecl()) { in addCorrection()
4139 } else if (NamedDecl *ND = in addNameSpecifier()
4140 dyn_cast_or_null<NamedDecl>(NamespaceDeclChain.back())) { in addNameSpecifier()
4719 void TypoCorrection::addCorrectionDecl(NamedDecl *CDecl) { in addCorrectionDecl()
4791 NamedDecl *ND = C->getUnderlyingDecl(); in ValidateCandidate()
4845 static NamedDecl *getDefinitionToImport(NamedDecl *D) { in getDefinitionToImport()
4861 void Sema::diagnoseMissingImport(SourceLocation Loc, NamedDecl *Decl, in diagnoseMissingImport()
4867 NamedDecl *Def = getDefinitionToImport(Decl); in diagnoseMissingImport()
4887 void Sema::diagnoseMissingImport(SourceLocation UseLoc, NamedDecl *Decl, in diagnoseMissingImport()
4954 NamedDecl *Decl = Correction.getCorrectionDecl(); in diagnoseTypo()
4965 NamedDecl *ChosenDecl = in diagnoseTypo()