/external/clang/lib/Sema/ |
D | SemaTemplate.cpp | 463 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 …]
|
D | SemaDeclObjC.cpp | 475 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 …]
|
D | SemaDecl.cpp | 4099 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 …]
|
D | SemaTemplateInstantiateDecl.cpp | 885 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 …]
|
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 | Sema.cpp | 723 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()
|
D | SemaDeclCXX.cpp | 7363 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 …]
|
D | SemaOpenMP.cpp | 11118 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/ |
D | DeclTemplate.cpp | 329 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 …]
|
D | DeclObjC.cpp | 1389 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 …]
|
D | DeclCXX.cpp | 88 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 …]
|
D | Decl.cpp | 2662 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 …]
|
D | DeclBase.cpp | 1077 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()
|
D | ASTContext.cpp | 3174 } 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 …]
|
D | ASTImporter.cpp | 2844 CXXRecordDecl *const PrevDecl = nullptr; in VisitRecordDecl() local 2848 Name.getAsIdentifierInfo(), PrevDecl, DelayTypeCreation); in VisitRecordDecl()
|
/external/clang/include/clang/AST/ |
D | Decl.h | 488 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 …]
|
D | ASTContext.h | 1200 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;
|
D | Redeclarable.h | 177 void setPreviousDecl(decl_type *PrevDecl);
|
D | DeclTemplate.h | 1582 ClassTemplateSpecializationDecl *PrevDecl); 1592 ClassTemplateSpecializationDecl *PrevDecl); 1809 ClassTemplatePartialSpecializationDecl *PrevDecl); 1825 ClassTemplatePartialSpecializationDecl *PrevDecl); 2005 ClassTemplateDecl *PrevDecl);
|
D | DeclObjC.h | 1163 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, 1202 ObjCInterfaceDecl *PrevDecl, 1994 ObjCProtocolDecl *PrevDecl); 2014 ObjCProtocolDecl *PrevDecl);
|
D | DeclCXX.h | 645 IdentifierInfo *Id, CXXRecordDecl *PrevDecl); 690 CXXRecordDecl *PrevDecl = nullptr,
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 1999 AccessSpecifier AS, NamedDecl *PrevDecl, 4240 UsingShadowDecl *PrevDecl); 5678 void DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl); 5830 NamedDecl *PrevDecl,
|