Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DDeclTemplate.h758 return getPreviousDecl(); in getPreviousDeclImpl()
947 using redeclarable_base::getPreviousDecl;
1055 FunctionTemplateDecl *getPreviousDecl() {
2331 ClassTemplateDecl *getPreviousDecl() {
2335 const ClassTemplateDecl *getPreviousDecl() const {
2338 this)->getPreviousDecl());
2553 TypeAliasTemplateDecl *getPreviousDecl() {
2560 this)->getPreviousDecl());
3159 VarTemplateDecl *getPreviousDecl() {
3163 const VarTemplateDecl *getPreviousDecl() const {
[all …]
H A DRedeclarable.h204 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 DDecl.h92 return getPreviousDecl(); in getPreviousDeclImpl()
114 using redeclarable_base::getPreviousDecl;
585 using redeclarable_base::getPreviousDecl;
1054 return getPreviousDecl(); in getPreviousDeclImpl()
1068 using redeclarable_base::getPreviousDecl;
2001 return getPreviousDecl(); in getPreviousDeclImpl()
2018 using redeclarable_base::getPreviousDecl;
3195 return getPreviousDecl(); in getPreviousDeclImpl()
3359 return getPreviousDecl(); in getPreviousDeclImpl()
3665 EnumDecl *getPreviousDecl() { in getPreviousDecl() function
[all …]
H A DDeclCXX.h502 CXXRecordDecl *getPreviousDecl() { in getPreviousDecl() function
504 static_cast<RecordDecl *>(this)->getPreviousDecl()); in getPreviousDecl()
507 const CXXRecordDecl *getPreviousDecl() const { in getPreviousDecl() function
508 return const_cast<CXXRecordDecl*>(this)->getPreviousDecl(); in getPreviousDecl()
525 assert(Recent->getPreviousDecl()); in getMostRecentNonInjectedDecl()
526 Recent = Recent->getPreviousDecl(); in getMostRecentNonInjectedDecl()
3037 using redeclarable_base::getPreviousDecl;
3205 return getPreviousDecl(); in getPreviousDeclImpl()
3237 using redeclarable_base::getPreviousDecl;
H A DDeclBase.h984 Decl *getPreviousDecl() { return getPreviousDeclImpl(); } in getPreviousDecl() function
988 const Decl *getPreviousDecl() const { in getPreviousDecl() function
994 return getPreviousDecl() == nullptr; in isFirstDecl()
1075 Decl *Prev = getPreviousDecl(); in setLocalExternDecl()
1114 Decl *Prev = getPreviousDecl();
H A DDeclObjC.h1253 return getPreviousDecl(); in getPreviousDeclImpl()
1886 using redeclarable_base::getPreviousDecl;
2077 return getPreviousDecl(); in getPreviousDeclImpl()
2229 using redeclarable_base::getPreviousDecl;
H A DJSONNodeDumper.h179 const T *Prev = D->getPreviousDecl(); in writePreviousDeclImpl()
H A DTypeProperties.td554 for (auto *DI = typeDecl; DI; DI = DI->getPreviousDecl()) {
563 for (auto *DI = typeDecl; DI; DI = DI->getPreviousDecl())
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp94 for (const Decl *P = VD; P; P = P->getPreviousDecl()) { in getGlobal()
151 for (const Decl *P = VD; P; P = P->getPreviousDecl()) in createGlobal()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DTemplateName.cpp167 Decl = cast<TemplateDecl>(Decl->getPreviousDecl()); in getNameToSubstitute()
H A DASTDumper.cpp64 if (Decl *Prev = D->getPreviousDecl()) in dumpLookups()
H A DDecl.cpp659 const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl()
669 for (const VarDecl *PrevVar = Var->getPreviousDecl(); PrevVar; in getLVForNamespaceScopeDecl()
670 PrevVar = PrevVar->getPreviousDecl()) { in getLVForNamespaceScopeDecl()
1157 TD = TD->getPreviousDecl(); in getExplicitVisibilityAux()
1284 if (const VarDecl *Prev = Var->getPreviousDecl()) { in getLVForLocalDecl()
3399 FD = FD->getPreviousDecl()) in isMSExternInline()
3410 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3411 FD = FD->getPreviousDecl()) in redeclForcesDefMSVC()
3467 while ((Prev = Prev->getPreviousDecl())) { in doesDeclarationForceExternallyVisibleDefinition()
3492 while ((Prev = Prev->getPreviousDecl())) { in doesDeclarationForceExternallyVisibleDefinition()
H A DDeclTemplate.cpp258 for (const RedeclarableTemplateDecl *Prev = getPreviousDecl(); Prev; in getCommonPtr()
259 Prev = Prev->getPreviousDecl()) { in getCommonPtr()
414 for (; Prev; Prev = Prev->getPreviousDecl()) { in mergePrevDecl()
1145 CurD = CurD->getPreviousDecl(); in getDefinition()
H A DDeclCXX.cpp879 if (Primary->getPreviousDecl()) in addedMember()
880 Conversions.replace(cast<NamedDecl>(Primary->getPreviousDecl()), in addedMember()
2896 return getPreviousDecl(); in getPreviousDeclImpl()
2910 return getPreviousDecl(); in getPreviousDeclImpl()
H A DAPValue.cpp74 Redecl = cast_or_null<ValueDecl>(Redecl->getPreviousDecl())) { in getType()
/freebsd-13.1/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp179 TranslationUnitDecl *PreviousTU = MostRecentTU->getPreviousDecl(); in ParseOrWrapTopLevelDecl()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaAccess.cpp1120 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 DSemaTemplateInstantiateDecl.cpp811 DeclT *Result = D->getPreviousDecl(); in getPreviousDeclForInstantiation()
2218 if (isFriend && TemplateParams && FunctionTemplate->getPreviousDecl()) { in VisitFunctionDecl()
2221 FunctionTemplate->getPreviousDecl()->getTemplateParameters(), in VisitFunctionDecl()
2256 (Function->isLocalExternDecl() && !Function->getPreviousDecl())) in VisitFunctionDecl()
2580 if (isFriend && Method->getPreviousDecl()) in VisitCXXMethodDecl()
2581 Method->setAccess(Method->getPreviousDecl()->getAccess()); in VisitCXXMethodDecl()
2615 if (!D->getPreviousDecl()) in VisitCXXMethodDecl()
4912 D = D->getPreviousDecl()) { in InstantiateFunctionDefinition()
5216 if (NewVar->isLocalExternDecl() && OldVar->getPreviousDecl() && in BuildVariableInstantiation()
5217 (!OldVar->getPreviousDecl()->getDeclContext()->isDependentContext() || in BuildVariableInstantiation()
[all …]
H A DSemaAvailability.cpp344 Redecl = Redecl->getPreviousDecl()) { in DoEmitAvailabilityWarning()
H A DSemaDecl.cpp3999 PrevVD = PrevVD->getPreviousDecl()) { in MergeVarDeclTypes()
5631 if (D->getPreviousDecl() || D->isImplicit()) in warnOnReservedIdentifier()
7497 NewVD->getPreviousDecl() in ActOnVariableDeclarator()
9734 if (isFriend && NewFD->getPreviousDecl()) { in ActOnFunctionDeclarator()
9737 Access = NewFD->getPreviousDecl()->getAccess(); in ActOnFunctionDeclarator()
10470 for (const Decl *D = FD->getPreviousDecl(); D; D = D->getPreviousDecl()) { in PreviousDeclsHaveMultiVersionAttribute()
11859 if (VarDecl *Old = VDecl->getPreviousDecl()) { in DeduceVariableDeclarationType()
13066 VarDecl *prev = var->getPreviousDecl(); in CheckCompleteVariableDeclaration()
13068 prev = prev->getPreviousDecl(); in CheckCompleteVariableDeclaration()
14072 Prev; Prev = Prev->getPreviousDecl()) { in ShouldWarnAboutMissingPrototype()
[all …]
H A DSemaLookup.cpp451 for (Decl *Prev = DUnderlying->getPreviousDecl(); Prev; in isPreferredLookupResult()
452 Prev = Prev->getPreviousDecl()) in isPreferredLookupResult()
3544 Cursor = Cursor->getPreviousDecl(); in insert()
3607 D = cast_or_null<NamedDecl>(D->getPreviousDecl())) { in ArgumentDependentLookup()
H A DSemaTemplate.cpp4438 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in ActOnVarTemplateSpecialization()
8495 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in ActOnClassTemplateSpecialization()
8683 Prev = Prev->getPreviousDecl()) { in DiagLocForExplicitInstantiation()
8761 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
8846 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
9873 = cast_or_null<CXXRecordDecl>(Record->getPreviousDecl()); in ActOnExplicitInstantiation()
10264 FunctionDecl *PrevDecl = Specialization->getPreviousDecl(); in ActOnExplicitInstantiation()
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp182 for (const Decl *R = D->getMostRecentDecl(); R; R = R->getPreviousDecl()) { in AddFirstDeclFromEachModule()
1130 assert(D->getPreviousDecl() == nullptr && "PARM_VAR_DECL can't be redecl"); in VisitParmVarDecl()
1580 if (D->getPreviousDecl() == nullptr) { in VisitClassTemplatePartialSpecializationDecl()
1640 if (D->getPreviousDecl() == nullptr) { in VisitVarTemplatePartialSpecializationDecl()
1792 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl()
1828 Prev != FirstLocal; Prev = Prev->getPreviousDecl()) in VisitRedeclarable()
1849 (void)Writer.GetDeclRef(D->getPreviousDecl()); in VisitRedeclarable()
H A DASTReaderDecl.cpp481 Current = Current->getPreviousDecl(); in operator ++()
3601 for (VarDecl *CurD = PrevVD; CurD; CurD = CurD->getPreviousDecl()) { in attachPreviousDeclImpl()
4444 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
4450 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
/freebsd-13.1/contrib/llvm-project/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp411 cast<FunctionDecl>(FunTmpl->getTemplatedDecl())->getPreviousDecl(); in ParseLexedMethodDeclaration()
413 Old = cast<FunctionDecl>(LM.Method)->getPreviousDecl(); in ParseLexedMethodDeclaration()

12