Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclTemplate.h728 return getMostRecentDecl(); in getMostRecentDeclImpl()
760 return SETraits::getDecl(&*this->I)->getMostRecentDecl();
931 using redeclarable_base::getMostRecentDecl;
1038 FunctionTemplateDecl *getMostRecentDecl() {
1041 ->getMostRecentDecl());
1043 const FunctionTemplateDecl *getMostRecentDecl() const {
1044 return const_cast<FunctionTemplateDecl*>(this)->getMostRecentDecl();
1874 ClassTemplateSpecializationDecl *getMostRecentDecl() {
2112 ClassTemplatePartialSpecializationDecl *getMostRecentDecl() {
2115 this)->getMostRecentDecl());
[all …]
H A DDecl.h96 return getMostRecentDecl(); in getMostRecentDeclImpl()
113 using redeclarable_base::getMostRecentDecl;
476 NamedDecl *getMostRecentDecl() { in getMostRecentDecl() function
477 return cast<NamedDecl>(static_cast<Decl *>(this)->getMostRecentDecl()); in getMostRecentDecl()
479 const NamedDecl *getMostRecentDecl() const { in getMostRecentDecl() function
480 return const_cast<NamedDecl*>(this)->getMostRecentDecl(); in getMostRecentDecl()
586 using redeclarable_base::getMostRecentDecl;
1091 return getMostRecentDecl(); in getMostRecentDeclImpl()
1102 using redeclarable_base::getMostRecentDecl;
2103 return getMostRecentDecl(); in getMostRecentDeclImpl()
[all …]
H A DRedeclarable.h226 decl_type *getMostRecentDecl() { in getMostRecentDecl() function
231 const decl_type *getMostRecentDecl() const { in getMostRecentDecl() function
H A DDeclCXX.h458 getMostRecentDecl(); in dataPtr()
540 CXXRecordDecl *getMostRecentDecl() { in getMostRecentDecl() function
542 static_cast<RecordDecl *>(this)->getMostRecentDecl()); in getMostRecentDecl()
545 const CXXRecordDecl *getMostRecentDecl() const { in getMostRecentDecl() function
546 return const_cast<CXXRecordDecl*>(this)->getMostRecentDecl(); in getMostRecentDecl()
551 static_cast<CXXRecordDecl *>(this)->getMostRecentDecl(); in getMostRecentNonInjectedDecl()
2170 CXXMethodDecl *getMostRecentDecl() { in getMostRecentDecl() function
2172 static_cast<FunctionDecl *>(this)->getMostRecentDecl()); in getMostRecentDecl()
2174 const CXXMethodDecl *getMostRecentDecl() const { in getMostRecentDecl() function
2175 return const_cast<CXXMethodDecl*>(this)->getMostRecentDecl(); in getMostRecentDecl()
[all …]
H A DDeclObjC.h1273 return getMostRecentDecl(); in getMostRecentDeclImpl()
1533 getMostRecentDecl(); in hasDefinition()
1909 using redeclarable_base::getMostRecentDecl;
2129 return getMostRecentDecl(); in getMostRecentDeclImpl()
2241 getMostRecentDecl(); in hasDefinition()
2290 using redeclarable_base::getMostRecentDecl;
H A DDeclBase.h1065 Decl *getMostRecentDecl() { return getMostRecentDeclImpl(); } in getMostRecentDecl() function
1069 const Decl *getMostRecentDecl() const { in getMostRecentDecl() function
H A DASTContext.h1101 return TUDecl->getMostRecentDecl(); in getTranslationUnitDecl()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclTemplate.cpp337 CommonBase *CommonBasePtr = getMostRecentDecl()->getCommonPtr(); in loadLazySpecializationsImpl()
359 return Entry ? SETraits::getDecl(Entry)->getMostRecentDecl() : nullptr; in findSpecializationImpl()
586 PS.push_back(P.getMostRecentDecl()); in getPartialSpecializations()
595 return P.getMostRecentDecl(); in findPartialSpecialization()
607 return P.getMostRecentDecl(); in findPartialSpecInstantiatedFromMember()
1337 PS.push_back(P.getMostRecentDecl()); in getPartialSpecializations()
1346 return P.getMostRecentDecl(); in findPartialSpecInstantiatedFromMember()
H A DDeclBase.cpp559 if (CheckUsedAttr && getMostRecentDecl()->hasAttr<UsedAttr>()) in isUsed()
564 return getMostRecentDecl()->getCanonicalDecl()->Used; in isUsed()
848 for (const auto *A : getMostRecentDecl()->attrs()) { in isWeakImported()
1499 for (T *D = Self->getMostRecentDecl(); D; D = D->getPreviousDecl()) in collectAllContextsImpl()
1862 (void)cast<Decl>(this)->getMostRecentDecl(); in lookup()
H A DDecl.cpp1228 assert(!IsMostRecent || ND == ND->getMostRecentDecl()); in getExplicitVisibilityAux()
1260 const NamedDecl *MostRecent = ND->getMostRecentDecl(); in getExplicitVisibilityAux()
2335 for (VarDecl *Decl = getMostRecentDecl(); Decl; in getActingDefinition()
3757 for (const FunctionDecl *FD = getMostRecentDecl(); FD; in isMSExternInline()
5358 auto *MostRecent = getMostRecentDecl(); in isWeak()
H A DASTImporter.cpp2956 PrevDecl = FoundEnum->getMostRecentDecl(); in VisitEnumDecl()
3114 PrevDecl = FoundRecord->getMostRecentDecl(); in VisitRecordDecl()
3965 FoundByLookup->getMostRecentDecl()); in VisitFunctionDecl()
4587 auto *Recent = const_cast<VarDecl *>(FoundByLookup->getMostRecentDecl()); in VisitVarDecl()
6121 const_cast<ClassTemplateDecl *>(FoundByLookup->getMostRecentDecl()); in VisitClassTemplateDecl()
6135 FoundByLookup->getTemplatedDecl()->getMostRecentDecl(); in VisitClassTemplateDecl()
6447 const_cast<VarTemplateDecl *>(FoundByLookup->getMostRecentDecl()); in VisitVarTemplateDecl()
6450 FoundByLookup->getTemplatedDecl()->getMostRecentDecl(); in VisitVarTemplateDecl()
6614 D2->setPreviousDecl(FoundSpecialization->getMostRecentDecl()); in VisitVarTemplateSpecializationDecl()
6717 const_cast<FunctionTemplateDecl *>(FoundByLookup->getMostRecentDecl()); in VisitFunctionTemplateDecl()
[all …]
H A DAPValue.cpp73 for (auto *Redecl = cast<ValueDecl>(D->getMostRecentDecl()); Redecl; in getType()
H A DDeclCXX.cpp3036 return getMostRecentDecl(); in getMostRecentDeclImpl()
3050 return getMostRecentDecl(); in getMostRecentDeclImpl()
H A DDeclObjC.cpp334 for (const ObjCInterfaceDecl *decl = getMostRecentDecl(); decl; in getTypeParamList()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp187 for (const Decl *R = D->getMostRecentDecl(); R; R = R->getPreviousDecl()) { in AddFirstDeclFromEachModule()
469 D->getFirstDecl() == D->getMostRecentDecl() && in VisitTypedefDecl()
548 D->getFirstDecl() == D->getMostRecentDecl() && in VisitEnumDecl()
589 D->getFirstDecl() == D->getMostRecentDecl() && in VisitRecordDecl()
1192 !D->hasExtInfo() && D->getFirstDecl() == D->getMostRecentDecl() && in VisitVarDecl()
1383 D == D->getMostRecentDecl()) { in VisitNamespaceDecl()
1446 D->getFirstDecl() == D->getMostRecentDecl() && !D->hasAttrs() && in VisitUsingShadowDecl()
1558 D->getFirstDecl() == D->getMostRecentDecl() && !D->isInvalidDecl() && in VisitCXXMethodDecl()
2034 T *MostRecent = First->getMostRecentDecl(); in VisitRedeclarable()
2060 for (const Decl *Prev = FirstLocal->getMostRecentDecl(); in VisitRedeclarable()
H A DASTReaderDecl.cpp293 static Decl *getMostRecentDecl(Decl *D);
494 Current = Current->getMostRecentDecl(); in operator ++()
3520 Decl *ASTDeclReader::getMostRecentDecl(Decl *D) { in getMostRecentDecl() function in ASTDeclReader
3534 return ASTDeclReader::getMostRecentDecl(D->getCanonicalDecl()); in getMostRecentExistingDecl()
4343 Decl *PrevMostRecent = ASTDeclReader::getMostRecentDecl(CanonDecl); in loadPendingDeclChain()
4515 auto *MostRecent = D->getMostRecentDecl(); in forAllLaterRedecls()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp795 if (D->getMostRecentDecl()->isUsed()) in ShouldRemoveFromUnused()
817 DeclToCheck = FD->getMostRecentDecl(); in ShouldRemoveFromUnused()
847 DeclToCheck = VD->getMostRecentDecl(); in ShouldRemoveFromUnused()
900 !FD->getMostRecentDecl()->isInlined() && in getUndefinedButUsed()
911 !VD->getMostRecentDecl()->isInline() && in getUndefinedButUsed()
975 assert(FD->getMostRecentDecl()->isInlined() && in checkUndefinedButUsed()
980 assert(cast<VarDecl>(VD)->getMostRecentDecl()->isInline() && in checkUndefinedButUsed()
H A DSemaAvailability.cpp424 for (const Decl *Redecl = OffendingDecl->getMostRecentDecl(); Redecl; in DoEmitAvailabilityWarning()
H A DSemaTemplateInstantiateDecl.cpp1749 PrevClassTemplate->getMostRecentDecl(); in VisitClassTemplateDecl()
5024 for (auto *D = Function->getMostRecentDecl(); /**/; in InstantiateFunctionDefinition()
6431 if (Var->getMostRecentDecl()->isInvalidDecl()) in PerformPendingInstantiations()
6436 switch (Var->getMostRecentDecl() in PerformPendingInstantiations()
6446 if (Var != Var->getMostRecentDecl()) in PerformPendingInstantiations()
H A DSemaTemplate.cpp1655 CheckingRD = CheckingRD->getMostRecentDecl(); in CheckIfContainingRecord()
1662 if (CheckingRD == RD->getMostRecentDecl()) in CheckIfContainingRecord()
1771 Decl *D = TD->getMostRecentDecl(); in GetTemplateParameterList()
5246 D = cast<TemplateParmDecl>(cast<TemplateDecl>(TD->getMostRecentDecl()) in diagnoseMissingArgument()
5442 (Template->getMostRecentDecl()->getKind() != Decl::Kind::Concept) && in CheckTemplateArgumentList()
10940 diagnose(Spec->getMostRecentDecl(), false); in checkImpl()
10986 diagnose(TD->getMostRecentDecl(), false); in checkTemplate()
H A DSemaLambda.cpp308 if (Var->getMostRecentDecl()->isInline()) in getCurrentMangleNumberContext()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXXABI.cpp178 VD = VD->getMostRecentDecl(); in isEmittedWithConstantInitializer()
H A DCodeGenModule.cpp1953 ->getMostRecentDecl(); in UpdateMultiVersionNames()
2628 FD = FD ? FD->getMostRecentDecl() : FD; in GetCPUAndFeaturesAttributes()
4550 const Decl *MRD = D->getMostRecentDecl(); in shouldDropDLLAttribute()
4741 for (const auto *FD = cast<FunctionDecl>(D)->getMostRecentDecl(); FD; in GetOrCreateLLVMFunction()
/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/Analysis/
H A DThreadSafetyCommon.cpp425 FD = FD->getMostRecentDecl(); in translateCallExpr()

12