/external/clang/lib/AST/ |
H A D | DeclCXX.cpp | 88 CXXRecordDecl *PrevDecl) 89 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl), 90 DefinitionData(PrevDecl ? PrevDecl->DefinitionData 97 CXXRecordDecl* PrevDecl, 100 IdLoc, Id, PrevDecl); 105 C.getTypeDeclType(R, PrevDecl); 123 C.getTypeDeclType(R, /*PrevDecl=*/nullptr); 2061 IdentifierInfo *Id, NamespaceDecl *PrevDecl) 2065 setPreviousDecl(PrevDecl); 85 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, CXXRecordDecl *PrevDecl) argument 94 Create(const ASTContext &C, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, CXXRecordDecl* PrevDecl, bool DelayTypeCreation) argument [all...] |
H A D | DeclTemplate.cpp | 329 ClassTemplateDecl *PrevDecl) { 333 New->setPreviousDecl(PrevDecl); 710 ClassTemplateSpecializationDecl *PrevDecl) 713 PrevDecl), 733 ClassTemplateSpecializationDecl *PrevDecl) { 737 SpecializedTemplate, Args, PrevDecl); 740 Context.getTypeDeclType(Result, PrevDecl); 823 ClassTemplatePartialSpecializationDecl *PrevDecl) 828 Args, PrevDecl), 844 ClassTemplatePartialSpecializationDecl *PrevDecl) { 323 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl, ClassTemplateDecl *PrevDecl) argument 705 ClassTemplateSpecializationDecl(ASTContext &Context, Kind DK, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, ClassTemplateDecl *SpecializedTemplate, ArrayRef<TemplateArgument> Args, ClassTemplateSpecializationDecl *PrevDecl) argument 727 Create(ASTContext &Context, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, ClassTemplateDecl *SpecializedTemplate, ArrayRef<TemplateArgument> Args, ClassTemplateSpecializationDecl *PrevDecl) argument 815 ClassTemplatePartialSpecializationDecl(ASTContext &Context, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, TemplateParameterList *Params, ClassTemplateDecl *SpecializedTemplate, ArrayRef<TemplateArgument> Args, const ASTTemplateArgumentListInfo *ArgInfos, ClassTemplatePartialSpecializationDecl *PrevDecl) argument 837 Create(ASTContext &Context, TagKind TK,DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, TemplateParameterList *Params, ClassTemplateDecl *SpecializedTemplate, ArrayRef<TemplateArgument> Args, const TemplateArgumentListInfo &ArgInfos, QualType CanonInjectedType, ClassTemplatePartialSpecializationDecl *PrevDecl) argument [all...] |
H A D | DeclBase.cpp | 1077 Decl *PrevDecl = nullptr; local 1083 if (PrevDecl) 1084 PrevDecl->NextInContextAndBits.setPointer(D); 1088 PrevDecl = D; 1091 return std::make_pair(FirstNewDecl, PrevDecl);
|
H A D | DeclObjC.cpp | 1389 ObjCInterfaceDecl *PrevDecl, 1393 ObjCInterfaceDecl(C, DC, atLoc, Id, typeParamList, ClassLoc, PrevDecl, 1396 C.getObjCInterfaceType(Result, PrevDecl); 1416 ObjCInterfaceDecl *PrevDecl, 1421 setPreviousDecl(PrevDecl); 1424 if (PrevDecl) 1425 Data = PrevDecl->Data; 1777 ObjCProtocolDecl *PrevDecl) 1780 setPreviousDecl(PrevDecl); 1781 if (PrevDecl) 1384 Create(const ASTContext &C, DeclContext *DC, SourceLocation atLoc, IdentifierInfo *Id, ObjCTypeParamList *typeParamList, ObjCInterfaceDecl *PrevDecl, SourceLocation ClassLoc, bool isInternal) argument 1412 ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc, IdentifierInfo *Id, ObjCTypeParamList *typeParamList, SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, bool IsInternal) argument 1774 ObjCProtocolDecl(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, SourceLocation atStartLoc, ObjCProtocolDecl *PrevDecl) argument 1785 Create(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, SourceLocation atStartLoc, ObjCProtocolDecl *PrevDecl) argument [all...] |
H A D | Decl.cpp | 2662 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { argument 2663 redeclarable_base::setPreviousDecl(PrevDecl); 2667 = PrevDecl? PrevDecl->getDescribedFunctionTemplate() : nullptr; 2668 assert((!PrevDecl || PrevFunTmpl) && "Function/function template mismatch"); 2672 if (PrevDecl && PrevDecl->IsInline) 3629 EnumDecl *PrevDecl, bool IsScoped, 3631 auto *Enum = new (C, DC) EnumDecl(C, DC, StartLoc, IdLoc, Id, PrevDecl, 3634 C.getTypeDeclType(Enum, PrevDecl); 3626 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, bool IsScoped, bool IsScopedUsingClassTag, bool IsFixed) argument 3715 RecordDecl(Kind DK, TagKind TK, const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, RecordDecl *PrevDecl) argument 3728 Create(const ASTContext &C, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, RecordDecl* PrevDecl) argument [all...] |
H A D | ASTImporter.cpp | 2508 /*PrevDecl=*/nullptr); 2844 CXXRecordDecl *const PrevDecl = nullptr; local 2848 Name.getAsIdentifierInfo(), PrevDecl, DelayTypeCreation); 3848 /*PrevDecl=*/nullptr); 4048 /*PrevDecl=*/nullptr, Loc, 4485 /*PrevDecl=*/nullptr); 4572 /*PrevDecl=*/nullptr);
|
/external/clang/lib/Sema/ |
H A D | Sema.cpp | 723 Decl *PrevDecl = LookupSingleName(TUScope, WeakID.first, SourceLocation(), local 725 if (PrevDecl != nullptr && 726 !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl)))
|
H A D | SemaAccess.cpp | 1105 NamedDecl *PrevDecl = nullptr; local 1107 PrevDecl = VD->getPreviousDecl(); 1109 PrevDecl = FD->getPreviousDecl(); 1111 PrevDecl = TND->getPreviousDecl(); 1115 PrevDecl = TD->getPreviousDecl(); 1117 if (!PrevDecl) break; 1118 D = PrevDecl;
|
H A D | SemaTemplateInstantiateDecl.cpp | 885 EnumDecl *PrevDecl = nullptr; local 891 PrevDecl = cast<EnumDecl>(Prev); 896 PrevDecl, D->isScoped(), 1061 CXXRecordDecl *PrevDecl = nullptr; local 1069 PrevDecl = PrevClassTemplate->getTemplatedDecl(); 1099 PrevDecl = PrevClassTemplate->getTemplatedDecl(); 1159 Pattern->getIdentifier(), PrevDecl, 1377 CXXRecordDecl *PrevDecl = nullptr; local 1379 PrevDecl = cast<CXXRecordDecl>(Owner); 1385 PrevDecl 2708 ClassTemplateSpecializationDecl *PrevDecl = local 2985 ClassTemplateSpecializationDecl *PrevDecl local 3107 VarTemplateSpecializationDecl *PrevDecl = local [all...] |
H A D | SemaDeclObjC.cpp | 475 NamedDecl *PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc, local 478 if (!PrevDecl) { 488 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>(); 492 if (declaresSameEntity(PrevDecl, IDecl)) { 498 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); 507 if (PrevDecl && !SuperClassDecl) { 511 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { 534 Diag(PrevDecl->getLocation(), diag::note_previous_definition); 538 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { 912 NamedDecl *PrevDecl local 1134 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, local 1689 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentPair.second, local 1878 NamedDecl *PrevDecl local 2955 NamedDecl *PrevDecl local 4343 NamedDecl *PrevDecl = R.getFoundDecl(); local [all...] |
H A D | SemaTemplate.cpp | 460 /// that the template parameter 'PrevDecl' is being shadowed by a new 463 void Sema::DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl) { argument 464 assert(PrevDecl->isTemplateParameter() && "Not a template parameter"); 474 << cast<NamedDecl>(PrevDecl)->getDeclName(); 475 Diag(PrevDecl->getLocation(), diag::note_template_param_here); 547 NamedDecl *PrevDecl = SemaRef.LookupSingleName( local 549 if (PrevDecl && PrevDecl->isTemplateParameter()) 550 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl); 929 NamedDecl *PrevDecl 2602 VarTemplateSpecializationDecl *PrevDecl = nullptr; local 5886 CheckTemplateSpecializationScope(Sema &S, NamedDecl *Specialized, NamedDecl *PrevDecl, SourceLocation Loc, bool IsPartialSpecialization) argument 6330 ClassTemplateSpecializationDecl *PrevDecl = nullptr; local 6635 CheckSpecializationInstantiationRedecl(SourceLocation NewLoc, TemplateSpecializationKind NewTSK, NamedDecl *PrevDecl, TemplateSpecializationKind PrevTSK, SourceLocation PrevPointOfInstantiation, bool &HasNoEffect) argument 7431 ClassTemplateSpecializationDecl *PrevDecl local 7665 CXXRecordDecl *PrevDecl local 8043 FunctionDecl *PrevDecl = Specialization->getPreviousDecl(); local [all...] |
H A D | SemaDecl.cpp | 1223 /// PrevDecl with another declaration. 4099 NamedDecl *PrevDecl = R.getRepresentativeDecl()->getUnderlyingDecl(); 4100 assert(PrevDecl && "Expected a non-null Decl"); 4102 if (!SemaRef.isDeclInScope(PrevDecl, Owner, S)) 4107 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration); 5427 /// previous declaration (PrevDecl) that is not in the scope where a 5433 /// \param PrevDecl the previous declaration found by name 5439 /// \returns true if PrevDecl is an out-of-scope previous declaration 5442 isOutOfScopePreviousDeclaration(NamedDecl *PrevDecl, DeclContext *DC, argument 5444 if (!PrevDecl) 10857 NamedDecl *PrevDecl = R.getFoundDecl(); local 12597 NamedDecl *PrevDecl = Previous.getFoundDecl(); local 12893 TagDecl *PrevDecl = nullptr; local 13388 NamedDecl *PrevDecl = nullptr; local 13452 CheckFieldDecl(DeclarationName Name, QualType T, TypeSourceInfo *TInfo, RecordDecl *Record, SourceLocation Loc, bool Mutable, Expr *BitWidth, InClassInitStyle InitStyle, SourceLocation TSSL, AccessSpecifier AS, NamedDecl *PrevDecl, Declarator *D) argument 13776 NamedDecl *PrevDecl = LookupSingleName(S, II, Loc, LookupMemberName, local 14519 NamedDecl *PrevDecl = LookupSingleName(S, Id, IdLoc, LookupOrdinaryName, local 15182 NamedDecl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, local 15205 Decl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, LookupOrdinaryName); local 15221 Decl *PrevDecl = LookupSingleName(TUScope, AliasName, AliasNameLoc, local [all...] |
H A D | SemaDeclCXX.cpp | 7363 NamedDecl *PrevDecl = local 7365 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); 7372 } else if (PrevDecl) { 7376 Diag(PrevDecl->getLocation(), diag::note_previous_definition); 7515 /*PrevDecl=*/nullptr); 8044 UsingShadowDecl *PrevDecl) { 8073 Shadow->setPreviousDecl(PrevDecl); 8461 UsingShadowDecl *PrevDecl = nullptr; local 8462 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) 8463 BuildUsingShadowDecl(S, UD, *I, PrevDecl); 8041 BuildUsingShadowDecl(Scope *S, UsingDecl *UD, NamedDecl *Orig, UsingShadowDecl *PrevDecl) argument 8935 NamedDecl *PrevDecl = PrevR.getRepresentativeDecl(); local 13986 NamedDecl *PrevDecl = nullptr; local [all...] |