Home
last modified time | relevance | path

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

/external/clang/include/clang/AST/
DRedeclarable.h67 decl_type *getPreviousDecl() { in getPreviousDecl() function
72 const decl_type *getPreviousDecl() const { in getPreviousDecl() function
74 static_cast<const decl_type*>(this))->getPreviousDecl(); in getPreviousDecl()
81 while (D->getPreviousDecl()) in getFirstDeclaration()
82 D = D->getPreviousDecl(); in getFirstDeclaration()
90 while (D->getPreviousDecl()) in getFirstDeclaration()
91 D = D->getPreviousDecl(); in getFirstDeclaration()
DDeclTemplate.h491 return getPreviousDecl(); in getPreviousDeclImpl()
669 using redeclarable_base::getPreviousDecl;
774 FunctionTemplateDecl *getPreviousDecl() {
776 RedeclarableTemplateDecl::getPreviousDecl());
781 const FunctionTemplateDecl *getPreviousDecl() const {
783 RedeclarableTemplateDecl::getPreviousDecl());
1326 assert(Recent->isInjectedClassName() && Recent->getPreviousDecl());
1327 Recent = Recent->getPreviousDecl();
1778 ClassTemplateDecl *getPreviousDecl() {
1780 RedeclarableTemplateDecl::getPreviousDecl());
[all …]
DDecl.h419 return getPreviousDecl(); in getPreviousDeclImpl()
436 using redeclarable_base::getPreviousDecl;
833 return getPreviousDecl(); in getPreviousDeclImpl()
843 using redeclarable_base::getPreviousDecl;
1574 return getPreviousDecl(); in getPreviousDeclImpl()
1584 using redeclarable_base::getPreviousDecl;
2351 return getPreviousDecl(); in getPreviousDeclImpl()
2361 using redeclarable_base::getPreviousDecl;
2520 return getPreviousDecl(); in getPreviousDeclImpl()
2535 using redeclarable_base::getPreviousDecl;
[all …]
DDeclObjC.h625 return getPreviousDecl(); in getPreviousDeclImpl()
947 using redeclarable_base::getPreviousDecl;
1128 return getPreviousDecl(); in getPreviousDeclImpl()
1232 using redeclarable_base::getPreviousDecl;
DDeclCXX.h683 const CXXRecordDecl *getPreviousDecl() const {
684 return cast_or_null<CXXRecordDecl>(RecordDecl::getPreviousDecl());
686 CXXRecordDecl *getPreviousDecl() {
687 return cast_or_null<CXXRecordDecl>(RecordDecl::getPreviousDecl());
DDeclBase.h739 Decl *getPreviousDecl() { return getPreviousDeclImpl(); } in getPreviousDecl() function
743 const Decl *getPreviousDecl() const { in getPreviousDecl() function
/external/clang/lib/AST/
DDecl.cpp222 for (const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl()
224 PrevVar = PrevVar->getPreviousDecl()) in getLVForNamespaceScopeDecl()
232 const VarDecl *PrevVar = Var->getPreviousDecl(); in getLVForNamespaceScopeDecl()
233 for (; PrevVar; PrevVar = PrevVar->getPreviousDecl()) in getLVForNamespaceScopeDecl()
347 if (const VarDecl *PrevVar = Var->getPreviousDecl()) { in getLVForNamespaceScopeDecl()
382 if (const FunctionDecl *PrevFunc = Function->getPreviousDecl()) { in getLVForNamespaceScopeDecl()
791 if (const FunctionDecl *Prev = Function->getPreviousDecl()) { in getLVForDecl()
815 if (const VarDecl *Prev = Var->getPreviousDecl()) { in getLVForDecl()
924 return FD->getPreviousDecl() == OldD; in declarationReplaces()
1235 for (const VarDecl *PrevVar = getPreviousDecl(); in isThisDeclarationADefinition()
[all …]
DDeclCXX.cpp732 if (FunTmpl->getPreviousDecl()) in addedMember()
733 data().Conversions.replace(FunTmpl->getPreviousDecl(), in addedMember()
738 if (Conversion->getPreviousDecl()) in addedMember()
739 data().Conversions.replace(Conversion->getPreviousDecl(), in addedMember()
DDeclTemplate.cpp119 for (RedeclarableTemplateDecl *Prev = getPreviousDecl(); Prev; in getCommonPtr()
120 Prev = Prev->getPreviousDecl()) { in getCommonPtr()
DDumpXML.cpp411 if (T *Prev = D->getPreviousDecl()) in visitRedeclarableAttrs()
DDeclBase.cpp866 N = N->getPreviousDecl()) in collectAllContexts()
DASTContext.cpp2232 } else if (CXXRecordDecl *PrevDecl = Decl->getPreviousDecl()) { in getInjectedClassNameType()
2258 assert(!Record->getPreviousDecl() && in getTypeDeclTypeSlow()
2263 assert(!Enum->getPreviousDecl() && in getTypeDeclTypeSlow()
2296 if (const RecordDecl *PrevDecl = Decl->getPreviousDecl()) in getRecordType()
2309 if (const EnumDecl *PrevDecl = Decl->getPreviousDecl()) in getEnumType()
/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/Sema/
DSemaTemplateInstantiateDecl.cpp180 if (TypedefNameDecl *Prev = D->getPreviousDecl()) { in InstantiateTypedefNameDecl()
227 if (Pattern->getPreviousDecl()) { in VisitTypeAliasTemplateDecl()
562 if (D->getPreviousDecl()) { in VisitEnumDecl()
564 D->getPreviousDecl(), in VisitEnumDecl()
728 if (!isFriend && Pattern->getPreviousDecl()) { in VisitClassTemplateDecl()
965 else if (D->getPreviousDecl()) { in VisitCXXRecordDecl()
967 D->getPreviousDecl(), in VisitCXXRecordDecl()
1227 PrevDecl = FunctionTemplate->getPreviousDecl(); in VisitFunctionDecl()
1229 PrevDecl = Function->getPreviousDecl(); in VisitFunctionDecl()
DSemaAccess.cpp1109 PrevDecl = VD->getPreviousDecl(); in DiagnoseAccessPath()
1111 PrevDecl = FD->getPreviousDecl(); in DiagnoseAccessPath()
1113 PrevDecl = TND->getPreviousDecl(); in DiagnoseAccessPath()
1117 PrevDecl = TD->getPreviousDecl(); in DiagnoseAccessPath()
DSemaTemplate.cpp5386 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in ActOnClassTemplateSpecialization()
5527 Prev = Prev->getPreviousDecl()) { in DiagLocForExplicitInstantiation()
5601 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
5690 for (Decl *Prev = PrevDecl; Prev; Prev = Prev->getPreviousDecl()) { in CheckSpecializationInstantiationRedecl()
6421 = cast_or_null<CXXRecordDecl>(Record->getPreviousDecl()); in ActOnExplicitInstantiation()
6696 FunctionDecl *PrevDecl = Specialization->getPreviousDecl(); in ActOnExplicitInstantiation()
DSemaTemplateInstantiate.cpp2345 if (Record->isInjectedClassName() || Record->getPreviousDecl()) in InstantiateClassMembers()
2542 CheckD = Tag->getPreviousDecl(); in findInstantiationOf()
DSemaDecl.cpp5479 Access = NewFD->getPreviousDecl()->getAccess(); in ActOnFunctionDeclarator()
5495 FunctionTemplate->getPreviousDecl(); in ActOnFunctionDeclarator()
6197 if (VarDecl *Old = VDecl->getPreviousDecl()) in AddInitializerToDecl()
6599 if (Var->getPreviousDecl() == 0) in ActOnUninitializedDecl()
7229 for (const FunctionDecl *Prev = FD->getPreviousDecl(); in ShouldWarnAboutMissingPrototype()
7230 Prev; Prev = Prev->getPreviousDecl()) { in ShouldWarnAboutMissingPrototype()
DSemaLookup.cpp2653 Cursor = Cursor->getPreviousDecl(); in insert()
DSemaDeclCXX.cpp451 for (FunctionDecl *Older = Old->getPreviousDecl(); in MergeCXXFunctionDecl()
452 Older; Older = Older->getPreviousDecl()) { in MergeCXXFunctionDecl()
10426 if (const FunctionDecl *Prev = Fn->getPreviousDecl()) { in SetDeclDeleted()
/external/clang/lib/Serialization/
DASTWriterDecl.cpp758 assert(D->getPreviousDecl() == 0 && "PARM_VAR_DECL can't be redecl"); in VisitParmVarDecl()
1125 if (D->getPreviousDecl() == 0) { in VisitClassTemplatePartialSpecializationDecl()
1254 (void)Writer.GetDeclRef(D->getPreviousDecl()); in VisitRedeclarable()
DASTWriter.cpp2931 assert(First->getPreviousDecl() == 0 && "Not the first declaration?"); in WriteRedeclarations()
2946 Prev = Prev->getPreviousDecl()) { in WriteRedeclarations()
DASTReaderDecl.cpp1425 if (D->getPreviousDecl() == 0) { in VisitClassTemplatePartialSpecializationDecl()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp1068 FD = FD->getPreviousDecl(); in GetOrCreateLLVMFunction()