Searched defs:PrevDecl (Results 1 - 11 of 11) sorted by relevance

/external/clang/lib/AST/
H A DDeclTemplate.cpp308 ClassTemplateDecl *PrevDecl) {
312 New->setPreviousDecl(PrevDecl);
696 ClassTemplateSpecializationDecl *PrevDecl)
699 PrevDecl),
720 ClassTemplateSpecializationDecl *PrevDecl) {
724 SpecializedTemplate, Args, NumArgs, PrevDecl);
727 Context.getTypeDeclType(Result, PrevDecl);
811 ClassTemplatePartialSpecializationDecl *PrevDecl)
816 Args, NumArgs, PrevDecl),
833 ClassTemplatePartialSpecializationDecl *PrevDecl) {
302 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl, ClassTemplateDecl *PrevDecl) argument
690 ClassTemplateSpecializationDecl(ASTContext &Context, Kind DK, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, ClassTemplateDecl *SpecializedTemplate, const TemplateArgument *Args, unsigned NumArgs, ClassTemplateSpecializationDecl *PrevDecl) argument
713 Create(ASTContext &Context, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, ClassTemplateDecl *SpecializedTemplate, const TemplateArgument *Args, unsigned NumArgs, ClassTemplateSpecializationDecl *PrevDecl) argument
802 ClassTemplatePartialSpecializationDecl(ASTContext &Context, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, TemplateParameterList *Params, ClassTemplateDecl *SpecializedTemplate, const TemplateArgument *Args, unsigned NumArgs, const ASTTemplateArgumentListInfo *ArgInfos, ClassTemplatePartialSpecializationDecl *PrevDecl) argument
825 Create(ASTContext &Context, TagKind TK,DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, TemplateParameterList *Params, ClassTemplateDecl *SpecializedTemplate, const TemplateArgument *Args, unsigned NumArgs, const TemplateArgumentListInfo &ArgInfos, QualType CanonInjectedType, ClassTemplatePartialSpecializationDecl *PrevDecl) argument
[all...]
H A DDeclBase.cpp967 Decl *PrevDecl = nullptr; local
973 if (PrevDecl)
974 PrevDecl->NextInContextAndBits.setPointer(D);
978 PrevDecl = D;
981 return std::make_pair(FirstNewDecl, PrevDecl);
H A DDeclCXX.cpp89 CXXRecordDecl *PrevDecl)
90 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl),
91 DefinitionData(PrevDecl ? PrevDecl->DefinitionData
98 CXXRecordDecl* PrevDecl,
101 IdLoc, Id, PrevDecl);
106 C.getTypeDeclType(R, PrevDecl);
124 C.getTypeDeclType(R, /*PrevDecl=*/nullptr);
1938 IdentifierInfo *Id, NamespaceDecl *PrevDecl)
1942 setPreviousDecl(PrevDecl);
86 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, CXXRecordDecl *PrevDecl) argument
95 Create(const ASTContext &C, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, CXXRecordDecl* PrevDecl, bool DelayTypeCreation) argument
1936 NamespaceDecl(ASTContext &C, DeclContext *DC, bool Inline, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, NamespaceDecl *PrevDecl) argument
1948 Create(ASTContext &C, DeclContext *DC, bool Inline, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, NamespaceDecl *PrevDecl) argument
[all...]
H A DDeclObjC.cpp1133 ObjCInterfaceDecl *PrevDecl,
1137 ObjCInterfaceDecl(C, DC, atLoc, Id, ClassLoc, PrevDecl, isInternal);
1139 C.getObjCInterfaceType(Result, PrevDecl);
1157 ObjCInterfaceDecl *PrevDecl,
1161 setPreviousDecl(PrevDecl);
1164 if (PrevDecl)
1165 Data = PrevDecl->Data;
1493 ObjCProtocolDecl *PrevDecl)
1496 setPreviousDecl(PrevDecl);
1497 if (PrevDecl)
1129 Create(const ASTContext &C, DeclContext *DC, SourceLocation atLoc, IdentifierInfo *Id, ObjCInterfaceDecl *PrevDecl, SourceLocation ClassLoc, bool isInternal) argument
1154 ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc, IdentifierInfo *Id, SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, bool IsInternal) argument
1490 ObjCProtocolDecl(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, SourceLocation atStartLoc, ObjCProtocolDecl *PrevDecl) argument
1501 Create(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, SourceLocation atStartLoc, ObjCProtocolDecl *PrevDecl) argument
[all...]
H A DDecl.cpp2515 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { argument
2516 redeclarable_base::setPreviousDecl(PrevDecl);
2520 = PrevDecl? PrevDecl->getDescribedFunctionTemplate() : nullptr;
2521 assert((!PrevDecl || PrevFunTmpl) && "Function/function template mismatch");
2525 if (PrevDecl && PrevDecl->IsInline)
3415 EnumDecl *PrevDecl, bool IsScoped,
3417 EnumDecl *Enum = new (C, DC) EnumDecl(C, DC, StartLoc, IdLoc, Id, PrevDecl,
3421 C.getTypeDeclType(Enum, PrevDecl);
3412 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, bool IsScoped, bool IsScopedUsingClassTag, bool IsFixed) argument
3487 RecordDecl(Kind DK, TagKind TK, const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, RecordDecl *PrevDecl) argument
3500 Create(const ASTContext &C, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, RecordDecl* PrevDecl) argument
[all...]
/external/clang/lib/Sema/
H A DSemaAccess.cpp1105 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 DSemaTemplateInstantiateDecl.cpp661 EnumDecl *PrevDecl = nullptr; local
667 PrevDecl = cast<EnumDecl>(Prev);
672 PrevDecl, D->isScoped(),
823 CXXRecordDecl *PrevDecl = nullptr; local
831 PrevDecl = PrevClassTemplate->getTemplatedDecl();
861 PrevDecl = PrevClassTemplate->getTemplatedDecl();
921 Pattern->getIdentifier(), PrevDecl,
1138 CXXRecordDecl *PrevDecl = nullptr; local
1140 PrevDecl = cast<CXXRecordDecl>(Owner);
1146 PrevDecl
2385 ClassTemplateSpecializationDecl *PrevDecl = local
2672 ClassTemplateSpecializationDecl *PrevDecl local
2796 VarTemplateSpecializationDecl *PrevDecl = local
[all...]
H A DSemaDeclObjC.cpp465 NamedDecl *PrevDecl = LookupSingleName(TUScope, ClassName, ClassLoc, local
468 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
470 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
474 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
517 PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc,
520 if (!PrevDecl) {
529 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>();
533 if (declaresSameEntity(PrevDecl, IDecl)) {
539 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
714 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, local
865 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentList[i].second, local
1022 NamedDecl *PrevDecl local
2026 NamedDecl *PrevDecl local
3106 NamedDecl *PrevDecl = R.getFoundDecl(); local
[all...]
H A DSemaTemplate.cpp444 /// that the template parameter 'PrevDecl' is being shadowed by a new
447 void Sema::DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl) { argument
448 assert(PrevDecl->isTemplateParameter() && "Not a template parameter");
458 << cast<NamedDecl>(PrevDecl)->getDeclName();
459 Diag(PrevDecl->getLocation(), diag::note_template_param_here);
532 NamedDecl *PrevDecl = SemaRef.LookupSingleName( local
534 if (PrevDecl && PrevDecl->isTemplateParameter())
535 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl);
904 NamedDecl *PrevDecl
2498 VarTemplateSpecializationDecl *PrevDecl = nullptr; local
5641 CheckTemplateSpecializationScope(Sema &S, NamedDecl *Specialized, NamedDecl *PrevDecl, SourceLocation Loc, bool IsPartialSpecialization) argument
6083 ClassTemplateSpecializationDecl *PrevDecl = nullptr; local
6396 CheckSpecializationInstantiationRedecl(SourceLocation NewLoc, TemplateSpecializationKind NewTSK, NamedDecl *PrevDecl, TemplateSpecializationKind PrevTSK, SourceLocation PrevPointOfInstantiation, bool &HasNoEffect) argument
7098 ClassTemplateSpecializationDecl *PrevDecl local
7296 CXXRecordDecl *PrevDecl local
7633 FunctionDecl *PrevDecl = Specialization->getPreviousDecl(); local
[all...]
H A DSemaDecl.cpp1118 /// PrevDecl with another declaration.
3554 NamedDecl *PrevDecl = R.getRepresentativeDecl()->getUnderlyingDecl();
3555 assert(PrevDecl && "Expected a non-null Decl");
3557 if (!SemaRef.isDeclInScope(PrevDecl, Owner, S))
3561 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
4865 /// previous declaration (PrevDecl) that is not in the scope where a
4871 /// \param PrevDecl the previous declaration found by name
4877 /// \returns true if PrevDecl is an out-of-scope previous declaration
4880 isOutOfScopePreviousDeclaration(NamedDecl *PrevDecl, DeclContext *DC, argument
4882 if (!PrevDecl)
9499 NamedDecl *PrevDecl = R.getFoundDecl(); local
11033 NamedDecl *PrevDecl = Previous.getFoundDecl(); local
11282 TagDecl *PrevDecl = nullptr; local
11763 NamedDecl *PrevDecl = nullptr; local
11827 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
12147 NamedDecl *PrevDecl = LookupSingleName(S, II, Loc, LookupMemberName, local
12866 NamedDecl *PrevDecl = LookupSingleName(S, Id, IdLoc, LookupOrdinaryName, local
13429 Decl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, local
13444 Decl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, LookupOrdinaryName); local
13460 Decl *PrevDecl = LookupSingleName(TUScope, AliasName, AliasNameLoc, local
[all...]
H A DSemaDeclCXX.cpp6729 NamedDecl *PrevDecl = nullptr; local
6734 PrevDecl = *I;
6739 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl);
6746 } else if (PrevDecl) {
6750 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
6890 /*PrevDecl=*/nullptr);
7396 UsingShadowDecl *PrevDecl) {
7414 Shadow->setPreviousDecl(PrevDecl);
7763 UsingShadowDecl *PrevDecl = nullptr; local
7764 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl))
7393 BuildUsingShadowDecl(Scope *S, UsingDecl *UD, NamedDecl *Orig, UsingShadowDecl *PrevDecl) argument
8198 NamedDecl *PrevDecl local
13094 NamedDecl *PrevDecl = nullptr; local
[all...]

Completed in 827 milliseconds