Home
last modified time | relevance | path

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

12

/external/clang/include/clang/AST/
DDeclTemplate.h637 return getPreviousDecl(); in getPreviousDeclImpl()
809 using redeclarable_base::getPreviousDecl;
925 FunctionTemplateDecl *getPreviousDecl() {
927 static_cast<RedeclarableTemplateDecl *>(this)->getPreviousDecl());
932 const FunctionTemplateDecl *getPreviousDecl() const {
934 static_cast<const RedeclarableTemplateDecl *>(this)->getPreviousDecl());
1609 assert(Recent->isInjectedClassName() && Recent->getPreviousDecl());
1610 Recent = Recent->getPreviousDecl();
2030 ClassTemplateDecl *getPreviousDecl() {
2032 static_cast<RedeclarableTemplateDecl *>(this)->getPreviousDecl());
[all …]
DRedeclarable.h144 decl_type *getPreviousDecl() { in getPreviousDecl() function
149 const decl_type *getPreviousDecl() const { in getPreviousDecl() function
151 static_cast<const decl_type*>(this))->getPreviousDecl(); in getPreviousDecl()
DDecl.h508 using redeclarable_base::getPreviousDecl;
920 return getPreviousDecl(); in getPreviousDeclImpl()
932 using redeclarable_base::getPreviousDecl;
1704 return getPreviousDecl(); in getPreviousDeclImpl()
1716 using redeclarable_base::getPreviousDecl;
2626 return getPreviousDecl(); in getPreviousDeclImpl()
2638 using redeclarable_base::getPreviousDecl;
2825 return getPreviousDecl(); in getPreviousDeclImpl()
2842 using redeclarable_base::getPreviousDecl;
3067 EnumDecl *getPreviousDecl() { in getPreviousDecl() function
[all …]
DDeclBase.h843 Decl *getPreviousDecl() { return getPreviousDeclImpl(); } in getPreviousDecl() function
847 const Decl *getPreviousDecl() const { in getPreviousDecl() function
853 return getPreviousDecl() == nullptr; in isFirstDecl()
930 Decl *Prev = getPreviousDecl(); in setLocalExternDecl()
963 Decl *Prev = getPreviousDecl();
DDeclCXX.h661 CXXRecordDecl *getPreviousDecl() { in getPreviousDecl() function
663 static_cast<RecordDecl *>(this)->getPreviousDecl()); in getPreviousDecl()
665 const CXXRecordDecl *getPreviousDecl() const { in getPreviousDecl() function
666 return const_cast<CXXRecordDecl*>(this)->getPreviousDecl(); in getPreviousDecl()
2768 using redeclarable_base::getPreviousDecl;
2851 return getPreviousDecl(); in getPreviousDeclImpl()
2876 using redeclarable_base::getPreviousDecl;
DDeclObjC.h1191 return getPreviousDecl(); in getPreviousDeclImpl()
1810 using redeclarable_base::getPreviousDecl;
2003 return getPreviousDecl(); in getPreviousDeclImpl()
2132 using redeclarable_base::getPreviousDecl;
/external/clang/tools/libclang/
DCXIndexDataConsumer.h152 /*isRedeclaration=*/D->getPreviousDecl() != nullptr, in ObjCInterfaceDeclInfo()
166 /*isRedeclaration=*/D->getPreviousDecl(), in ObjCProtocolDeclInfo()
DCXIndexDataConsumer.cpp657 bool isRedeclaration = D->hasDefinition() || D->getPreviousDecl(); in handleObjCInterface()
712 bool isRedeclaration = D->hasDefinition() || D->getPreviousDecl(); in handleObjCProtocol()
/external/clang/lib/AST/
DDecl.cpp603 const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl()
613 for (const VarDecl *PrevVar = Var->getPreviousDecl(); PrevVar; in getLVForNamespaceScopeDecl()
614 PrevVar = PrevVar->getPreviousDecl()) { in getLVForNamespaceScopeDecl()
1171 if (const VarDecl *Prev = Var->getPreviousDecl()) { in getLVForLocalDecl()
2810 FD = FD->getPreviousDecl()) in isMSExternInline()
2821 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
2822 FD = FD->getPreviousDecl()) in redeclForcesDefMSVC()
2875 while ((Prev = Prev->getPreviousDecl())) { in doesDeclarationForceExternallyVisibleDefinition()
2903 while ((Prev = Prev->getPreviousDecl())) { in doesDeclarationForceExternallyVisibleDefinition()
DDeclTemplate.cpp136 for (const RedeclarableTemplateDecl *Prev = getPreviousDecl(); Prev; in getCommonPtr()
137 Prev = Prev->getPreviousDecl()) { in getCommonPtr()
943 CurD = CurD->getPreviousDecl(); in getDefinition()
DDeclCXX.cpp612 if (Primary->getPreviousDecl()) in addedMember()
613 Conversions.replace(cast<NamedDecl>(Primary->getPreviousDecl()), in addedMember()
2104 return getPreviousDecl(); in getPreviousDeclImpl()
2116 return getPreviousDecl(); in getPreviousDeclImpl()
DASTDumper.cpp817 if (Decl *Prev = D->getPreviousDecl()) in dumpLookups()
869 const T *Prev = D->getPreviousDecl(); in dumpPreviousDeclImpl()
DDeclBase.cpp1066 N = N->getPreviousDecl()) in collectAllContexts()
DDeclObjC.cpp297 for (auto decl = getMostRecentDecl(); decl; decl = decl->getPreviousDecl()) { in getTypeParamList()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp410 DeclT *Result = D->getPreviousDecl(); in getPreviousDeclForInstantiation()
1745 if (Function->isLocalExternDecl() && !Function->getPreviousDecl()) in VisitFunctionDecl()
1952 if (isFriend && Method->getPreviousDecl()) in VisitCXXMethodDecl()
1953 Method->setAccess(Method->getPreviousDecl()->getAccess()); in VisitCXXMethodDecl()
1979 if (!D->getPreviousDecl()) in VisitCXXMethodDecl()
3616 D = D->getPreviousDecl()) { in InstantiateFunctionDefinition()
3824 if (NewVar->isLocalExternDecl() && OldVar->getPreviousDecl() && in BuildVariableInstantiation()
3825 (!OldVar->getPreviousDecl()->getDeclContext()->isDependentContext() || in BuildVariableInstantiation()
3826 OldVar->getPreviousDecl()->getDeclContext()==OldVar->getDeclContext())) { in BuildVariableInstantiation()
3830 NewVar->getLocation(), OldVar->getPreviousDecl(), TemplateArgs)) in BuildVariableInstantiation()
[all …]
DSemaAccess.cpp1107 PrevDecl = VD->getPreviousDecl(); in diagnoseBadDirectAccess()
1109 PrevDecl = FD->getPreviousDecl(); in diagnoseBadDirectAccess()
1111 PrevDecl = TND->getPreviousDecl(); in diagnoseBadDirectAccess()
1115 PrevDecl = TD->getPreviousDecl(); in diagnoseBadDirectAccess()
DSemaTemplate.cpp2692 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in ActOnVarTemplateSpecialization()
6473 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in ActOnClassTemplateSpecialization()
6604 Prev = Prev->getPreviousDecl()) { in DiagLocForExplicitInstantiation()
6681 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
6770 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
7666 = cast_or_null<CXXRecordDecl>(Record->getPreviousDecl()); in ActOnExplicitInstantiation()
8043 FunctionDecl *PrevDecl = Specialization->getPreviousDecl(); in ActOnExplicitInstantiation()
DSemaLookup.cpp445 for (Decl *Prev = DUnderlying->getPreviousDecl(); Prev; in isPreferredLookupResult()
446 Prev = Prev->getPreviousDecl()) in isPreferredLookupResult()
3238 Cursor = Cursor->getPreviousDecl(); in insert()
3296 for (Decl *DI = D; DI; DI = DI->getPreviousDecl()) { in ArgumentDependentLookup()
DSemaDecl.cpp3372 PrevVD = PrevVD->getPreviousDecl()) { in MergeVarDeclTypes()
6435 NewVD->getPreviousDecl() in ActOnVariableDeclarator()
6436 ? NewVD->getPreviousDecl()->getDescribedVarTemplate() in ActOnVariableDeclarator()
8379 Access = NewFD->getPreviousDecl()->getAccess(); in ActOnFunctionDeclarator()
8393 FunctionTemplate->getPreviousDecl(); in ActOnFunctionDeclarator()
9568 if (VarDecl *Old = VDecl->getPreviousDecl()) { in AddInitializerToDecl()
10335 VarDecl *prev = var->getPreviousDecl(); in CheckCompleteVariableDeclaration()
10337 prev = prev->getPreviousDecl(); in CheckCompleteVariableDeclaration()
11127 for (const FunctionDecl *Prev = FD->getPreviousDecl(); in ShouldWarnAboutMissingPrototype()
11128 Prev; Prev = Prev->getPreviousDecl()) { in ShouldWarnAboutMissingPrototype()
[all …]
DSemaTemplateInstantiate.cpp2534 if (Record->isInjectedClassName() || Record->getPreviousDecl() || in InstantiateClassMembers()
2780 CheckD = Tag->getPreviousDecl(); in findInstantiationOf()
/external/clang/lib/Serialization/
DASTWriterDecl.cpp167 for (const Decl *R = D->getMostRecentDecl(); R; R = R->getPreviousDecl()) { in AddFirstDeclFromEachModule()
1004 assert(D->getPreviousDecl() == nullptr && "PARM_VAR_DECL can't be redecl"); in VisitParmVarDecl()
1387 if (D->getPreviousDecl() == nullptr) { in VisitClassTemplatePartialSpecializationDecl()
1446 if (D->getPreviousDecl() == nullptr) { in VisitVarTemplatePartialSpecializationDecl()
1575 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl()
1611 Prev != FirstLocal; Prev = Prev->getPreviousDecl()) in VisitRedeclarable()
1632 (void)Writer.GetDeclRef(D->getPreviousDecl()); in VisitRedeclarable()
DASTWriter.cpp3107 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup()
3109 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup()
3718 for (auto *Prev = cast<NamespaceDecl>(DC)->getPreviousDecl(); Prev; in WriteDeclContextVisibleBlock()
3719 Prev = Prev->getPreviousDecl()) in WriteDeclContextVisibleBlock()
5804 for (auto Prev = D->getMostRecentDecl(); Prev; Prev = Prev->getPreviousDecl()) in DeclarationMarkedUsed()
DASTReader.cpp5577 for (auto *DI = D; DI; DI = DI->getPreviousDecl()) { in readTypeRecord()
5585 for (auto *DI = D; DI; DI = DI->getPreviousDecl()) in readTypeRecord()
8404 R = R->getPreviousDecl()) { in finishPendingActions()
8420 for (auto *R = getMostRecentExistingDecl(ID); R; R = R->getPreviousDecl()) in finishPendingActions()
8427 for (auto *R = getMostRecentExistingDecl(PD); R; R = R->getPreviousDecl()) in finishPendingActions()
8434 for (auto *R = getMostRecentExistingDecl(RTD); R; R = R->getPreviousDecl()) in finishPendingActions()
DASTReaderDecl.cpp422 Current = Current->getPreviousDecl(); in operator ++()
3704 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
3710 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
/external/clang/lib/Parse/
DParseCXXInlineMethods.cpp385 FunctionDecl *Old = cast<FunctionDecl>(LM.Method)->getPreviousDecl(); in ParseLexedMethodDeclaration()

12