Searched refs:PrevDecl (Results 1 - 19 of 19) sorted by relevance

/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaTemplate.cpp450 /// that the template parameter 'PrevDecl' is being shadowed by a new
453 void Sema::DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl) { argument
454 assert(PrevDecl->isTemplateParameter() && "Not a template parameter");
464 << cast<NamedDecl>(PrevDecl)->getDeclName();
465 Diag(PrevDecl->getLocation(), diag::note_template_param_here);
538 NamedDecl *PrevDecl = SemaRef.LookupSingleName( local
540 if (PrevDecl && PrevDecl->isTemplateParameter())
541 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl);
909 NamedDecl *PrevDecl
2429 VarTemplateSpecializationDecl *PrevDecl = 0; local
5525 CheckTemplateSpecializationScope(Sema &S, NamedDecl *Specialized, NamedDecl *PrevDecl, SourceLocation Loc, bool IsPartialSpecialization) argument
5923 ClassTemplateSpecializationDecl *PrevDecl = 0; local
6260 CheckSpecializationInstantiationRedecl(SourceLocation NewLoc, TemplateSpecializationKind NewTSK, NamedDecl *PrevDecl, TemplateSpecializationKind PrevTSK, SourceLocation PrevPointOfInstantiation, bool &HasNoEffect) argument
6955 ClassTemplateSpecializationDecl *PrevDecl local
7152 CXXRecordDecl *PrevDecl local
7498 FunctionDecl *PrevDecl = Specialization->getPreviousDecl(); local
[all...]
H A DSemaDeclObjC.cpp452 NamedDecl *PrevDecl = LookupSingleName(TUScope, ClassName, ClassLoc, local
455 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
457 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
461 ObjCInterfaceDecl* PrevIDecl = dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
504 PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc,
507 if (!PrevDecl) {
516 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>();
520 if (declaresSameEntity(PrevDecl, IDecl)) {
526 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl);
702 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, local
835 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentList[i].second, local
992 NamedDecl *PrevDecl local
1952 NamedDecl *PrevDecl local
3149 NamedDecl *PrevDecl = R.getFoundDecl(); local
[all...]
H A DSemaTemplateInstantiateDecl.cpp617 EnumDecl *PrevDecl = 0; local
623 PrevDecl = cast<EnumDecl>(Prev);
628 PrevDecl, D->isScoped(),
779 CXXRecordDecl *PrevDecl = 0; local
787 PrevDecl = PrevClassTemplate->getTemplatedDecl();
817 PrevDecl = PrevClassTemplate->getTemplatedDecl();
881 Pattern->getIdentifier(), PrevDecl,
1097 CXXRecordDecl *PrevDecl = 0; local
1099 PrevDecl = cast<CXXRecordDecl>(Owner);
1105 PrevDecl
2365 ClassTemplateSpecializationDecl *PrevDecl = local
2654 ClassTemplateSpecializationDecl *PrevDecl local
2778 VarTemplateSpecializationDecl *PrevDecl = local
[all...]
H A DSemaDecl.cpp1002 /// PrevDecl with another declaration.
3433 NamedDecl *PrevDecl = R.getRepresentativeDecl()->getUnderlyingDecl();
3434 assert(PrevDecl && "Expected a non-null Decl");
3436 if (!SemaRef.isDeclInScope(PrevDecl, Owner, S))
3440 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
4702 /// previous declaration (PrevDecl) that is not in the scope where a
4708 /// \param PrevDecl the previous declaration found by name
4714 /// \returns true if PrevDecl is an out-of-scope previous declaration
4717 isOutOfScopePreviousDeclaration(NamedDecl *PrevDecl, DeclContext *DC, argument
4719 if (!PrevDecl)
5100 NamedDecl *PrevDecl = 0; local
9152 NamedDecl *PrevDecl = R.getFoundDecl(); local
10637 NamedDecl *PrevDecl = (*Previous.begin())->getUnderlyingDecl(); local
10872 TagDecl *PrevDecl = 0; local
11336 NamedDecl *PrevDecl = 0; local
11400 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
11713 NamedDecl *PrevDecl = LookupSingleName(S, II, Loc, LookupMemberName, local
12430 NamedDecl *PrevDecl = LookupSingleName(S, Id, IdLoc, LookupOrdinaryName, local
12954 Decl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, local
12969 Decl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, LookupOrdinaryName); local
12985 Decl *PrevDecl = LookupSingleName(TUScope, AliasName, AliasNameLoc, local
[all...]
H A DSemaAccess.cpp1113 NamedDecl *PrevDecl = 0; local
1115 PrevDecl = VD->getPreviousDecl();
1117 PrevDecl = FD->getPreviousDecl();
1119 PrevDecl = TND->getPreviousDecl();
1123 PrevDecl = TD->getPreviousDecl();
1125 if (!PrevDecl) break;
1126 D = PrevDecl;
H A DSemaDeclCXX.cpp6521 NamedDecl *PrevDecl = 0; local
6526 PrevDecl = *I;
6531 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl);
6538 } else if (PrevDecl) {
6542 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
6682 /*PrevDecl=*/0);
7192 UsingShadowDecl *PrevDecl) {
7210 Shadow->setPreviousDecl(PrevDecl);
7475 UsingShadowDecl *PrevDecl = 0; local
7476 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl))
7189 BuildUsingShadowDecl(Scope *S, UsingDecl *UD, NamedDecl *Orig, UsingShadowDecl *PrevDecl) argument
7870 NamedDecl *PrevDecl local
12774 NamedDecl *PrevDecl = 0; local
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/AST/
H A DDeclTemplate.cpp309 ClassTemplateDecl *PrevDecl) {
312 New->setPreviousDecl(PrevDecl);
712 ClassTemplateSpecializationDecl *PrevDecl)
715 PrevDecl),
736 ClassTemplateSpecializationDecl *PrevDecl) {
743 PrevDecl);
746 Context.getTypeDeclType(Result, PrevDecl);
832 ClassTemplatePartialSpecializationDecl *PrevDecl)
837 Args, NumArgs, PrevDecl),
854 ClassTemplatePartialSpecializationDecl *PrevDecl) {
303 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl, ClassTemplateDecl *PrevDecl) argument
706 ClassTemplateSpecializationDecl(ASTContext &Context, Kind DK, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, ClassTemplateDecl *SpecializedTemplate, const TemplateArgument *Args, unsigned NumArgs, ClassTemplateSpecializationDecl *PrevDecl) argument
729 Create(ASTContext &Context, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, ClassTemplateDecl *SpecializedTemplate, const TemplateArgument *Args, unsigned NumArgs, ClassTemplateSpecializationDecl *PrevDecl) argument
823 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
846 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
972 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, TemplateParameterList *Params, NamedDecl *Decl, VarTemplateDecl *PrevDecl) argument
[all...]
H A DDeclCXX.cpp88 IdentifierInfo *Id, CXXRecordDecl *PrevDecl)
89 : RecordDecl(K, TK, DC, StartLoc, IdLoc, Id, PrevDecl),
90 DefinitionData(PrevDecl ? PrevDecl->DefinitionData : 0),
96 CXXRecordDecl* PrevDecl,
99 Id, PrevDecl);
104 C.getTypeDeclType(R, PrevDecl);
121 C.getTypeDeclType(R, /*PrevDecl=*/0);
1930 NamespaceDecl *PrevDecl)
1934 setPreviousDecl(PrevDecl);
86 CXXRecordDecl(Kind K, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, CXXRecordDecl *PrevDecl) argument
93 Create(const ASTContext &C, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, CXXRecordDecl* PrevDecl, bool DelayTypeCreation) argument
1927 NamespaceDecl(DeclContext *DC, bool Inline, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, NamespaceDecl *PrevDecl) argument
1940 Create(ASTContext &C, DeclContext *DC, bool Inline, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, NamespaceDecl *PrevDecl) argument
[all...]
H A DDeclObjC.cpp1055 ObjCInterfaceDecl *PrevDecl,
1059 PrevDecl, isInternal);
1061 C.getObjCInterfaceType(Result, PrevDecl);
1077 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl,
1082 setPreviousDecl(PrevDecl);
1085 if (PrevDecl)
1086 Data = PrevDecl->Data;
1419 ObjCProtocolDecl *PrevDecl)
1422 setPreviousDecl(PrevDecl);
1423 if (PrevDecl)
1051 Create(const ASTContext &C, DeclContext *DC, SourceLocation atLoc, IdentifierInfo *Id, ObjCInterfaceDecl *PrevDecl, SourceLocation ClassLoc, bool isInternal) argument
1076 ObjCInterfaceDecl(DeclContext *DC, SourceLocation atLoc, IdentifierInfo *Id, SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, bool isInternal) argument
1416 ObjCProtocolDecl(DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, SourceLocation atStartLoc, ObjCProtocolDecl *PrevDecl) argument
1427 Create(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, SourceLocation atStartLoc, ObjCProtocolDecl *PrevDecl) argument
[all...]
H A DDeclBase.cpp922 Decl *PrevDecl = 0; local
928 if (PrevDecl)
929 PrevDecl->NextInContextAndBits.setPointer(D);
933 PrevDecl = D;
936 return std::make_pair(FirstNewDecl, PrevDecl);
H A DDecl.cpp2440 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { argument
2441 redeclarable_base::setPreviousDecl(PrevDecl);
2445 = PrevDecl? PrevDecl->getDescribedFunctionTemplate() : 0;
2446 assert((!PrevDecl || PrevFunTmpl) && "Function/function template mismatch");
2450 if (PrevDecl && PrevDecl->IsInline)
3276 EnumDecl *PrevDecl, bool IsScoped,
3278 EnumDecl *Enum = new (C) EnumDecl(DC, StartLoc, IdLoc, Id, PrevDecl,
3281 C.getTypeDeclType(Enum, PrevDecl);
3273 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, bool IsScoped, bool IsScopedUsingClassTag, bool IsFixed) argument
3341 RecordDecl(Kind DK, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, RecordDecl *PrevDecl) argument
3353 Create(const ASTContext &C, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, RecordDecl* PrevDecl) argument
[all...]
H A DASTContext.cpp2907 } else if (CXXRecordDecl *PrevDecl = Decl->getPreviousDecl()) {
2908 assert(PrevDecl->TypeForDecl && "previous declaration has no type");
2909 Decl->TypeForDecl = PrevDecl->TypeForDecl;
2969 if (const RecordDecl *PrevDecl = Decl->getPreviousDecl())
2970 if (PrevDecl->TypeForDecl)
2971 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0);
2982 if (const EnumDecl *PrevDecl = Decl->getPreviousDecl())
2983 if (PrevDecl->TypeForDecl)
2984 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0);
3543 ObjCInterfaceDecl *PrevDecl) cons
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/AST/
H A DRedeclarable.h107 /// \brief Set the previous declaration. If PrevDecl is NULL, set this as the
109 void setPreviousDecl(decl_type *PrevDecl);
H A DDecl.h352 NamespaceDecl *PrevDecl);
369 NamespaceDecl *PrevDecl);
1828 void setPreviousDeclaration(FunctionDecl * PrevDecl);
2563 IdentifierInfo *Id, TagDecl *PrevDecl, SourceLocation StartL)
2571 setPreviousDecl(PrevDecl);
2806 IdentifierInfo *Id, EnumDecl *PrevDecl,
2808 : TagDecl(Enum, TTK_Enum, DC, IdLoc, Id, PrevDecl, StartLoc),
2850 IdentifierInfo *Id, EnumDecl *PrevDecl,
3029 IdentifierInfo *Id, RecordDecl *PrevDecl);
3034 IdentifierInfo *Id, RecordDecl* PrevDecl
[all...]
H A DASTContext.h1044 const TypeDecl *PrevDecl = 0) const {
1048 if (PrevDecl) {
1049 assert(PrevDecl->TypeForDecl && "previous decl has no TypeForDecl");
1050 Decl->TypeForDecl = PrevDecl->TypeForDecl;
1051 return QualType(PrevDecl->TypeForDecl, 0);
1124 ObjCInterfaceDecl *PrevDecl = 0) const;
H A DDeclTemplate.h1432 ClassTemplateSpecializationDecl *PrevDecl);
1443 ClassTemplateSpecializationDecl *PrevDecl);
1672 ClassTemplatePartialSpecializationDecl *PrevDecl);
1688 ClassTemplatePartialSpecializationDecl *PrevDecl);
1867 ClassTemplateDecl *PrevDecl);
2712 VarTemplateDecl *PrevDecl);
H A DDeclObjC.h678 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl,
713 ObjCInterfaceDecl *PrevDecl,
1389 ObjCProtocolDecl *PrevDecl);
1409 ObjCProtocolDecl *PrevDecl);
H A DDeclCXX.h615 IdentifierInfo *Id, CXXRecordDecl *PrevDecl);
667 IdentifierInfo *Id, CXXRecordDecl* PrevDecl=0,
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/Sema/
H A DSema.h1708 AccessSpecifier AS, NamedDecl *PrevDecl,
3676 UsingShadowDecl *PrevDecl);
5067 void DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl);
5223 NamedDecl *PrevDecl,

Completed in 340 milliseconds