/external/clang/lib/Sema/ |
D | SemaTemplate.cpp | 447 void Sema::DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl) { in DiagnoseTemplateParameterShadow() argument 448 assert(PrevDecl->isTemplateParameter() && "Not a template parameter"); in DiagnoseTemplateParameterShadow() 458 << cast<NamedDecl>(PrevDecl)->getDeclName(); in DiagnoseTemplateParameterShadow() 459 Diag(PrevDecl->getLocation(), diag::note_template_param_here); in DiagnoseTemplateParameterShadow() 532 NamedDecl *PrevDecl = SemaRef.LookupSingleName( in maybeDiagnoseTemplateParameterShadow() local 534 if (PrevDecl && PrevDecl->isTemplateParameter()) in maybeDiagnoseTemplateParameterShadow() 535 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl); in maybeDiagnoseTemplateParameterShadow() 903 NamedDecl *PrevDecl = nullptr; in CheckClassTemplate() local 905 PrevDecl = (*Previous.begin())->getUnderlyingDecl(); in CheckClassTemplate() 910 = dyn_cast_or_null<ClassTemplateDecl>(PrevDecl); in CheckClassTemplate() [all …]
|
D | SemaDeclObjC.cpp | 461 NamedDecl *PrevDecl = LookupSingleName(TUScope, ClassName, ClassLoc, in ActOnStartClassInterface() local 464 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassInterface() 466 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassInterface() 470 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassInterface() 513 PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc, in ActOnStartClassInterface() 516 if (!PrevDecl) { in ActOnStartClassInterface() 526 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>(); in ActOnStartClassInterface() 530 if (declaresSameEntity(PrevDecl, IDecl)) { in ActOnStartClassInterface() 536 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnStartClassInterface() 542 if (PrevDecl && !SuperClassDecl) { in ActOnStartClassInterface() [all …]
|
D | SemaTemplateInstantiateDecl.cpp | 746 EnumDecl *PrevDecl = nullptr; in VisitEnumDecl() local 752 PrevDecl = cast<EnumDecl>(Prev); in VisitEnumDecl() 757 PrevDecl, D->isScoped(), in VisitEnumDecl() 908 CXXRecordDecl *PrevDecl = nullptr; in VisitClassTemplateDecl() local 916 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl() 946 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl() 1006 Pattern->getIdentifier(), PrevDecl, in VisitClassTemplateDecl() 1223 CXXRecordDecl *PrevDecl = nullptr; in VisitCXXRecordDecl() local 1225 PrevDecl = cast<CXXRecordDecl>(Owner); in VisitCXXRecordDecl() 1231 PrevDecl = cast<CXXRecordDecl>(Prev); in VisitCXXRecordDecl() [all …]
|
D | SemaDecl.cpp | 3793 NamedDecl *PrevDecl = R.getRepresentativeDecl()->getUnderlyingDecl(); in CheckAnonMemberRedeclaration() local 3794 assert(PrevDecl && "Expected a non-null Decl"); in CheckAnonMemberRedeclaration() 3796 if (!SemaRef.isDeclInScope(PrevDecl, Owner, S)) in CheckAnonMemberRedeclaration() 3800 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in CheckAnonMemberRedeclaration() 5110 isOutOfScopePreviousDeclaration(NamedDecl *PrevDecl, DeclContext *DC, in isOutOfScopePreviousDeclaration() argument 5112 if (!PrevDecl) in isOutOfScopePreviousDeclaration() 5115 if (!PrevDecl->hasLinkage()) in isOutOfScopePreviousDeclaration() 5130 DeclContext *PrevOuterContext = PrevDecl->getDeclContext(); in isOutOfScopePreviousDeclaration() 9974 NamedDecl *PrevDecl = R.getFoundDecl(); in ActOnParamDeclarator() local 9975 if (PrevDecl->isTemplateParameter()) { in ActOnParamDeclarator() [all …]
|
D | SemaAccess.cpp | 1105 NamedDecl *PrevDecl = nullptr; in diagnoseBadDirectAccess() local 1107 PrevDecl = VD->getPreviousDecl(); in diagnoseBadDirectAccess() 1109 PrevDecl = FD->getPreviousDecl(); in diagnoseBadDirectAccess() 1111 PrevDecl = TND->getPreviousDecl(); in diagnoseBadDirectAccess() 1115 PrevDecl = TD->getPreviousDecl(); in diagnoseBadDirectAccess() 1117 if (!PrevDecl) break; in diagnoseBadDirectAccess() 1118 D = PrevDecl; in diagnoseBadDirectAccess()
|
D | SemaDeclCXX.cpp | 7165 NamedDecl *PrevDecl = nullptr; in ActOnStartNamespaceDef() local 7170 PrevDecl = *I; in ActOnStartNamespaceDef() 7175 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef() 7182 } else if (PrevDecl) { in ActOnStartNamespaceDef() 7186 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartNamespaceDef() 7835 UsingShadowDecl *PrevDecl) { in BuildUsingShadowDecl() argument 7853 Shadow->setPreviousDecl(PrevDecl); in BuildUsingShadowDecl() 8207 UsingShadowDecl *PrevDecl = nullptr; in BuildUsingDeclaration() local 8208 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) in BuildUsingDeclaration() 8209 BuildUsingShadowDecl(S, UD, *I, PrevDecl); in BuildUsingDeclaration() [all …]
|
/external/clang/lib/AST/ |
D | DeclTemplate.cpp | 334 ClassTemplateDecl *PrevDecl) { in Create() argument 338 New->setPreviousDecl(PrevDecl); in Create() 717 ClassTemplateSpecializationDecl *PrevDecl) in ClassTemplateSpecializationDecl() argument 720 PrevDecl), in ClassTemplateSpecializationDecl() 741 ClassTemplateSpecializationDecl *PrevDecl) { in Create() argument 745 SpecializedTemplate, Args, NumArgs, PrevDecl); in Create() 748 Context.getTypeDeclType(Result, PrevDecl); in Create() 832 ClassTemplatePartialSpecializationDecl *PrevDecl) in ClassTemplatePartialSpecializationDecl() argument 837 Args, NumArgs, PrevDecl), in ClassTemplatePartialSpecializationDecl() 854 ClassTemplatePartialSpecializationDecl *PrevDecl) { in Create() argument [all …]
|
D | DeclObjC.cpp | 1147 ObjCInterfaceDecl *PrevDecl, in Create() argument 1151 ObjCInterfaceDecl(C, DC, atLoc, Id, ClassLoc, PrevDecl, isInternal); in Create() 1153 C.getObjCInterfaceType(Result, PrevDecl); in Create() 1171 ObjCInterfaceDecl *PrevDecl, in ObjCInterfaceDecl() argument 1175 setPreviousDecl(PrevDecl); in ObjCInterfaceDecl() 1178 if (PrevDecl) in ObjCInterfaceDecl() 1179 Data = PrevDecl->Data; in ObjCInterfaceDecl() 1524 ObjCProtocolDecl *PrevDecl) in ObjCProtocolDecl() argument 1527 setPreviousDecl(PrevDecl); in ObjCProtocolDecl() 1528 if (PrevDecl) in ObjCProtocolDecl() [all …]
|
D | DeclCXX.cpp | 89 CXXRecordDecl *PrevDecl) in CXXRecordDecl() argument 90 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl), in CXXRecordDecl() 91 DefinitionData(PrevDecl ? PrevDecl->DefinitionData in CXXRecordDecl() 98 CXXRecordDecl* PrevDecl, in Create() argument 101 IdLoc, Id, PrevDecl); in Create() 106 C.getTypeDeclType(R, PrevDecl); in Create() 1981 IdentifierInfo *Id, NamespaceDecl *PrevDecl) in NamespaceDecl() argument 1985 setPreviousDecl(PrevDecl); in NamespaceDecl() 1987 if (PrevDecl) in NamespaceDecl() 1988 AnonOrFirstNamespaceAndInline.setPointer(PrevDecl->getOriginalNamespace()); in NamespaceDecl() [all …]
|
D | Decl.cpp | 2557 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration() argument 2558 redeclarable_base::setPreviousDecl(PrevDecl); in setPreviousDeclaration() 2562 = PrevDecl? PrevDecl->getDescribedFunctionTemplate() : nullptr; in setPreviousDeclaration() 2563 assert((!PrevDecl || PrevFunTmpl) && "Function/function template mismatch"); in setPreviousDeclaration() 2567 if (PrevDecl && PrevDecl->IsInline) in setPreviousDeclaration() 3491 EnumDecl *PrevDecl, bool IsScoped, in Create() argument 3493 EnumDecl *Enum = new (C, DC) EnumDecl(C, DC, StartLoc, IdLoc, Id, PrevDecl, in Create() 3497 C.getTypeDeclType(Enum, PrevDecl); in Create() 3566 RecordDecl *PrevDecl) in RecordDecl() argument 3567 : TagDecl(DK, TK, C, DC, IdLoc, Id, PrevDecl, StartLoc) { in RecordDecl() [all …]
|
D | DeclBase.cpp | 993 Decl *PrevDecl = nullptr; in BuildDeclChain() local 999 if (PrevDecl) in BuildDeclChain() 1000 PrevDecl->NextInContextAndBits.setPointer(D); in BuildDeclChain() 1004 PrevDecl = D; in BuildDeclChain() 1007 return std::make_pair(FirstNewDecl, PrevDecl); in BuildDeclChain()
|
D | ASTContext.cpp | 3008 } else if (CXXRecordDecl *PrevDecl = Decl->getPreviousDecl()) { in getInjectedClassNameType() local 3009 assert(PrevDecl->TypeForDecl && "previous declaration has no type"); in getInjectedClassNameType() 3010 Decl->TypeForDecl = PrevDecl->TypeForDecl; in getInjectedClassNameType() 3070 if (const RecordDecl *PrevDecl = Decl->getPreviousDecl()) in getRecordType() local 3071 if (PrevDecl->TypeForDecl) in getRecordType() 3072 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); in getRecordType() 3083 if (const EnumDecl *PrevDecl = Decl->getPreviousDecl()) in getEnumType() local 3084 if (PrevDecl->TypeForDecl) in getEnumType() 3085 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); in getEnumType() 3707 ObjCInterfaceDecl *PrevDecl) const { in getObjCInterfaceType() [all …]
|
/external/clang/include/clang/AST/ |
D | Decl.h | 415 IdentifierInfo *Id, NamespaceDecl *PrevDecl); 426 NamespaceDecl *PrevDecl); 1890 void setPreviousDeclaration(FunctionDecl * PrevDecl); 2729 SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl, in TagDecl() argument 2738 setPreviousDecl(PrevDecl); in TagDecl() 2976 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, in EnumDecl() argument 2978 : TagDecl(Enum, TTK_Enum, C, DC, IdLoc, Id, PrevDecl, StartLoc), in EnumDecl() 3020 IdentifierInfo *Id, EnumDecl *PrevDecl, 3210 IdentifierInfo *Id, RecordDecl *PrevDecl); 3215 IdentifierInfo *Id, RecordDecl* PrevDecl = nullptr); [all …]
|
D | ASTContext.h | 1087 const TypeDecl *PrevDecl = nullptr) const { 1091 if (PrevDecl) { 1092 assert(PrevDecl->TypeForDecl && "previous decl has no TypeForDecl"); 1093 Decl->TypeForDecl = PrevDecl->TypeForDecl; 1094 return QualType(PrevDecl->TypeForDecl, 0); 1168 ObjCInterfaceDecl *PrevDecl = nullptr) const;
|
D | Redeclarable.h | 169 void setPreviousDecl(decl_type *PrevDecl);
|
D | DeclTemplate.h | 1441 ClassTemplateSpecializationDecl *PrevDecl); 1452 ClassTemplateSpecializationDecl *PrevDecl); 1679 ClassTemplatePartialSpecializationDecl *PrevDecl); 1696 ClassTemplatePartialSpecializationDecl *PrevDecl); 1872 ClassTemplateDecl *PrevDecl);
|
D | DeclObjC.h | 740 ObjCInterfaceDecl *PrevDecl, bool IsInternal); 774 ObjCInterfaceDecl *PrevDecl, 1534 ObjCProtocolDecl *PrevDecl); 1554 ObjCProtocolDecl *PrevDecl);
|
D | DeclCXX.h | 642 IdentifierInfo *Id, CXXRecordDecl *PrevDecl); 685 CXXRecordDecl *PrevDecl = nullptr,
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 1776 AccessSpecifier AS, NamedDecl *PrevDecl, 3898 UsingShadowDecl *PrevDecl); 5287 void DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl); 5441 NamedDecl *PrevDecl,
|