Home
last modified time | relevance | path

Searched refs:PrevDecl (Results 1 – 22 of 22) sorted by relevance

/external/clang/lib/Sema/
DSemaTemplate.cpp463 void Sema::DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl) { in DiagnoseTemplateParameterShadow() argument
464 assert(PrevDecl->isTemplateParameter() && "Not a template parameter"); in DiagnoseTemplateParameterShadow()
474 << cast<NamedDecl>(PrevDecl)->getDeclName(); in DiagnoseTemplateParameterShadow()
475 Diag(PrevDecl->getLocation(), diag::note_template_param_here); in DiagnoseTemplateParameterShadow()
547 NamedDecl *PrevDecl = SemaRef.LookupSingleName( in maybeDiagnoseTemplateParameterShadow() local
549 if (PrevDecl && PrevDecl->isTemplateParameter()) in maybeDiagnoseTemplateParameterShadow()
550 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl); in maybeDiagnoseTemplateParameterShadow()
929 NamedDecl *PrevDecl = nullptr; in CheckClassTemplate() local
931 PrevDecl = (*Previous.begin())->getUnderlyingDecl(); in CheckClassTemplate()
933 if (PrevDecl && PrevDecl->isTemplateParameter()) { in CheckClassTemplate()
[all …]
DSemaDeclObjC.cpp475 NamedDecl *PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc, in ActOnSuperClassOfClassInterface() local
478 if (!PrevDecl) { in ActOnSuperClassOfClassInterface()
488 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>(); in ActOnSuperClassOfClassInterface()
492 if (declaresSameEntity(PrevDecl, IDecl)) { in ActOnSuperClassOfClassInterface()
498 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnSuperClassOfClassInterface()
507 if (PrevDecl && !SuperClassDecl) { in ActOnSuperClassOfClassInterface()
511 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { in ActOnSuperClassOfClassInterface()
534 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnSuperClassOfClassInterface()
538 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { in ActOnSuperClassOfClassInterface()
912 NamedDecl *PrevDecl = LookupSingleName(TUScope, ClassName, ClassLoc, in ActOnStartClassInterface() local
[all …]
DSemaDecl.cpp4099 NamedDecl *PrevDecl = R.getRepresentativeDecl()->getUnderlyingDecl(); in CheckAnonMemberRedeclaration() local
4100 assert(PrevDecl && "Expected a non-null Decl"); in CheckAnonMemberRedeclaration()
4102 if (!SemaRef.isDeclInScope(PrevDecl, Owner, S)) in CheckAnonMemberRedeclaration()
4107 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in CheckAnonMemberRedeclaration()
5442 isOutOfScopePreviousDeclaration(NamedDecl *PrevDecl, DeclContext *DC, in isOutOfScopePreviousDeclaration() argument
5444 if (!PrevDecl) in isOutOfScopePreviousDeclaration()
5447 if (!PrevDecl->hasLinkage()) in isOutOfScopePreviousDeclaration()
5462 DeclContext *PrevOuterContext = PrevDecl->getDeclContext(); in isOutOfScopePreviousDeclaration()
10857 NamedDecl *PrevDecl = R.getFoundDecl(); in ActOnParamDeclarator() local
10858 if (PrevDecl->isTemplateParameter()) { in ActOnParamDeclarator()
[all …]
DSemaTemplateInstantiateDecl.cpp885 EnumDecl *PrevDecl = nullptr; in VisitEnumDecl() local
891 PrevDecl = cast<EnumDecl>(Prev); in VisitEnumDecl()
896 PrevDecl, D->isScoped(), in VisitEnumDecl()
1061 CXXRecordDecl *PrevDecl = nullptr; in VisitClassTemplateDecl() local
1069 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl()
1099 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl()
1159 Pattern->getIdentifier(), PrevDecl, in VisitClassTemplateDecl()
1377 CXXRecordDecl *PrevDecl = nullptr; in VisitCXXRecordDecl() local
1379 PrevDecl = cast<CXXRecordDecl>(Owner); in VisitCXXRecordDecl()
1385 PrevDecl = cast<CXXRecordDecl>(Prev); in VisitCXXRecordDecl()
[all …]
DSemaAccess.cpp1105 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()
DSema.cpp723 Decl *PrevDecl = LookupSingleName(TUScope, WeakID.first, SourceLocation(), in ActOnEndOfTranslationUnit() local
725 if (PrevDecl != nullptr && in ActOnEndOfTranslationUnit()
726 !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) in ActOnEndOfTranslationUnit()
DSemaDeclCXX.cpp7363 NamedDecl *PrevDecl = in ActOnStartNamespaceDef() local
7365 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef()
7372 } else if (PrevDecl) { in ActOnStartNamespaceDef()
7376 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartNamespaceDef()
8044 UsingShadowDecl *PrevDecl) { in BuildUsingShadowDecl() argument
8073 Shadow->setPreviousDecl(PrevDecl); in BuildUsingShadowDecl()
8461 UsingShadowDecl *PrevDecl = nullptr; in BuildUsingDeclaration() local
8462 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) in BuildUsingDeclaration()
8463 BuildUsingShadowDecl(S, UD, *I, PrevDecl); in BuildUsingDeclaration()
8935 NamedDecl *PrevDecl = PrevR.getRepresentativeDecl(); in ActOnNamespaceAliasDef() local
[all …]
DSemaOpenMP.cpp11118 auto *PrevDecl = cast<OMPDeclareReductionDecl>(Filter.next()); in ActOnOpenMPDeclareReductionDirectiveStart() local
11120 auto I = UsedAsPrevious.find(PrevDecl); in ActOnOpenMPDeclareReductionDirectiveStart()
11122 UsedAsPrevious[PrevDecl] = false; in ActOnOpenMPDeclareReductionDirectiveStart()
11123 if (auto *D = PrevDecl->getPrevDeclInScope()) in ActOnOpenMPDeclareReductionDirectiveStart()
11126 PreviousRedeclTypes[PrevDecl->getType().getCanonicalType()] = in ActOnOpenMPDeclareReductionDirectiveStart()
11127 PrevDecl->getLocation(); in ActOnOpenMPDeclareReductionDirectiveStart()
/external/clang/lib/AST/
DDeclTemplate.cpp329 ClassTemplateDecl *PrevDecl) { in Create() argument
333 New->setPreviousDecl(PrevDecl); in Create()
710 ClassTemplateSpecializationDecl *PrevDecl) in ClassTemplateSpecializationDecl() argument
713 PrevDecl), in ClassTemplateSpecializationDecl()
733 ClassTemplateSpecializationDecl *PrevDecl) { in Create() argument
737 SpecializedTemplate, Args, PrevDecl); in Create()
740 Context.getTypeDeclType(Result, PrevDecl); in Create()
823 ClassTemplatePartialSpecializationDecl *PrevDecl) in ClassTemplatePartialSpecializationDecl() argument
828 Args, PrevDecl), in ClassTemplatePartialSpecializationDecl()
844 ClassTemplatePartialSpecializationDecl *PrevDecl) { in Create() argument
[all …]
DDeclObjC.cpp1389 ObjCInterfaceDecl *PrevDecl, in Create() argument
1393 ObjCInterfaceDecl(C, DC, atLoc, Id, typeParamList, ClassLoc, PrevDecl, in Create()
1396 C.getObjCInterfaceType(Result, PrevDecl); in Create()
1416 ObjCInterfaceDecl *PrevDecl, in ObjCInterfaceDecl() argument
1421 setPreviousDecl(PrevDecl); in ObjCInterfaceDecl()
1424 if (PrevDecl) in ObjCInterfaceDecl()
1425 Data = PrevDecl->Data; in ObjCInterfaceDecl()
1777 ObjCProtocolDecl *PrevDecl) in ObjCProtocolDecl() argument
1780 setPreviousDecl(PrevDecl); in ObjCProtocolDecl()
1781 if (PrevDecl) in ObjCProtocolDecl()
[all …]
DDeclCXX.cpp88 CXXRecordDecl *PrevDecl) in CXXRecordDecl() argument
89 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl), in CXXRecordDecl()
90 DefinitionData(PrevDecl ? PrevDecl->DefinitionData in CXXRecordDecl()
97 CXXRecordDecl* PrevDecl, in Create() argument
100 IdLoc, Id, PrevDecl); in Create()
105 C.getTypeDeclType(R, PrevDecl); in Create()
2061 IdentifierInfo *Id, NamespaceDecl *PrevDecl) in NamespaceDecl() argument
2065 setPreviousDecl(PrevDecl); in NamespaceDecl()
2067 if (PrevDecl) in NamespaceDecl()
2068 AnonOrFirstNamespaceAndInline.setPointer(PrevDecl->getOriginalNamespace()); in NamespaceDecl()
[all …]
DDecl.cpp2662 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration() argument
2663 redeclarable_base::setPreviousDecl(PrevDecl); in setPreviousDeclaration()
2667 = PrevDecl? PrevDecl->getDescribedFunctionTemplate() : nullptr; in setPreviousDeclaration()
2668 assert((!PrevDecl || PrevFunTmpl) && "Function/function template mismatch"); in setPreviousDeclaration()
2672 if (PrevDecl && PrevDecl->IsInline) in setPreviousDeclaration()
3629 EnumDecl *PrevDecl, bool IsScoped, in Create() argument
3631 auto *Enum = new (C, DC) EnumDecl(C, DC, StartLoc, IdLoc, Id, PrevDecl, in Create()
3634 C.getTypeDeclType(Enum, PrevDecl); in Create()
3718 RecordDecl *PrevDecl) in RecordDecl() argument
3719 : TagDecl(DK, TK, C, DC, IdLoc, Id, PrevDecl, StartLoc) { in RecordDecl()
[all …]
DDeclBase.cpp1077 Decl *PrevDecl = nullptr; in BuildDeclChain() local
1083 if (PrevDecl) in BuildDeclChain()
1084 PrevDecl->NextInContextAndBits.setPointer(D); in BuildDeclChain()
1088 PrevDecl = D; in BuildDeclChain()
1091 return std::make_pair(FirstNewDecl, PrevDecl); in BuildDeclChain()
DASTContext.cpp3174 } else if (CXXRecordDecl *PrevDecl = Decl->getPreviousDecl()) { in getInjectedClassNameType() local
3175 assert(PrevDecl->TypeForDecl && "previous declaration has no type"); in getInjectedClassNameType()
3176 Decl->TypeForDecl = PrevDecl->TypeForDecl; in getInjectedClassNameType()
3236 if (const RecordDecl *PrevDecl = Decl->getPreviousDecl()) in getRecordType() local
3237 if (PrevDecl->TypeForDecl) in getRecordType()
3238 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); in getRecordType()
3249 if (const EnumDecl *PrevDecl = Decl->getPreviousDecl()) in getEnumType() local
3250 if (PrevDecl->TypeForDecl) in getEnumType()
3251 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); in getEnumType()
3900 ObjCInterfaceDecl *PrevDecl) const { in getObjCInterfaceType()
[all …]
DASTImporter.cpp2844 CXXRecordDecl *const PrevDecl = nullptr; in VisitRecordDecl() local
2848 Name.getAsIdentifierInfo(), PrevDecl, DelayTypeCreation); in VisitRecordDecl()
/external/clang/include/clang/AST/
DDecl.h488 IdentifierInfo *Id, NamespaceDecl *PrevDecl);
499 NamespaceDecl *PrevDecl);
1979 void setPreviousDeclaration(FunctionDecl * PrevDecl);
2808 SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl, in TagDecl() argument
2817 setPreviousDecl(PrevDecl); in TagDecl()
3044 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, in EnumDecl() argument
3046 : TagDecl(Enum, TTK_Enum, C, DC, IdLoc, Id, PrevDecl, StartLoc), in EnumDecl()
3088 IdentifierInfo *Id, EnumDecl *PrevDecl,
3282 IdentifierInfo *Id, RecordDecl *PrevDecl);
3287 IdentifierInfo *Id, RecordDecl* PrevDecl = nullptr);
[all …]
DASTContext.h1200 const TypeDecl *PrevDecl = nullptr) const {
1204 if (PrevDecl) {
1205 assert(PrevDecl->TypeForDecl && "previous decl has no TypeForDecl");
1206 Decl->TypeForDecl = PrevDecl->TypeForDecl;
1207 return QualType(PrevDecl->TypeForDecl, 0);
1278 ObjCInterfaceDecl *PrevDecl = nullptr) const;
DRedeclarable.h177 void setPreviousDecl(decl_type *PrevDecl);
DDeclTemplate.h1582 ClassTemplateSpecializationDecl *PrevDecl);
1592 ClassTemplateSpecializationDecl *PrevDecl);
1809 ClassTemplatePartialSpecializationDecl *PrevDecl);
1825 ClassTemplatePartialSpecializationDecl *PrevDecl);
2005 ClassTemplateDecl *PrevDecl);
DDeclObjC.h1163 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl,
1202 ObjCInterfaceDecl *PrevDecl,
1994 ObjCProtocolDecl *PrevDecl);
2014 ObjCProtocolDecl *PrevDecl);
DDeclCXX.h645 IdentifierInfo *Id, CXXRecordDecl *PrevDecl);
690 CXXRecordDecl *PrevDecl = nullptr,
/external/clang/include/clang/Sema/
DSema.h1999 AccessSpecifier AS, NamedDecl *PrevDecl,
4240 UsingShadowDecl *PrevDecl);
5678 void DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl);
5830 NamedDecl *PrevDecl,