Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DDeclTemplate.h772 return getPreviousDecl(); in getPreviousDeclImpl()
978 using redeclarable_base::getPreviousDecl;
1077 FunctionTemplateDecl *getPreviousDecl() {
1079 static_cast<RedeclarableTemplateDecl *>(this)->getPreviousDecl());
1081 const FunctionTemplateDecl *getPreviousDecl() const {
1083 static_cast<const RedeclarableTemplateDecl *>(this)->getPreviousDecl());
2358 ClassTemplateDecl *getPreviousDecl() {
2360 static_cast<RedeclarableTemplateDecl *>(this)->getPreviousDecl());
2362 const ClassTemplateDecl *getPreviousDecl() const {
2365 this)->getPreviousDecl());
[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.h90 return getPreviousDecl(); in getPreviousDeclImpl()
112 using redeclarable_base::getPreviousDecl;
589 using redeclarable_base::getPreviousDecl;
1098 return getPreviousDecl(); in getPreviousDeclImpl()
1112 using redeclarable_base::getPreviousDecl;
2073 return getPreviousDecl(); in getPreviousDeclImpl()
2090 using redeclarable_base::getPreviousDecl;
3316 return getPreviousDecl(); in getPreviousDeclImpl()
3330 using redeclarable_base::getPreviousDecl;
3480 return getPreviousDecl(); in getPreviousDeclImpl()
[all …]
H A DDeclCXX.h515 CXXRecordDecl *getPreviousDecl() { in getPreviousDecl() function
517 static_cast<RecordDecl *>(this)->getPreviousDecl()); in getPreviousDecl()
520 const CXXRecordDecl *getPreviousDecl() const { in getPreviousDecl() function
521 return const_cast<CXXRecordDecl*>(this)->getPreviousDecl(); in getPreviousDecl()
538 assert(Recent->getPreviousDecl()); in getMostRecentNonInjectedDecl()
539 Recent = Recent->getPreviousDecl(); in getMostRecentNonInjectedDecl()
3085 using redeclarable_base::getPreviousDecl;
3253 return getPreviousDecl(); in getPreviousDeclImpl()
3285 using redeclarable_base::getPreviousDecl;
H A DDeclBase.h1026 Decl *getPreviousDecl() { return getPreviousDeclImpl(); } in getPreviousDecl() function
1030 const Decl *getPreviousDecl() const { in getPreviousDecl() function
1036 return getPreviousDecl() == nullptr; in isFirstDecl()
1117 Decl *Prev = getPreviousDecl(); in setLocalExternDecl()
1156 Decl *Prev = getPreviousDecl();
H A DDeclObjC.h1258 return getPreviousDecl(); in getPreviousDeclImpl()
1897 using redeclarable_base::getPreviousDecl;
2111 return getPreviousDecl(); in getPreviousDeclImpl()
2275 using redeclarable_base::getPreviousDecl;
H A DJSONNodeDumper.h179 const T *Prev = D->getPreviousDecl(); in writePreviousDeclImpl()
H A DTypeProperties.td571 for (auto *DI = typeDecl; DI; DI = DI->getPreviousDecl()) {
580 for (auto *DI = typeDecl; DI; DI = DI->getPreviousDecl())
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DProgram.cpp111 for (const Decl *P = VD; P; P = P->getPreviousDecl()) { in getGlobal()
171 for (const Decl *P = VD; P; P = P->getPreviousDecl()) in createGlobal()
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCXIndexDataConsumer.h150 /*isRedeclaration=*/D->getPreviousDecl() != nullptr, in ObjCInterfaceDeclInfo()
164 /*isRedeclaration=*/D->getPreviousDecl(), in ObjCProtocolDeclInfo()
H A DCXIndexDataConsumer.cpp670 bool isRedeclaration = D->hasDefinition() || D->getPreviousDecl(); in handleObjCInterface()
725 bool isRedeclaration = D->hasDefinition() || D->getPreviousDecl(); in handleObjCProtocol()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DDecl.cpp678 const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl()
688 for (const VarDecl *PrevVar = Var->getPreviousDecl(); PrevVar; in getLVForNamespaceScopeDecl()
689 PrevVar = PrevVar->getPreviousDecl()) { in getLVForNamespaceScopeDecl()
1209 TD = TD->getPreviousDecl(); in getExplicitVisibilityAux()
1342 if (const VarDecl *Prev = Var->getPreviousDecl()) { in getLVForLocalDecl()
2291 Decl = Decl->getPreviousDecl()) { in getActingDefinition()
3541 FD = FD->getPreviousDecl()) in isMSExternInline()
3552 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3553 FD = FD->getPreviousDecl()) in redeclForcesDefMSVC()
3609 while ((Prev = Prev->getPreviousDecl())) { in doesDeclarationForceExternallyVisibleDefinition()
[all …]
H A DASTDumper.cpp92 if (Decl *Prev = D->getPreviousDecl()) in dumpLookups()
H A DDeclTemplate.cpp276 for (const RedeclarableTemplateDecl *Prev = getPreviousDecl(); Prev; in getCommonPtr()
277 Prev = Prev->getPreviousDecl()) { in getCommonPtr()
433 for (; Prev; Prev = Prev->getPreviousDecl()) { in mergePrevDecl()
1223 CurD = CurD->getPreviousDecl(); in getDefinition()
H A DTemplateName.cpp228 Decl = cast<TemplateDecl>(Decl->getPreviousDecl()); in getNameToSubstitute()
H A DDeclCXX.cpp866 if (Primary->getPreviousDecl()) in addedMember()
867 Conversions.replace(cast<NamedDecl>(Primary->getPreviousDecl()), in addedMember()
2947 return getPreviousDecl(); in getPreviousDeclImpl()
2961 return getPreviousDecl(); in getPreviousDeclImpl()
H A DAPValue.cpp74 Redecl = cast_or_null<ValueDecl>(Redecl->getPreviousDecl())) { in getType()
/openbsd-src/gnu/llvm/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.cpp863 DeclT *Result = D->getPreviousDecl(); in getPreviousDeclForInstantiation()
2326 if (isFriend && TemplateParams && FunctionTemplate->getPreviousDecl()) { in VisitFunctionDecl()
2329 FunctionTemplate->getPreviousDecl()->getTemplateParameters(), in VisitFunctionDecl()
2364 (Function->isLocalExternDecl() && !Function->getPreviousDecl())) in VisitFunctionDecl()
2715 if (isFriend && Method->getPreviousDecl()) in VisitCXXMethodDecl()
2716 Method->setAccess(Method->getPreviousDecl()->getAccess()); in VisitCXXMethodDecl()
2750 if (!D->getPreviousDecl()) in VisitCXXMethodDecl()
4940 D = D->getPreviousDecl()) { in InstantiateFunctionDefinition()
5246 if (NewVar->isLocalExternDecl() && OldVar->getPreviousDecl() && in BuildVariableInstantiation()
5247 (!OldVar->getPreviousDecl()->getDeclContext()->isDependentContext() || in BuildVariableInstantiation()
[all …]
H A DSemaAvailability.cpp348 Redecl = Redecl->getPreviousDecl()) { in DoEmitAvailabilityWarning()
H A DSemaLookup.cpp454 for (Decl *Prev = DUnderlying->getPreviousDecl(); Prev; in isPreferredLookupResult()
455 Prev = Prev->getPreviousDecl()) in isPreferredLookupResult()
3812 Cursor = Cursor->getPreviousDecl(); in insert()
3881 D = cast_or_null<NamedDecl>(D->getPreviousDecl())) { in ArgumentDependentLookup()
H A DSemaDecl.cpp4415 PrevVD = PrevVD->getPreviousDecl()) { in MergeVarDeclTypes()
6062 if (D->getPreviousDecl() || D->isImplicit()) in warnOnReservedIdentifier()
7994 NewVD->getPreviousDecl() in ActOnVariableDeclarator()
7995 ? NewVD->getPreviousDecl()->getDescribedVarTemplate() in ActOnVariableDeclarator()
10384 if (isFriend && NewFD->getPreviousDecl()) { in ActOnFunctionDeclarator()
10387 Access = NewFD->getPreviousDecl()->getAccess(); in ActOnFunctionDeclarator()
10401 FunctionTemplate->getPreviousDecl(); in ActOnFunctionDeclarator()
11143 for (const Decl *D = FD->getPreviousDecl(); D; D = D->getPreviousDecl()) { in PreviousDeclsHaveMultiVersionAttribute()
12716 if (VarDecl *Old = VDecl->getPreviousDecl()) { in DeduceVariableDeclarationType()
13947 VarDecl *prev = var->getPreviousDecl(); in CheckCompleteVariableDeclaration()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DASTWriterDecl.cpp186 for (const Decl *R = D->getMostRecentDecl(); R; R = R->getPreviousDecl()) { in AddFirstDeclFromEachModule()
1153 assert(D->getPreviousDecl() == nullptr && "PARM_VAR_DECL can't be redecl"); in VisitParmVarDecl()
1617 if (D->getPreviousDecl() == nullptr) { in VisitClassTemplatePartialSpecializationDecl()
1678 if (D->getPreviousDecl() == nullptr) { in VisitVarTemplatePartialSpecializationDecl()
1830 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl()
1866 Prev != FirstLocal; Prev = Prev->getPreviousDecl()) in VisitRedeclarable()
1887 (void)Writer.GetDeclRef(D->getPreviousDecl()); in VisitRedeclarable()
H A DASTReaderDecl.cpp488 Current = Current->getPreviousDecl(); in operator ++()
3437 for (VarDecl *CurD = PrevVD; CurD; CurD = CurD->getPreviousDecl()) { in attachPreviousDeclImpl()
4292 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
4298 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
/openbsd-src/gnu/llvm/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp425 cast<FunctionDecl>(FunTmpl->getTemplatedDecl())->getPreviousDecl(); in ParseLexedMethodDeclaration()
427 Old = cast<FunctionDecl>(LM.Method)->getPreviousDecl(); in ParseLexedMethodDeclaration()

12