/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaTemplate.cpp | 878 /// that the template parameter 'PrevDecl' is being shadowed by a new 881 void Sema::DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl) { argument 882 assert(PrevDecl->isTemplateParameter() && "Not a template parameter"); 891 Diag(Loc, DiagId) << cast<NamedDecl>(PrevDecl)->getDeclName(); 892 Diag(PrevDecl->getLocation(), diag::note_template_param_here); 964 NamedDecl *PrevDecl = SemaRef.LookupSingleName( local 966 if (PrevDecl && PrevDecl->isTemplateParameter()) 967 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl); 1653 NamedDecl *PrevDecl 4225 VarTemplateSpecializationDecl *PrevDecl = nullptr; local 7849 CheckTemplateSpecializationScope(Sema &S, NamedDecl *Specialized, NamedDecl *PrevDecl, SourceLocation Loc, bool IsPartialSpecialization) argument 8211 ClassTemplateSpecializationDecl *PrevDecl = nullptr; local 8545 CheckSpecializationInstantiationRedecl(SourceLocation NewLoc, TemplateSpecializationKind NewTSK, NamedDecl *PrevDecl, TemplateSpecializationKind PrevTSK, SourceLocation PrevPointOfInstantiation, bool &HasNoEffect) argument 9444 ClassTemplateSpecializationDecl *PrevDecl local 9698 CXXRecordDecl *PrevDecl local 10082 FunctionDecl *PrevDecl = Specialization->getPreviousDecl(); local [all...] |
H A D | SemaDeclObjC.cpp | 552 NamedDecl *PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc, local 555 if (!PrevDecl) { 564 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>(); 568 if (declaresSameEntity(PrevDecl, IDecl)) { 574 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); 583 if (PrevDecl && !SuperClassDecl) { 587 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { 610 Diag(PrevDecl->getLocation(), diag::note_previous_definition); 614 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { 985 NamedDecl *PrevDecl local 1214 ObjCProtocolDecl *PrevDecl = LookupProtocol(ProtocolName, ProtocolLoc, local 1775 ObjCProtocolDecl *PrevDecl = LookupProtocol(Ident, IdentPair.second, local 1967 NamedDecl *PrevDecl local 3044 NamedDecl *PrevDecl local 4701 NamedDecl *PrevDecl = R.getFoundDecl(); local [all...] |
H A D | SemaDecl.cpp | 1422 /// PrevDecl with another declaration. 4819 NamedDecl *PrevDecl = R.getRepresentativeDecl()->getUnderlyingDecl(); 4820 assert(PrevDecl && "Expected a non-null Decl"); 4822 if (!SemaRef.isDeclInScope(PrevDecl, Owner, S)) 4827 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration); 6179 /// previous declaration (PrevDecl) that is not in the scope where a 6185 /// \param PrevDecl the previous declaration found by name 6191 /// \returns true if PrevDecl is an out-of-scope previous declaration 6194 isOutOfScopePreviousDeclaration(NamedDecl *PrevDecl, DeclContext *DC, argument 6196 if (!PrevDecl) 9955 shouldLinkDependentDeclWithPrevious(Decl *D, Decl *PrevDecl) argument 13434 NamedDecl *PrevDecl = R.getFoundDecl(); local 15016 getNonTagTypeDeclKind(const Decl *PrevDecl, TagTypeKind TTK) argument 15631 NamedDecl *PrevDecl = Previous.getFoundDecl(); local 15928 TagDecl *PrevDecl = nullptr; local 16449 NamedDecl *PrevDecl = nullptr; local 16514 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 16872 NamedDecl *PrevDecl = LookupSingleName(S, II, Loc, LookupMemberName, local 17660 NamedDecl *PrevDecl = R.getAsSingle<NamedDecl>(); local 18150 NamedDecl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, local 18175 Decl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, LookupOrdinaryName); local 18191 Decl *PrevDecl = LookupSingleName(TUScope, AliasName, AliasNameLoc, local [all...] |
H A D | SemaTemplateInstantiateDecl.cpp | 1188 EnumDecl *PrevDecl = nullptr; local 1194 PrevDecl = cast<EnumDecl>(Prev); 1199 D->getLocation(), D->getIdentifier(), PrevDecl, 1360 CXXRecordDecl *PrevDecl = nullptr; local 1368 PrevDecl = PrevClassTemplate->getTemplatedDecl(); 1399 PrevDecl = PrevClassTemplate->getTemplatedDecl(); 1458 Pattern->getLocation(), Pattern->getIdentifier(), PrevDecl, 1681 CXXRecordDecl *PrevDecl = nullptr; local 1683 PrevDecl = cast<CXXRecordDecl>(Owner); 1689 PrevDecl 3471 ClassTemplateSpecializationDecl *PrevDecl = local 3592 VarTemplateSpecializationDecl *PrevDecl = local 3608 VisitVarTemplateSpecializationDecl( VarTemplateDecl *VarTemplate, VarDecl *D, void *InsertPos, const TemplateArgumentListInfo &TemplateArgsInfo, ArrayRef<TemplateArgument> Converted, VarTemplateSpecializationDecl *PrevDecl) argument 3871 ClassTemplateSpecializationDecl *PrevDecl local 3996 VarTemplateSpecializationDecl *PrevDecl = local [all...] |
H A D | SemaAccess.cpp | 1104 NamedDecl *PrevDecl = nullptr; local 1106 PrevDecl = VD->getPreviousDecl(); 1108 PrevDecl = FD->getPreviousDecl(); 1110 PrevDecl = TND->getPreviousDecl(); 1114 PrevDecl = TD->getPreviousDecl(); 1116 if (!PrevDecl) break; 1117 D = PrevDecl;
|
H A D | SemaDeclCXX.cpp | 10827 NamedDecl *PrevDecl = 10829 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); 10836 } else if (PrevDecl) { 10840 Diag(PrevDecl->getLocation(), diag::note_previous_definition); 11138 /*PrevDecl=*/nullptr); 11698 UsingShadowDecl *PrevDecl) { 11727 Shadow->setPreviousDecl(PrevDecl); 12141 UsingShadowDecl *PrevDecl = nullptr; 12142 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) 12143 BuildUsingShadowDecl(S, UD, *I, PrevDecl); [all...] |
H A D | Sema.cpp | 1053 Decl *PrevDecl = LookupSingleName(TUScope, WeakID.first, SourceLocation(), local 1055 if (PrevDecl != nullptr && 1056 !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl)))
|
H A D | SemaOpenMP.cpp | 17730 auto *PrevDecl = cast<OMPDeclareReductionDecl>(Filter.next()); 17732 auto I = UsedAsPrevious.find(PrevDecl); 17734 UsedAsPrevious[PrevDecl] = false; 17735 if (OMPDeclareReductionDecl *D = PrevDecl->getPrevDeclInScope()) 17738 PreviousRedeclTypes[PrevDecl->getType().getCanonicalType()] = 17739 PrevDecl->getLocation(); 17982 auto *PrevDecl = cast<OMPDeclareMapperDecl>(Filter.next()); 17984 auto I = UsedAsPrevious.find(PrevDecl); 17986 UsedAsPrevious[PrevDecl] = false; 17987 if (OMPDeclareMapperDecl *D = PrevDecl [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | DeclCXX.cpp | 124 CXXRecordDecl *PrevDecl) 125 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl), 126 DefinitionData(PrevDecl ? PrevDecl->DefinitionData 132 CXXRecordDecl *PrevDecl, 135 PrevDecl); 140 C.getTypeDeclType(R, PrevDecl); 157 C.getTypeDeclType(R, /*PrevDecl=*/nullptr); 2801 IdentifierInfo *Id, NamespaceDecl *PrevDecl) 2805 setPreviousDecl(PrevDecl); 121 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, CXXRecordDecl *PrevDecl) argument 129 Create(const ASTContext &C, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, CXXRecordDecl *PrevDecl, bool DelayTypeCreation) argument [all...] |
H A D | DeclObjC.cpp | 1485 ObjCInterfaceDecl *PrevDecl, 1489 ObjCInterfaceDecl(C, DC, atLoc, Id, typeParamList, ClassLoc, PrevDecl, 1492 C.getObjCInterfaceType(Result, PrevDecl); 1509 ObjCInterfaceDecl *PrevDecl, 1513 setPreviousDecl(PrevDecl); 1516 if (PrevDecl) 1517 Data = PrevDecl->Data; 1872 ObjCProtocolDecl *PrevDecl) 1875 setPreviousDecl(PrevDecl); 1876 if (PrevDecl) 1480 Create(const ASTContext &C, DeclContext *DC, SourceLocation atLoc, IdentifierInfo *Id, ObjCTypeParamList *typeParamList, ObjCInterfaceDecl *PrevDecl, SourceLocation ClassLoc, bool isInternal) argument 1505 ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc, IdentifierInfo *Id, ObjCTypeParamList *typeParamList, SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, bool IsInternal) argument 1869 ObjCProtocolDecl(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, SourceLocation atStartLoc, ObjCProtocolDecl *PrevDecl) argument 1880 Create(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, SourceLocation atStartLoc, ObjCProtocolDecl *PrevDecl) argument [all...] |
H A D | DeclTemplate.cpp | 869 ClassTemplateSpecializationDecl *PrevDecl) 871 SpecializedTemplate->getIdentifier(), PrevDecl), 890 ClassTemplateSpecializationDecl *PrevDecl) { 894 SpecializedTemplate, Args, PrevDecl); 897 Context.getTypeDeclType(Result, PrevDecl); 1005 ClassTemplatePartialSpecializationDecl *PrevDecl) 1009 SpecializedTemplate, Args, PrevDecl), 1024 ClassTemplatePartialSpecializationDecl *PrevDecl) { 1031 ASTArgInfos, PrevDecl); 864 ClassTemplateSpecializationDecl(ASTContext &Context, Kind DK, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, ClassTemplateDecl *SpecializedTemplate, ArrayRef<TemplateArgument> Args, ClassTemplateSpecializationDecl *PrevDecl) argument 884 Create(ASTContext &Context, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, ClassTemplateDecl *SpecializedTemplate, ArrayRef<TemplateArgument> Args, ClassTemplateSpecializationDecl *PrevDecl) argument 997 ClassTemplatePartialSpecializationDecl(ASTContext &Context, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, TemplateParameterList *Params, ClassTemplateDecl *SpecializedTemplate, ArrayRef<TemplateArgument> Args, const ASTTemplateArgumentListInfo *ArgInfos, ClassTemplatePartialSpecializationDecl *PrevDecl) argument 1017 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
|
H A D | Decl.cpp | 3135 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { argument 3136 redeclarable_base::setPreviousDecl(PrevDecl); 3140 = PrevDecl? PrevDecl->getDescribedFunctionTemplate() : nullptr; 3141 assert((!PrevDecl || PrevFunTmpl) && "Function/function template mismatch"); 3145 if (PrevDecl && PrevDecl->isInlined()) 4115 SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl, 4121 setPreviousDecl(PrevDecl); 4233 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, [all...] |
H A D | DeclBase.cpp | 1310 Decl *PrevDecl = nullptr; local 1315 if (PrevDecl) 1316 PrevDecl->NextInContextAndBits.setPointer(D); 1320 PrevDecl = D; 1323 return std::make_pair(FirstNewDecl, PrevDecl);
|
H A D | DeclPrinter.cpp | 1126 FunctionDecl *PrevDecl = D->getTemplatedDecl(); local 1128 if (PrevDecl->isDefined(Def) && Def != PrevDecl) 1132 if (!PrevDecl->isThisDeclarationADefinition())
|
H A D | ASTImporter.cpp | 2331 /*PrevDecl=*/nullptr)) 2602 EnumDecl *PrevDecl = nullptr; local 2623 PrevDecl = FoundEnum->getMostRecentDecl(); 2653 Loc, Name.getAsIdentifierInfo(), PrevDecl, D->isScoped(), 2703 RecordDecl *PrevDecl = nullptr; local 2759 PrevDecl = FoundRecord->getMostRecentDecl(); 2806 cast_or_null<CXXRecordDecl>(PrevDecl), DelayTypeCreation)) 2814 cast_or_null<CXXRecordDecl>(PrevDecl))) 2884 Name.getAsIdentifierInfo(), PrevDecl)) 4406 /*PrevDecl [all...] |
H A D | ASTContext.cpp | 4348 } else if (CXXRecordDecl *PrevDecl = Decl->getPreviousDecl()) { 4349 assert(PrevDecl->TypeForDecl && "previous declaration has no type"); 4350 Decl->TypeForDecl = PrevDecl->TypeForDecl; 4409 if (const RecordDecl *PrevDecl = Decl->getPreviousDecl()) 4410 if (PrevDecl->TypeForDecl) 4411 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); 4422 if (const EnumDecl *PrevDecl = Decl->getPreviousDecl()) 4423 if (PrevDecl->TypeForDecl) 4424 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); 5238 ObjCInterfaceDecl *PrevDecl) cons [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | Redeclarable.h | 234 /// Set the previous declaration. If PrevDecl is NULL, set this as the 236 void setPreviousDecl(decl_type *PrevDecl);
|
H A D | Decl.h | 515 IdentifierInfo *Id, NamespaceDecl *PrevDecl); 530 NamespaceDecl *PrevDecl); 2392 void setPreviousDeclaration(FunctionDecl * PrevDecl); 3273 SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl, 3538 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, 3610 IdentifierInfo *Id, EnumDecl *PrevDecl, 3801 IdentifierInfo *Id, RecordDecl *PrevDecl); 3806 IdentifierInfo *Id, RecordDecl* PrevDecl = nullptr); 4515 void Redeclarable<decl_type>::setPreviousDecl(decl_type *PrevDecl) { 4521 if (PrevDecl) { [all...] |
H A D | ASTContext.h | 1393 const TypeDecl *PrevDecl = nullptr) const { 1397 if (PrevDecl) { 1398 assert(PrevDecl->TypeForDecl && "previous decl has no TypeForDecl"); 1399 Decl->TypeForDecl = PrevDecl->TypeForDecl; 1400 return QualType(PrevDecl->TypeForDecl, 0); 1490 ObjCInterfaceDecl *PrevDecl = nullptr) const;
|
H A D | DeclObjC.h | 1246 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, 1280 ObjCInterfaceDecl *PrevDecl, 2074 ObjCProtocolDecl *PrevDecl); 2108 ObjCProtocolDecl *PrevDecl);
|
H A D | DeclTemplate.h | 1855 ClassTemplateSpecializationDecl *PrevDecl); 1868 ClassTemplateSpecializationDecl *PrevDecl); 2099 ClassTemplatePartialSpecializationDecl *PrevDecl); 2119 ClassTemplatePartialSpecializationDecl *PrevDecl);
|
H A D | DeclCXX.h | 484 IdentifierInfo *Id, CXXRecordDecl *PrevDecl); 546 CXXRecordDecl *PrevDecl = nullptr,
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Template.h | 606 VarTemplateSpecializationDecl *PrevDecl = nullptr);
|
H A D | Sema.h | 2773 AccessSpecifier AS, NamedDecl *PrevDecl, 5389 UsingShadowDecl *PrevDecl); 7195 void DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl); 7389 NamedDecl *PrevDecl,
|