Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclTemplate.h776 return getMostRecentDecl(); in getMostRecentDeclImpl()
962 using redeclarable_base::getMostRecentDecl;
1078 FunctionTemplateDecl *getMostRecentDecl() {
1081 ->getMostRecentDecl());
2154 this)->getMostRecentDecl());
2371 ClassTemplateDecl *getMostRecentDecl() {
2375 const ClassTemplateDecl *getMostRecentDecl() const {
2771 VarTemplateSpecializationDecl *getMostRecentDecl() {
3000 this)->getMostRecentDecl());
3200 VarTemplateDecl *getMostRecentDecl() {
[all …]
H A DDecl.h94 return getMostRecentDecl(); in getMostRecentDeclImpl()
111 using redeclarable_base::getMostRecentDecl;
471 NamedDecl *getMostRecentDecl() { in getMostRecentDecl() function
474 const NamedDecl *getMostRecentDecl() const { in getMostRecentDecl() function
584 using redeclarable_base::getMostRecentDecl;
1058 return getMostRecentDecl(); in getMostRecentDeclImpl()
2030 return getMostRecentDecl(); in getMostRecentDeclImpl()
3250 return getMostRecentDecl(); in getMostRecentDeclImpl()
3414 return getMostRecentDecl(); in getMostRecentDeclImpl()
3742 EnumDecl *getMostRecentDecl() { in getMostRecentDecl() function
[all …]
H A DDeclCXX.h436 getMostRecentDecl(); in dataPtr()
518 CXXRecordDecl *getMostRecentDecl() { in getMostRecentDecl() function
520 static_cast<RecordDecl *>(this)->getMostRecentDecl()); in getMostRecentDecl()
523 const CXXRecordDecl *getMostRecentDecl() const { in getMostRecentDecl() function
524 return const_cast<CXXRecordDecl*>(this)->getMostRecentDecl(); in getMostRecentDecl()
529 static_cast<CXXRecordDecl *>(this)->getMostRecentDecl(); in getMostRecentNonInjectedDecl()
2073 CXXMethodDecl *getMostRecentDecl() { in getMostRecentDecl() function
2077 const CXXMethodDecl *getMostRecentDecl() const { in getMostRecentDecl() function
3072 using redeclarable_base::getMostRecentDecl;
3243 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 DDeclObjC.h1259 return getMostRecentDecl(); in getMostRecentDeclImpl()
1519 getMostRecentDecl(); in hasDefinition()
1889 using redeclarable_base::getMostRecentDecl;
2093 return getMostRecentDecl(); in getMostRecentDeclImpl()
2200 getMostRecentDecl(); in hasDefinition()
2242 using redeclarable_base::getMostRecentDecl;
H A DDeclBase.h1030 Decl *getMostRecentDecl() { return getMostRecentDeclImpl(); } in getMostRecentDecl() function
1034 const Decl *getMostRecentDecl() const { in getMostRecentDecl() function
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclTemplate.cpp294 CommonBase *CommonBasePtr = getMostRecentDecl()->getCommonPtr(); in loadLazySpecializationsImpl()
315 return Entry ? SETraits::getDecl(Entry)->getMostRecentDecl() : nullptr; in findSpecializationImpl()
573 PS.push_back(P.getMostRecentDecl()); in getPartialSpecializations()
582 return P.getMostRecentDecl(); in findPartialSpecialization()
594 return P.getMostRecentDecl(); in findPartialSpecInstantiatedFromMember()
1261 PS.push_back(P.getMostRecentDecl()); in getPartialSpecializations()
1270 return P.getMostRecentDecl(); in findPartialSpecInstantiatedFromMember()
H A DDeclBase.cpp451 if (CheckUsedAttr && getMostRecentDecl()->hasAttr<UsedAttr>()) in isUsed()
456 return getMostRecentDecl()->getCanonicalDecl()->Used; in isUsed()
723 for (const auto *A : getMostRecentDecl()->attrs()) { in isWeakImported()
1314 for (T *D = Self->getMostRecentDecl(); D; D = D->getPreviousDecl()) in collectAllContextsImpl()
1677 (void)cast<Decl>(this)->getMostRecentDecl(); in lookup()
H A DTemplateName.cpp189 Decl = cast<TemplateDecl>(Decl->getMostRecentDecl()); in getNameToSubstitute()
H A DDecl.cpp1165 assert(!IsMostRecent || ND == ND->getMostRecentDecl()); in getExplicitVisibilityAux()
1197 const NamedDecl *MostRecent = ND->getMostRecentDecl(); in getExplicitVisibilityAux()
2261 for (VarDecl *Decl = getMostRecentDecl(); Decl; in getActingDefinition()
3506 for (const FunctionDecl *FD = getMostRecentDecl(); FD; in isMSExternInline()
4966 auto *MostRecent = getMostRecentDecl(); in isWeak()
H A DASTImporter.cpp2731 PrevDecl = FoundEnum->getMostRecentDecl(); in VisitEnumDecl()
2880 PrevDecl = FoundRecord->getMostRecentDecl(); in VisitRecordDecl()
3577 FoundByLookup->getMostRecentDecl()); in VisitFunctionDecl()
4178 auto *Recent = const_cast<VarDecl *>(FoundByLookup->getMostRecentDecl()); in VisitVarDecl()
5687 const_cast<ClassTemplateDecl *>(FoundByLookup->getMostRecentDecl()); in VisitClassTemplateDecl()
5701 FoundByLookup->getTemplatedDecl()->getMostRecentDecl(); in VisitClassTemplateDecl()
5977 const_cast<VarTemplateDecl *>(FoundByLookup->getMostRecentDecl()); in VisitVarTemplateDecl()
5980 FoundByLookup->getTemplatedDecl()->getMostRecentDecl(); in VisitVarTemplateDecl()
6230 const_cast<FunctionTemplateDecl *>(FoundByLookup->getMostRecentDecl()); in VisitFunctionTemplateDecl()
6235 FoundByLookup->getTemplatedDecl()->getMostRecentDecl(); in VisitFunctionTemplateDecl()
H A DAPValue.cpp73 for (auto *Redecl = cast<ValueDecl>(D->getMostRecentDecl()); Redecl; in getType()
H A DDeclCXX.cpp2916 return getMostRecentDecl(); in getMostRecentDeclImpl()
2930 return getMostRecentDecl(); in getMostRecentDeclImpl()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSema.cpp719 if (D->getMostRecentDecl()->isUsed()) in ShouldRemoveFromUnused()
741 DeclToCheck = FD->getMostRecentDecl(); in ShouldRemoveFromUnused()
771 DeclToCheck = VD->getMostRecentDecl(); in ShouldRemoveFromUnused()
824 !FD->getMostRecentDecl()->isInlined() && in getUndefinedButUsed()
835 !VD->getMostRecentDecl()->isInline() && in getUndefinedButUsed()
898 assert(FD->getMostRecentDecl()->isInlined() && in checkUndefinedButUsed()
903 assert(cast<VarDecl>(VD)->getMostRecentDecl()->isInline() && in checkUndefinedButUsed()
H A DIdentifierResolver.cpp281 Decl *MostRecent = Existing->getMostRecentDecl(); in compareDeclarations()
H A DSemaAvailability.cpp343 for (const Decl *Redecl = OffendingDecl->getMostRecentDecl(); Redecl; in DoEmitAvailabilityWarning()
H A DSemaTemplateInstantiateDecl.cpp1632 = PrevClassTemplate->getMostRecentDecl()->getTemplateParameters(); in VisitClassTemplateDecl()
4930 for (auto *D = Function->getMostRecentDecl(); /**/; in InstantiateFunctionDefinition()
6352 if (Var->getMostRecentDecl()->isInvalidDecl()) in PerformPendingInstantiations()
6357 switch (Var->getMostRecentDecl() in PerformPendingInstantiations()
6367 if (Var != Var->getMostRecentDecl()) in PerformPendingInstantiations()
H A DSemaTemplate.cpp1952 ? PrevClassTemplate->getMostRecentDecl()->getTemplateParameters() in CheckClassTemplate()
5680 D = cast<TemplateParmDecl>(cast<TemplateDecl>(TD->getMostRecentDecl()) in diagnoseMissingArgument()
5729 cast<TemplateDecl>(Template->getMostRecentDecl()) in CheckTemplateArgumentList()
11174 diagnose(Spec->getMostRecentDecl(), false); in checkImpl()
11220 diagnose(TD->getMostRecentDecl(), false); in checkTemplate()
H A DSemaLambda.cpp300 else if (Var->getMostRecentDecl()->isInline()) in getCurrentMangleNumberContext()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriterDecl.cpp183 for (const Decl *R = D->getMostRecentDecl(); R; R = R->getPreviousDecl()) { in AddFirstDeclFromEachModule()
393 D->getFirstDecl() == D->getMostRecentDecl() && in VisitTypedefDecl()
461 D->getFirstDecl() == D->getMostRecentDecl() && in VisitEnumDecl()
498 D->getFirstDecl() == D->getMostRecentDecl() && in VisitRecordDecl()
1078 D->getFirstDecl() == D->getMostRecentDecl() && in VisitVarDecl()
1257 D == D->getMostRecentDecl()) { in VisitNamespaceDecl()
1407 D->getFirstDecl() == D->getMostRecentDecl() && in VisitCXXMethodDecl()
1811 T *MostRecent = First->getMostRecentDecl(); in VisitRedeclarable()
1837 for (const Decl *Prev = FirstLocal->getMostRecentDecl(); in VisitRedeclarable()
H A DASTReaderDecl.cpp283 static Decl *getMostRecentDecl(Decl *D);
481 Current = Current->getMostRecentDecl(); in operator ++()
3288 Decl *ASTDeclReader::getMostRecentDecl(Decl *D) { in getMostRecentDecl() function in ASTDeclReader
3302 return ASTDeclReader::getMostRecentDecl(D->getCanonicalDecl()); in getMostRecentExistingDecl()
4017 Decl *PrevMostRecent = ASTDeclReader::getMostRecentDecl(CanonDecl); in loadPendingDeclChain()
4191 auto *MostRecent = D->getMostRecentDecl(); in forAllLaterRedecls()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCXXABI.cpp171 VD = VD->getMostRecentDecl(); in isEmittedWithConstantInitializer()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DIncludeCleaner.cpp174 if (SM.isInMainFile(RD->getMostRecentDecl()->getLocation())) in add()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp405 FD = FD->getMostRecentDecl(); in translateCallExpr()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp6008 ASSERT_EQ(ToClassDef->getMostRecentDecl(), ToClassDef); in TEST_P()
6009 ASSERT_EQ(ToClassProto->getMostRecentDecl(), ToClassProto); in TEST_P()
6018 ASSERT_EQ(FromClassDef->getMostRecentDecl(), FromClassDef); in TEST_P()
6019 ASSERT_EQ(FromClassProto->getMostRecentDecl(), FromClassProto); in TEST_P()

12