Home
last modified time | relevance | path

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

/external/clang/include/clang/AST/
DRedeclarable.h66 decl_type *getPreviousDecl() { in getPreviousDecl() function
71 const decl_type *getPreviousDecl() const { in getPreviousDecl() function
73 static_cast<const decl_type*>(this))->getPreviousDecl(); in getPreviousDecl()
80 while (D->getPreviousDecl()) in getFirstDeclaration()
81 D = D->getPreviousDecl(); in getFirstDeclaration()
89 while (D->getPreviousDecl()) in getFirstDeclaration()
90 D = D->getPreviousDecl(); in getFirstDeclaration()
DDeclTemplate.h507 return getPreviousDecl(); in getPreviousDeclImpl()
686 using redeclarable_base::getPreviousDecl;
792 FunctionTemplateDecl *getPreviousDecl() {
794 RedeclarableTemplateDecl::getPreviousDecl());
799 const FunctionTemplateDecl *getPreviousDecl() const {
801 RedeclarableTemplateDecl::getPreviousDecl());
1425 assert(Recent->isInjectedClassName() && Recent->getPreviousDecl());
1426 Recent = Recent->getPreviousDecl();
1877 ClassTemplateDecl *getPreviousDecl() {
1879 RedeclarableTemplateDecl::getPreviousDecl());
[all …]
DDecl.h417 return getPreviousDecl(); in getPreviousDeclImpl()
434 using redeclarable_base::getPreviousDecl;
831 return getPreviousDecl(); in getPreviousDeclImpl()
841 using redeclarable_base::getPreviousDecl;
1572 return getPreviousDecl(); in getPreviousDeclImpl()
1582 using redeclarable_base::getPreviousDecl;
2359 return getPreviousDecl(); in getPreviousDeclImpl()
2369 using redeclarable_base::getPreviousDecl;
2528 return getPreviousDecl(); in getPreviousDeclImpl()
2543 using redeclarable_base::getPreviousDecl;
[all …]
DDeclObjC.h652 return getPreviousDecl(); in getPreviousDeclImpl()
979 using redeclarable_base::getPreviousDecl;
1165 return getPreviousDecl(); in getPreviousDeclImpl()
1269 using redeclarable_base::getPreviousDecl;
DDeclCXX.h682 const CXXRecordDecl *getPreviousDecl() const {
683 return cast_or_null<CXXRecordDecl>(RecordDecl::getPreviousDecl());
685 CXXRecordDecl *getPreviousDecl() {
686 return cast_or_null<CXXRecordDecl>(RecordDecl::getPreviousDecl());
DDeclBase.h740 Decl *getPreviousDecl() { return getPreviousDeclImpl(); } in getPreviousDecl() function
744 const Decl *getPreviousDecl() const { in getPreviousDecl() function
/external/clang/lib/AST/
DDecl.cpp225 for (const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl()
227 PrevVar = PrevVar->getPreviousDecl()) in getLVForNamespaceScopeDecl()
235 const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl()
236 for (; PrevVar; PrevVar = PrevVar->getPreviousDecl()) in getLVForNamespaceScopeDecl()
357 if (const VarDecl *PrevVar = Var->getPreviousDecl()) { in getLVForNamespaceScopeDecl()
392 if (const FunctionDecl *PrevFunc = Function->getPreviousDecl()) { in getLVForNamespaceScopeDecl()
821 if (const FunctionDecl *Prev = Function->getPreviousDecl()) { in getLVForDecl()
845 if (const VarDecl *Prev = Var->getPreviousDecl()) { in getLVForDecl()
952 return FD->getPreviousDecl() == OldD; in declarationReplaces()
1263 for (const VarDecl *PrevVar = getPreviousDecl(); in isThisDeclarationADefinition()
[all …]
DDeclCXX.cpp706 if (FunTmpl->getPreviousDecl()) in addedMember()
707 data().Conversions.replace(FunTmpl->getPreviousDecl(), in addedMember()
712 if (Conversion->getPreviousDecl()) in addedMember()
713 data().Conversions.replace(Conversion->getPreviousDecl(), in addedMember()
DDeclTemplate.cpp136 for (RedeclarableTemplateDecl *Prev = getPreviousDecl(); Prev; in getCommonPtr()
137 Prev = Prev->getPreviousDecl()) { in getCommonPtr()
DDumpXML.cpp411 if (T *Prev = D->getPreviousDecl()) in visitRedeclarableAttrs()
DDeclBase.cpp875 N = N->getPreviousDecl()) in collectAllContexts()
DASTContext.cpp2592 } else if (CXXRecordDecl *PrevDecl = Decl->getPreviousDecl()) { in getInjectedClassNameType()
2618 assert(!Record->getPreviousDecl() && in getTypeDeclTypeSlow()
2623 assert(!Enum->getPreviousDecl() && in getTypeDeclTypeSlow()
2656 if (const RecordDecl *PrevDecl = Decl->getPreviousDecl()) in getRecordType()
2669 if (const EnumDecl *PrevDecl = Decl->getPreviousDecl()) in getEnumType()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp183 if (TypedefNameDecl *Prev = D->getPreviousDecl()) { in InstantiateTypedefNameDecl()
230 if (Pattern->getPreviousDecl()) { in VisitTypeAliasTemplateDecl()
564 if (D->getPreviousDecl()) { in VisitEnumDecl()
566 D->getPreviousDecl(), in VisitEnumDecl()
730 if (!isFriend && Pattern->getPreviousDecl()) { in VisitClassTemplateDecl()
958 !D->getPreviousDecl()) { in VisitFunctionTemplateDecl()
969 else if (D->getPreviousDecl()) { in VisitCXXRecordDecl()
971 D->getPreviousDecl(), in VisitCXXRecordDecl()
1231 PrevDecl = FunctionTemplate->getPreviousDecl(); in VisitFunctionDecl()
1233 PrevDecl = Function->getPreviousDecl(); in VisitFunctionDecl()
[all …]
DSemaAccess.cpp1116 PrevDecl = VD->getPreviousDecl(); in DiagnoseAccessPath()
1118 PrevDecl = FD->getPreviousDecl(); in DiagnoseAccessPath()
1120 PrevDecl = TND->getPreviousDecl(); in DiagnoseAccessPath()
1124 PrevDecl = TD->getPreviousDecl(); in DiagnoseAccessPath()
DSemaTemplate.cpp5515 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in ActOnClassTemplateSpecialization()
5664 Prev = Prev->getPreviousDecl()) { in DiagLocForExplicitInstantiation()
5738 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
5827 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
6559 = cast_or_null<CXXRecordDecl>(Record->getPreviousDecl()); in ActOnExplicitInstantiation()
6832 FunctionDecl *PrevDecl = Specialization->getPreviousDecl(); in ActOnExplicitInstantiation()
DSemaTemplateInstantiate.cpp2364 if (Record->isInjectedClassName() || Record->getPreviousDecl()) in InstantiateClassMembers()
2561 CheckD = Tag->getPreviousDecl(); in findInstantiationOf()
DSemaDecl.cpp5699 Access = NewFD->getPreviousDecl()->getAccess(); in ActOnFunctionDeclarator()
5715 FunctionTemplate->getPreviousDecl(); in ActOnFunctionDeclarator()
6450 if (VarDecl *Old = VDecl->getPreviousDecl()) in AddInitializerToDecl()
6857 if (Var->getPreviousDecl() == 0) in ActOnUninitializedDecl()
7572 for (const FunctionDecl *Prev = FD->getPreviousDecl(); in ShouldWarnAboutMissingPrototype()
7573 Prev; Prev = Prev->getPreviousDecl()) { in ShouldWarnAboutMissingPrototype()
DSemaDeclCXX.cpp451 for (FunctionDecl *Older = Old->getPreviousDecl(); in MergeCXXFunctionDecl()
452 Older; Older = Older->getPreviousDecl()) { in MergeCXXFunctionDecl()
10388 if (const FunctionDecl *Prev = Fn->getPreviousDecl()) { in SetDeclDeleted()
10392 || Prev->getPreviousDecl()) && !Prev->isDefined()) { in SetDeclDeleted()
DSemaLookup.cpp2633 Cursor = Cursor->getPreviousDecl(); in insert()
/external/clang/tools/libclang/
DIndexingContext.h149 /*isRedeclaration=*/D->getPreviousDecl() != 0, in ObjCInterfaceDeclInfo()
164 /*isRedeclaration=*/D->getPreviousDecl(), in ObjCProtocolDeclInfo()
DIndexingContext.cpp359 bool isRedeclaration = D->hasDefinition() || D->getPreviousDecl(); in handleObjCInterface()
413 bool isRedeclaration = D->hasDefinition() || D->getPreviousDecl(); in handleObjCProtocol()
/external/clang/lib/Serialization/
DASTWriterDecl.cpp760 assert(D->getPreviousDecl() == 0 && "PARM_VAR_DECL can't be redecl"); in VisitParmVarDecl()
1128 if (D->getPreviousDecl() == 0) { in VisitClassTemplatePartialSpecializationDecl()
1274 (void)Writer.GetDeclRef(D->getPreviousDecl()); in VisitRedeclarable()
DASTWriter.cpp2955 assert(First->getPreviousDecl() == 0 && "Not the first declaration?"); in WriteRedeclarations()
2970 Prev = Prev->getPreviousDecl()) { in WriteRedeclarations()
DASTReaderDecl.cpp1424 if (D->getPreviousDecl() == 0) { in VisitClassTemplatePartialSpecializationDecl()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp1125 FD = FD->getPreviousDecl(); in GetOrCreateLLVMFunction()