| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | ASTImporterGenericRedeclTest.cpp | 149 EXPECT_EQ(Current->getPreviousDecl(), Prev); in CheckPreviousDecl() 153 EXPECT_EQ(CurrentT->getTemplatedDecl()->getPreviousDecl(), in CheckPreviousDecl() 166 Current->getPreviousDecl(), in CheckPreviousDecl() 167 Current->getPreviousDecl()->getPreviousDecl())); in CheckPreviousDecl() 178 EXPECT_EQ(Current->getPreviousDecl(), Prev); in CheckPreviousDecl() 412 EXPECT_TRUE(DefinitionD->getPreviousDecl()); in TypedTest_ImportPrototypeThenProtoAndDefinition() 414 DefinitionD->getPreviousDecl()->isThisDeclarationADefinition()); in TypedTest_ImportPrototypeThenProtoAndDefinition() 416 CheckPreviousDecl(ProtoD, DefinitionD->getPreviousDecl()); in TypedTest_ImportPrototypeThenProtoAndDefinition()
|
| H A D | ASTImporterVisibilityTest.cpp | 134 EXPECT_EQ(ToD1->getPreviousDecl(), ToD0); in TypedTest_ImportChain() 259 EXPECT_EQ(ToD1->getPreviousDecl(), ToD0); in TypedTest_ImportAfter() 261 EXPECT_FALSE(ToD1->getPreviousDecl()); in TypedTest_ImportAfter() 277 EXPECT_EQ(ToD1->getPreviousDecl(), ToD0); in TypedTest_ImportAfterImport() 279 EXPECT_FALSE(ToD1->getPreviousDecl()); in TypedTest_ImportAfterImport()
|
| H A D | ASTImporterTest.cpp | 56 FunctionDecl *D1 = D2->getPreviousDecl(); in TEST_P() 70 FunctionDecl *D1 = D2->getPreviousDecl(); in TEST_P() 157 D1 = D2->getPreviousDecl(); in ImportPath() 2043 EXPECT_EQ(To1->getPreviousDecl(), To0); in TEST_P() 2061 EXPECT_EQ(To1->getPreviousDecl(), To0); in TEST_P() 2325 EXPECT_EQ(To1->getPreviousDecl(), To0); in TEST_P() 2344 EXPECT_FALSE(ToF1->getPreviousDecl()); in TEST_P() 3711 EXPECT_EQ(ToD1->getPreviousDecl(), ToD0); in TEST_P() 4100 EXPECT_TRUE(Imported->getPreviousDecl()); in TEST_P() 4422 ASSERT_TRUE(SpecD->getPreviousDecl()); in TEST_P() [all …]
|
| H A D | ASTImporterODRStrategiesTest.cpp | 287 EXPECT_FALSE(ImportedD->getPreviousDecl()); in CheckImportedAsNew()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | ConstReturnTypeCheck.cpp | 96 for (const FunctionDecl *Decl = Def->getPreviousDecl(); Decl != nullptr; in checkDef() 97 Decl = Decl->getPreviousDecl()) { in checkDef()
|
| H A D | RedundantDeclarationCheck.cpp | 47 const auto *Prev = D->getPreviousDecl(); in check()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DeclTemplate.h | 772 return getPreviousDecl(); in getPreviousDeclImpl() 961 using redeclarable_base::getPreviousDecl; 1069 FunctionTemplateDecl *getPreviousDecl() { 2361 ClassTemplateDecl *getPreviousDecl() { 2365 const ClassTemplateDecl *getPreviousDecl() const { 2368 this)->getPreviousDecl()); 2583 TypeAliasTemplateDecl *getPreviousDecl() { 2590 this)->getPreviousDecl()); 3190 VarTemplateDecl *getPreviousDecl() { 3194 const VarTemplateDecl *getPreviousDecl() const { [all …]
|
| H A D | Redeclarable.h | 204 decl_type *getPreviousDecl() { in getPreviousDecl() function 209 const decl_type *getPreviousDecl() const { in getPreviousDecl() function 211 static_cast<const decl_type*>(this))->getPreviousDecl(); in getPreviousDecl()
|
| H A D | Decl.h | 90 return getPreviousDecl(); in getPreviousDeclImpl() 112 using redeclarable_base::getPreviousDecl; 583 using redeclarable_base::getPreviousDecl; 1054 return getPreviousDecl(); in getPreviousDeclImpl() 1068 using redeclarable_base::getPreviousDecl; 2026 return getPreviousDecl(); in getPreviousDeclImpl() 2043 using redeclarable_base::getPreviousDecl; 3246 return getPreviousDecl(); in getPreviousDeclImpl() 3410 return getPreviousDecl(); in getPreviousDeclImpl() 3734 EnumDecl *getPreviousDecl() { in getPreviousDecl() function [all …]
|
| H A D | DeclCXX.h | 509 CXXRecordDecl *getPreviousDecl() { in getPreviousDecl() function 511 static_cast<RecordDecl *>(this)->getPreviousDecl()); in getPreviousDecl() 514 const CXXRecordDecl *getPreviousDecl() const { in getPreviousDecl() function 515 return const_cast<CXXRecordDecl*>(this)->getPreviousDecl(); in getPreviousDecl() 532 assert(Recent->getPreviousDecl()); in getMostRecentNonInjectedDecl() 533 Recent = Recent->getPreviousDecl(); in getMostRecentNonInjectedDecl() 3071 using redeclarable_base::getPreviousDecl; 3239 return getPreviousDecl(); in getPreviousDeclImpl() 3271 using redeclarable_base::getPreviousDecl;
|
| H A D | DeclBase.h | 1015 Decl *getPreviousDecl() { return getPreviousDeclImpl(); } in getPreviousDecl() function 1019 const Decl *getPreviousDecl() const { in getPreviousDecl() function 1025 return getPreviousDecl() == nullptr; in isFirstDecl() 1106 Decl *Prev = getPreviousDecl(); in setLocalExternDecl() 1145 Decl *Prev = getPreviousDecl();
|
| H A D | DeclObjC.h | 1255 return getPreviousDecl(); in getPreviousDeclImpl() 1888 using redeclarable_base::getPreviousDecl; 2089 return getPreviousDecl(); in getPreviousDeclImpl() 2241 using redeclarable_base::getPreviousDecl;
|
| H A D | JSONNodeDumper.h | 179 const T *Prev = D->getPreviousDecl(); in writePreviousDeclImpl()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Program.cpp | 109 for (const Decl *P = VD; P; P = P->getPreviousDecl()) { in getGlobal() 166 for (const Decl *P = VD; P; P = P->getPreviousDecl()) in createGlobal()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXIndexDataConsumer.h | 150 /*isRedeclaration=*/D->getPreviousDecl() != nullptr, in ObjCInterfaceDeclInfo() 164 /*isRedeclaration=*/D->getPreviousDecl(), in ObjCProtocolDeclInfo()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | DefineInline.cpp | 336 while (PrevDecl->getPreviousDecl() != CanonDecl) { in findTarget() 337 PrevDecl = PrevDecl->getPreviousDecl(); in findTarget()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | UnnecessaryValueParamCheck.cpp | 146 FunctionDecl = FunctionDecl->getPreviousDecl()) { in check()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ASTDumper.cpp | 64 if (Decl *Prev = D->getPreviousDecl()) in dumpLookups()
|
| H A D | Decl.cpp | 679 const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl() 689 for (const VarDecl *PrevVar = Var->getPreviousDecl(); PrevVar; in getLVForNamespaceScopeDecl() 690 PrevVar = PrevVar->getPreviousDecl()) { in getLVForNamespaceScopeDecl() 1190 TD = TD->getPreviousDecl(); in getExplicitVisibilityAux() 1317 if (const VarDecl *Prev = Var->getPreviousDecl()) { in getLVForLocalDecl() 2262 Decl = Decl->getPreviousDecl()) { in getActingDefinition() 3507 FD = FD->getPreviousDecl()) in isMSExternInline() 3518 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC() 3519 FD = FD->getPreviousDecl()) in redeclForcesDefMSVC() 3575 while ((Prev = Prev->getPreviousDecl())) { in doesDeclarationForceExternallyVisibleDefinition() [all …]
|
| H A D | DeclTemplate.cpp | 266 for (const RedeclarableTemplateDecl *Prev = getPreviousDecl(); Prev; in getCommonPtr() 267 Prev = Prev->getPreviousDecl()) { in getCommonPtr() 423 for (; Prev; Prev = Prev->getPreviousDecl()) { in mergePrevDecl() 1166 CurD = CurD->getPreviousDecl(); in getDefinition()
|
| H A D | TemplateName.cpp | 191 Decl = cast<TemplateDecl>(Decl->getPreviousDecl()); in getNameToSubstitute()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaAccess.cpp | 1120 PrevDecl = VD->getPreviousDecl(); in diagnoseBadDirectAccess() 1122 PrevDecl = FD->getPreviousDecl(); in diagnoseBadDirectAccess() 1124 PrevDecl = TND->getPreviousDecl(); in diagnoseBadDirectAccess() 1128 PrevDecl = TD->getPreviousDecl(); in diagnoseBadDirectAccess()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 859 DeclT *Result = D->getPreviousDecl(); in getPreviousDeclForInstantiation() 2284 if (isFriend && TemplateParams && FunctionTemplate->getPreviousDecl()) { in VisitFunctionDecl() 2287 FunctionTemplate->getPreviousDecl()->getTemplateParameters(), in VisitFunctionDecl() 2322 (Function->isLocalExternDecl() && !Function->getPreviousDecl())) in VisitFunctionDecl() 2649 if (isFriend && Method->getPreviousDecl()) in VisitCXXMethodDecl() 2650 Method->setAccess(Method->getPreviousDecl()->getAccess()); in VisitCXXMethodDecl() 2684 if (!D->getPreviousDecl()) in VisitCXXMethodDecl() 4931 D = D->getPreviousDecl()) { in InstantiateFunctionDefinition() 5235 if (NewVar->isLocalExternDecl() && OldVar->getPreviousDecl() && in BuildVariableInstantiation() 5236 (!OldVar->getPreviousDecl()->getDeclContext()->isDependentContext() || in BuildVariableInstantiation() [all …]
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriterDecl.cpp | 183 for (const Decl *R = D->getMostRecentDecl(); R; R = R->getPreviousDecl()) { in AddFirstDeclFromEachModule() 1140 assert(D->getPreviousDecl() == nullptr && "PARM_VAR_DECL can't be redecl"); in VisitParmVarDecl() 1590 if (D->getPreviousDecl() == nullptr) { in VisitClassTemplatePartialSpecializationDecl() 1650 if (D->getPreviousDecl() == nullptr) { in VisitVarTemplatePartialSpecializationDecl() 1802 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl() 1838 Prev != FirstLocal; Prev = Prev->getPreviousDecl()) in VisitRedeclarable() 1859 (void)Writer.GetDeclRef(D->getPreviousDecl()); in VisitRedeclarable()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseCXXInlineMethods.cpp | 425 cast<FunctionDecl>(FunTmpl->getTemplatedDecl())->getPreviousDecl(); in ParseLexedMethodDeclaration() 427 Old = cast<FunctionDecl>(LM.Method)->getPreviousDecl(); in ParseLexedMethodDeclaration()
|