Home
last modified time | relevance | path

Searched refs:getMostRecentDecl (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclTemplate.h726 return getMostRecentDecl(); in getMostRecentDeclImpl()
759 return SETraits::getDecl(&*this->I)->getMostRecentDecl();
925 using redeclarable_base::getMostRecentDecl;
1052 FunctionTemplateDecl *getMostRecentDecl() {
1055 ->getMostRecentDecl());
1057 const FunctionTemplateDecl *getMostRecentDecl() const {
1058 return const_cast<FunctionTemplateDecl*>(this)->getMostRecentDecl();
1888 ClassTemplateSpecializationDecl *getMostRecentDecl() {
2134 ClassTemplatePartialSpecializationDecl *getMostRecentDecl() {
2137 this)->getMostRecentDecl());
[all …]
H A DDecl.h116 return getMostRecentDecl(); in getMostRecentDeclImpl()
133 using redeclarable_base::getMostRecentDecl;
500 NamedDecl *getMostRecentDecl() { in getMostRecentDecl() function
501 return cast<NamedDecl>(static_cast<Decl *>(this)->getMostRecentDecl()); in getMostRecentDecl()
503 const NamedDecl *getMostRecentDecl() const { in getMostRecentDecl() function
504 return const_cast<NamedDecl*>(this)->getMostRecentDecl(); in getMostRecentDecl()
610 using redeclarable_base::getMostRecentDecl;
1122 return getMostRecentDecl(); in getMostRecentDeclImpl()
1133 using redeclarable_base::getMostRecentDecl;
2150 return getMostRecentDecl(); in getMostRecentDeclImpl()
[all …]
H A DRedeclarable.h223 decl_type *getMostRecentDecl() { in getMostRecentDecl() function
228 const decl_type *getMostRecentDecl() const { in getMostRecentDecl() function
H A DDeclCXX.h457 getMostRecentDecl(); in dataPtr()
539 CXXRecordDecl *getMostRecentDecl() { in getMostRecentDecl() function
541 static_cast<RecordDecl *>(this)->getMostRecentDecl()); in getMostRecentDecl()
544 const CXXRecordDecl *getMostRecentDecl() const { in getMostRecentDecl() function
545 return const_cast<CXXRecordDecl*>(this)->getMostRecentDecl(); in getMostRecentDecl()
549 CXXRecordDecl *Recent = getMostRecentDecl(); in getMostRecentNonInjectedDecl()
2227 CXXMethodDecl *getMostRecentDecl() { in getMostRecentDecl() function
2229 static_cast<FunctionDecl *>(this)->getMostRecentDecl()); in getMostRecentDecl()
2231 const CXXMethodDecl *getMostRecentDecl() const { in getMostRecentDecl() function
2232 return const_cast<CXXMethodDecl*>(this)->getMostRecentDecl(); in getMostRecentDecl()
[all …]
H A DDeclObjC.h1271 return getMostRecentDecl(); in getMostRecentDeclImpl()
1531 getMostRecentDecl(); in hasDefinition()
1908 using redeclarable_base::getMostRecentDecl;
2128 return getMostRecentDecl(); in getMostRecentDeclImpl()
2241 getMostRecentDecl(); in hasDefinition()
2290 using redeclarable_base::getMostRecentDecl;
H A DDeclBase.h1073 Decl *getMostRecentDecl() { return getMostRecentDeclImpl(); } in getMostRecentDecl() function
1077 const Decl *getMostRecentDecl() const { in getMostRecentDecl() function
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclTemplate.cpp389 return Entry ? SETraits::getDecl(Entry)->getMostRecentDecl() : nullptr; in findSpecializationLocally()
625 PS.push_back(P.getMostRecentDecl()); in getPartialSpecializations()
634 return P.getMostRecentDecl(); in findPartialSpecialization()
646 return P.getMostRecentDecl(); in findPartialSpecInstantiatedFromMember()
1385 PS.push_back(P.getMostRecentDecl()); in getPartialSpecializations()
1394 return P.getMostRecentDecl(); in findPartialSpecInstantiatedFromMember()
H A DDeclBase.cpp565 if (CheckUsedAttr && getMostRecentDecl()->hasAttr<UsedAttr>()) in isUsed()
570 return getMostRecentDecl()->getCanonicalDecl()->Used; in isUsed()
858 for (const auto *A : getMostRecentDecl()->attrs()) { in isWeakImported()
1546 for (T *D = Self->getMostRecentDecl(); D; D = D->getPreviousDecl()) in collectAllContextsImpl()
1916 (void)cast<Decl>(this)->getMostRecentDecl(); in lookupImpl()
H A DDecl.cpp1234 assert(!IsMostRecent || ND == ND->getMostRecentDecl()); in getExplicitVisibilityAux()
1266 const NamedDecl *MostRecent = ND->getMostRecentDecl(); in getExplicitVisibilityAux()
2352 for (VarDecl *Decl = getMostRecentDecl(); Decl; in getActingDefinition()
3832 for (const FunctionDecl *FD = getMostRecentDecl(); FD; in isMSExternInline()
5465 auto *MostRecent = getMostRecentDecl(); in isWeak()
H A DASTImporter.cpp3226 PrevDecl = FoundEnum->getMostRecentDecl(); in VisitEnumDecl()
3385 PrevDecl = FoundRecord->getMostRecentDecl(); in VisitRecordDecl()
4237 FoundByLookup->getMostRecentDecl()); in VisitFunctionDecl()
4860 auto *Recent = const_cast<VarDecl *>(FoundByLookup->getMostRecentDecl()); in VisitVarDecl()
6405 const_cast<ClassTemplateDecl *>(FoundByLookup->getMostRecentDecl()); in VisitClassTemplateDecl()
6419 FoundByLookup->getTemplatedDecl()->getMostRecentDecl(); in VisitClassTemplateDecl()
6730 const_cast<VarTemplateDecl *>(FoundByLookup->getMostRecentDecl()); in VisitVarTemplateDecl()
6733 FoundByLookup->getTemplatedDecl()->getMostRecentDecl(); in VisitVarTemplateDecl()
6897 D2->setPreviousDecl(FoundSpecialization->getMostRecentDecl()); in VisitVarTemplateSpecializationDecl()
7008 const_cast<FunctionTemplateDecl *>(FoundByLookup->getMostRecentDecl()); in VisitFunctionTemplateDecl()
[all …]
H A DAPValue.cpp73 for (auto *Redecl = cast<ValueDecl>(D->getMostRecentDecl()); Redecl; in getType()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp204 for (const Decl *R = D->getMostRecentDecl(); R; R = R->getPreviousDecl()) { in CollectFirstDeclFromEachModule()
622 D->getFirstDecl() == D->getMostRecentDecl() && in VisitTypedefDecl()
701 D->getFirstDecl() == D->getMostRecentDecl() && in VisitEnumDecl()
743 D->getFirstDecl() == D->getMostRecentDecl() && in VisitRecordDecl()
1355 !D->hasExtInfo() && D->getFirstDecl() == D->getMostRecentDecl() && in VisitVarDecl()
1557 D == D->getMostRecentDecl()) { in VisitNamespaceDecl()
1621 D->getFirstDecl() == D->getMostRecentDecl() && !D->hasAttrs() && in VisitUsingShadowDecl()
1740 D->getFirstDecl() == D->getMostRecentDecl() && !D->isInvalidDecl() && in VisitCXXMethodDecl()
2230 T *MostRecent = First->getMostRecentDecl(); in VisitRedeclarable()
2256 for (const Decl *Prev = FirstLocal->getMostRecentDecl(); in VisitRedeclarable()
H A DASTReaderDecl.cpp282 static Decl *getMostRecentDecl(Decl *D);
476 Current = Current->getMostRecentDecl(); in operator ++()
3569 Decl *ASTDeclReader::getMostRecentDecl(Decl *D) { in getMostRecentDecl() function in ASTDeclReader
3583 return ASTDeclReader::getMostRecentDecl(D->getCanonicalDecl()); in getMostRecentExistingDecl()
4488 Decl *PrevMostRecent = ASTDeclReader::getMostRecentDecl(CanonDecl); in loadPendingDeclChain()
4660 auto *MostRecent = D->getMostRecentDecl(); in forAllLaterRedecls()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp868 if (D->getMostRecentDecl()->isUsed()) in ShouldRemoveFromUnused()
890 DeclToCheck = FD->getMostRecentDecl(); in ShouldRemoveFromUnused()
920 DeclToCheck = VD->getMostRecentDecl(); in ShouldRemoveFromUnused()
973 !FD->getMostRecentDecl()->isInlined() && in getUndefinedButUsed()
984 !VD->getMostRecentDecl()->isInline() && in getUndefinedButUsed()
1048 assert(FD->getMostRecentDecl()->isInlined() && in checkUndefinedButUsed()
1053 assert(cast<VarDecl>(VD)->getMostRecentDecl()->isInline() && in checkUndefinedButUsed()
H A DSemaOpenACCClause.cpp1855 return Expr1DRE->getDecl()->getMostRecentDecl() == in areVarsEqual()
1856 Expr2DRE->getDecl()->getMostRecentDecl(); in areVarsEqual()
H A DSemaTemplate.cpp1683 CheckingRD = CheckingRD->getMostRecentDecl(); in CheckIfContainingRecord()
1690 if (CheckingRD == RD->getMostRecentDecl()) in CheckIfContainingRecord()
1793 Decl *D = TD->getMostRecentDecl(); in GetTemplateParameterList()
4573 if (Template->getMostRecentDecl()->isMemberSpecialization() && in CheckVarTemplateId()
4574 !Partial->getMostRecentDecl()->isMemberSpecialization()) in CheckVarTemplateId()
5640 D = cast<TemplateParmDecl>(cast<TemplateDecl>(TD->getMostRecentDecl()) in diagnoseMissingArgument()
5872 (Template->getMostRecentDecl()->getKind() != Decl::Kind::Concept) && in CheckTemplateArgumentList()
11504 diagnose(Spec->getMostRecentDecl(), false); in checkImpl()
11550 diagnose(TD->getMostRecentDecl(), false); in checkTemplate()
H A DSemaTemplateInstantiate.cpp3990 if (CTD->getMostRecentDecl()->isMemberSpecialization() && in usesPartialOrExplicitSpecialization()
3991 !CTPSD->getMostRecentDecl()->isMemberSpecialization()) in usesPartialOrExplicitSpecialization()
4048 if (Template->getMostRecentDecl()->isMemberSpecialization() && in getPatternForClassTemplateSpecialization()
4049 !Partial->getMostRecentDecl()->isMemberSpecialization()) in getPatternForClassTemplateSpecialization()
H A DSemaOpenACC.cpp2409 while (FD != FD->getMostRecentDecl()) { in CheckRoutineDecl()
2410 FD = FD->getMostRecentDecl(); in CheckRoutineDecl()
H A DSemaAvailability.cpp443 for (const Decl *Redecl = OffendingDecl->getMostRecentDecl(); Redecl; in DoEmitAvailabilityWarning()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DForwardDeclChecker.cpp132 for (S = S->getMostRecentDecl(); S; S = S->getPreviousDecl()) { in isUnknownType()
H A DPtrTypesSemantics.cpp257 for (auto *Redecl : RT->getDecl()->getMostRecentDecl()->redecls()) { in visitTypedef()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXXABI.cpp176 VD = VD->getMostRecentDecl(); in isEmittedWithConstantInitializer()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DContext.cpp405 FuncDecl = FuncDecl->getMostRecentDecl(); in getOrCreateFunction()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DXCore.cpp321 const Decl *D = Val.first.getDecl()->getMostRecentDecl(); in emitTargetMetadata()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenExprConstant.cpp447 d = cast<ValueDecl>(d->getMostRecentDecl()); in tryEmitBase()

12