Home
last modified time | relevance | path

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

12

/external/clang/include/clang/AST/
DDeclTemplate.h632 return getPreviousDecl(); in getPreviousDeclImpl()
804 using redeclarable_base::getPreviousDecl;
920 FunctionTemplateDecl *getPreviousDecl() {
922 static_cast<RedeclarableTemplateDecl *>(this)->getPreviousDecl());
927 const FunctionTemplateDecl *getPreviousDecl() const {
929 static_cast<const RedeclarableTemplateDecl *>(this)->getPreviousDecl());
1609 assert(Recent->isInjectedClassName() && Recent->getPreviousDecl());
1610 Recent = Recent->getPreviousDecl();
2028 ClassTemplateDecl *getPreviousDecl() {
2030 static_cast<RedeclarableTemplateDecl *>(this)->getPreviousDecl());
[all …]
DRedeclarable.h136 decl_type *getPreviousDecl() { in getPreviousDecl() function
141 const decl_type *getPreviousDecl() const { in getPreviousDecl() function
143 static_cast<const decl_type*>(this))->getPreviousDecl(); in getPreviousDecl()
DDecl.h438 using redeclarable_base::getPreviousDecl;
847 return getPreviousDecl(); in getPreviousDeclImpl()
859 using redeclarable_base::getPreviousDecl;
1679 return getPreviousDecl(); in getPreviousDeclImpl()
1691 using redeclarable_base::getPreviousDecl;
2609 return getPreviousDecl(); in getPreviousDeclImpl()
2621 using redeclarable_base::getPreviousDecl;
2808 return getPreviousDecl(); in getPreviousDeclImpl()
2825 using redeclarable_base::getPreviousDecl;
3050 EnumDecl *getPreviousDecl() { in getPreviousDecl() function
[all …]
DDeclCXX.h272 *this = Canon->getPreviousDecl()->DefinitionData.update(); in update()
658 CXXRecordDecl *getPreviousDecl() { in getPreviousDecl() function
660 static_cast<RecordDecl *>(this)->getPreviousDecl()); in getPreviousDecl()
662 const CXXRecordDecl *getPreviousDecl() const { in getPreviousDecl() function
663 return const_cast<CXXRecordDecl*>(this)->getPreviousDecl(); in getPreviousDecl()
2702 using redeclarable_base::getPreviousDecl;
2797 return getPreviousDecl(); in getPreviousDeclImpl()
2817 using redeclarable_base::getPreviousDecl;
DDeclBase.h829 Decl *getPreviousDecl() { return getPreviousDeclImpl(); } in getPreviousDecl() function
833 const Decl *getPreviousDecl() const { in getPreviousDecl() function
839 return getPreviousDecl() == nullptr; in isFirstDecl()
912 Decl *Prev = getPreviousDecl(); in setLocalExternDecl()
945 Decl *Prev = getPreviousDecl();
DDeclObjC.h951 return getPreviousDecl(); in getPreviousDeclImpl()
1568 using redeclarable_base::getPreviousDecl;
1761 return getPreviousDecl(); in getPreviousDeclImpl()
1890 using redeclarable_base::getPreviousDecl;
/external/clang/tools/libclang/
DIndexingContext.h151 /*isRedeclaration=*/D->getPreviousDecl() != nullptr, in ObjCInterfaceDeclInfo()
165 /*isRedeclaration=*/D->getPreviousDecl(), in ObjCProtocolDeclInfo()
DIndexingContext.cpp434 bool isRedeclaration = D->hasDefinition() || D->getPreviousDecl(); in handleObjCInterface()
489 bool isRedeclaration = D->hasDefinition() || D->getPreviousDecl(); in handleObjCProtocol()
/external/clang/lib/AST/
DDecl.cpp600 const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl()
610 for (const VarDecl *PrevVar = Var->getPreviousDecl(); PrevVar; in getLVForNamespaceScopeDecl()
611 PrevVar = PrevVar->getPreviousDecl()) { in getLVForNamespaceScopeDecl()
1168 if (const VarDecl *Prev = Var->getPreviousDecl()) { in getLVForLocalDecl()
2729 FD = FD->getPreviousDecl()) in isMSExternInline()
2740 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
2741 FD = FD->getPreviousDecl()) in redeclForcesDefMSVC()
2794 while ((Prev = Prev->getPreviousDecl())) { in doesDeclarationForceExternallyVisibleDefinition()
2822 while ((Prev = Prev->getPreviousDecl())) { in doesDeclarationForceExternallyVisibleDefinition()
DDeclTemplate.cpp142 for (const RedeclarableTemplateDecl *Prev = getPreviousDecl(); Prev; in getCommonPtr()
143 Prev = Prev->getPreviousDecl()) { in getCommonPtr()
977 CurD = CurD->getPreviousDecl(); in getDefinition()
DDeclCXX.cpp576 if (Primary->getPreviousDecl()) in addedMember()
577 Conversions.replace(cast<NamedDecl>(Primary->getPreviousDecl()), in addedMember()
2024 return getPreviousDecl(); in getPreviousDeclImpl()
2036 return getPreviousDecl(); in getPreviousDeclImpl()
DASTDumper.cpp784 if (Decl *Prev = D->getPreviousDecl()) in dumpLookups()
838 const T *Prev = D->getPreviousDecl(); in dumpPreviousDeclImpl()
DDeclBase.cpp1022 N = N->getPreviousDecl()) in collectAllContexts()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp306 DeclT *Result = D->getPreviousDecl(); in getPreviousDeclForInstantiation()
1639 if (Function->isLocalExternDecl() && !Function->getPreviousDecl()) in VisitFunctionDecl()
1877 if (isFriend && Method->getPreviousDecl()) in VisitCXXMethodDecl()
1878 Method->setAccess(Method->getPreviousDecl()->getAccess()); in VisitCXXMethodDecl()
1904 if (!D->getPreviousDecl()) in VisitCXXMethodDecl()
3444 D = D->getPreviousDecl()) { in InstantiateFunctionDefinition()
3650 if (NewVar->isLocalExternDecl() && OldVar->getPreviousDecl() && in BuildVariableInstantiation()
3651 (!OldVar->getPreviousDecl()->getDeclContext()->isDependentContext() || in BuildVariableInstantiation()
3652 OldVar->getPreviousDecl()->getDeclContext()==OldVar->getDeclContext())) { in BuildVariableInstantiation()
3656 NewVar->getLocation(), OldVar->getPreviousDecl(), TemplateArgs)) in BuildVariableInstantiation()
[all …]
DSemaAccess.cpp1112 PrevDecl = VD->getPreviousDecl(); in diagnoseBadDirectAccess()
1114 PrevDecl = FD->getPreviousDecl(); in diagnoseBadDirectAccess()
1116 PrevDecl = TND->getPreviousDecl(); in diagnoseBadDirectAccess()
1120 PrevDecl = TD->getPreviousDecl(); in diagnoseBadDirectAccess()
DSemaTemplate.cpp2654 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in ActOnVarTemplateSpecialization()
6434 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in ActOnClassTemplateSpecialization()
6565 Prev = Prev->getPreviousDecl()) { in DiagLocForExplicitInstantiation()
6642 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
6731 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
7550 = cast_or_null<CXXRecordDecl>(Record->getPreviousDecl()); in ActOnExplicitInstantiation()
7909 FunctionDecl *PrevDecl = Specialization->getPreviousDecl(); in ActOnExplicitInstantiation()
DSemaLookup.cpp430 for (Decl *Prev = DUnderlying->getPreviousDecl(); Prev; in isPreferredLookupResult()
431 Prev = Prev->getPreviousDecl()) in isPreferredLookupResult()
3149 Cursor = Cursor->getPreviousDecl(); in insert()
3207 for (Decl *DI = D; DI; DI = DI->getPreviousDecl()) { in ArgumentDependentLookup()
DSemaDecl.cpp6216 NewVD->getPreviousDecl() in ActOnVariableDeclarator()
6217 ? NewVD->getPreviousDecl()->getDescribedVarTemplate() in ActOnVariableDeclarator()
8078 Access = NewFD->getPreviousDecl()->getAccess(); in ActOnFunctionDeclarator()
8092 FunctionTemplate->getPreviousDecl(); in ActOnFunctionDeclarator()
9233 if (VarDecl *Old = VDecl->getPreviousDecl()) { in AddInitializerToDecl()
9973 VarDecl *prev = var->getPreviousDecl(); in CheckCompleteVariableDeclaration()
9975 prev = prev->getPreviousDecl(); in CheckCompleteVariableDeclaration()
10717 for (const FunctionDecl *Prev = FD->getPreviousDecl(); in ShouldWarnAboutMissingPrototype()
10718 Prev; Prev = Prev->getPreviousDecl()) { in ShouldWarnAboutMissingPrototype()
11082 if (!FD->isFirstDecl() && FD->getPreviousDecl()->isUsed()) { in ActOnFinishFunctionBody()
[all …]
DSemaTemplateInstantiate.cpp2516 if (Record->isInjectedClassName() || Record->getPreviousDecl() || in InstantiateClassMembers()
2755 CheckD = Tag->getPreviousDecl(); in findInstantiationOf()
DSemaDeclCXX.cpp453 : PrevForDefaultArgs->getPreviousDecl()) { in MergeCXXFunctionDecl()
543 Older = Older->getPreviousDecl(); in MergeCXXFunctionDecl()
7143 NS = NS->getPreviousDecl()) in DiagnoseNamespaceInlineMismatch()
12762 if (FunctionDecl *OldFD = FD->getPreviousDecl()) { in ActOnFriendFunctionDecl()
12790 if (const FunctionDecl *Prev = Fn->getPreviousDecl()) { in SetDeclDeleted()
12794 Prev->getPreviousDecl()) && in SetDeclDeleted()
/external/clang/lib/Serialization/
DASTWriterDecl.cpp168 for (const Decl *R = D->getMostRecentDecl(); R; R = R->getPreviousDecl()) { in AddFirstDeclFromEachModule()
978 assert(D->getPreviousDecl() == nullptr && "PARM_VAR_DECL can't be redecl"); in VisitParmVarDecl()
1346 if (D->getPreviousDecl() == nullptr) { in VisitClassTemplatePartialSpecializationDecl()
1406 if (D->getPreviousDecl() == nullptr) { in VisitVarTemplatePartialSpecializationDecl()
1557 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl()
1592 Prev != FirstLocal; Prev = Prev->getPreviousDecl()) in VisitRedeclarable()
1615 (void)Writer.GetDeclRef(D->getPreviousDecl()); in VisitRedeclarable()
DASTReader.cpp5544 for (auto *DI = D; DI; DI = DI->getPreviousDecl()) { in readTypeRecord()
5552 for (auto *DI = D; DI; DI = DI->getPreviousDecl()) in readTypeRecord()
8348 R = R->getPreviousDecl()) { in finishPendingActions()
8364 for (auto *R = getMostRecentExistingDecl(ID); R; R = R->getPreviousDecl()) in finishPendingActions()
8371 for (auto *R = getMostRecentExistingDecl(PD); R; R = R->getPreviousDecl()) in finishPendingActions()
8378 for (auto *R = getMostRecentExistingDecl(RTD); R; R = R->getPreviousDecl()) in finishPendingActions()
DASTReaderDecl.cpp395 Current = Current->getPreviousDecl(); in operator ++()
3572 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
3578 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
DASTWriter.cpp3087 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup()
3089 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup()
3682 for (auto *Prev = cast<NamespaceDecl>(DC)->getPreviousDecl(); Prev; in WriteDeclContextVisibleBlock()
3683 Prev = Prev->getPreviousDecl()) in WriteDeclContextVisibleBlock()
/external/clang/lib/Parse/
DParseCXXInlineMethods.cpp378 FunctionDecl *Old = cast<FunctionDecl>(LM.Method)->getPreviousDecl(); in ParseLexedMethodDeclaration()

12