| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| H A D | SemaTemplate.cpp | 882 void Sema::DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl) { in DiagnoseTemplateParameterShadow() argument 883 assert(PrevDecl->isTemplateParameter() && "Not a template parameter"); in DiagnoseTemplateParameterShadow() 892 Diag(Loc, DiagId) << cast<NamedDecl>(PrevDecl)->getDeclName(); in DiagnoseTemplateParameterShadow() 893 Diag(PrevDecl->getLocation(), diag::note_template_param_here); in DiagnoseTemplateParameterShadow() 964 NamedDecl *PrevDecl = SemaRef.LookupSingleName( in maybeDiagnoseTemplateParameterShadow() local 966 if (PrevDecl && PrevDecl->isTemplateParameter()) in maybeDiagnoseTemplateParameterShadow() 967 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl); in maybeDiagnoseTemplateParameterShadow() 1791 NamedDecl *PrevDecl = nullptr; in CheckClassTemplate() local 1793 PrevDecl = (*Previous.begin())->getUnderlyingDecl(); in CheckClassTemplate() 1795 if (PrevDecl && PrevDecl->isTemplateParameter()) { in CheckClassTemplate() [all …]
|
| H A D | SemaDeclObjC.cpp | 552 NamedDecl *PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc, in ActOnSuperClassOfClassInterface() local 555 if (!PrevDecl) { in ActOnSuperClassOfClassInterface() 564 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>(); in ActOnSuperClassOfClassInterface() 568 if (declaresSameEntity(PrevDecl, IDecl)) { in ActOnSuperClassOfClassInterface() 574 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); in ActOnSuperClassOfClassInterface() 583 if (PrevDecl && !SuperClassDecl) { in ActOnSuperClassOfClassInterface() 587 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { in ActOnSuperClassOfClassInterface() 610 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnSuperClassOfClassInterface() 614 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { in ActOnSuperClassOfClassInterface() 985 NamedDecl *PrevDecl = in ActOnStartClassInterface() local [all …]
|
| H A D | SemaTemplateInstantiateDecl.cpp | 1300 EnumDecl *PrevDecl = nullptr; in VisitEnumDecl() local 1306 PrevDecl = cast<EnumDecl>(Prev); in VisitEnumDecl() 1311 D->getLocation(), D->getIdentifier(), PrevDecl, in VisitEnumDecl() 1472 CXXRecordDecl *PrevDecl = nullptr; in VisitClassTemplateDecl() local 1480 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl() 1511 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl() 1540 Pattern->getLocation(), Pattern->getIdentifier(), PrevDecl, in VisitClassTemplateDecl() 1763 CXXRecordDecl *PrevDecl = nullptr; in VisitCXXRecordDecl() local 1765 PrevDecl = cast<CXXRecordDecl>(Owner); in VisitCXXRecordDecl() 1771 PrevDecl = cast<CXXRecordDecl>(Prev); in VisitCXXRecordDecl() [all …]
|
| H A D | SemaDecl.cpp | 4843 NamedDecl *PrevDecl = R.getRepresentativeDecl()->getUnderlyingDecl(); in CheckAnonMemberRedeclaration() local 4844 assert(PrevDecl && "Expected a non-null Decl"); in CheckAnonMemberRedeclaration() 4846 if (!SemaRef.isDeclInScope(PrevDecl, Owner, S)) in CheckAnonMemberRedeclaration() 4851 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in CheckAnonMemberRedeclaration() 6265 isOutOfScopePreviousDeclaration(NamedDecl *PrevDecl, DeclContext *DC, in isOutOfScopePreviousDeclaration() argument 6267 if (!PrevDecl) in isOutOfScopePreviousDeclaration() 6270 if (!PrevDecl->hasLinkage()) in isOutOfScopePreviousDeclaration() 6285 DeclContext *PrevOuterContext = PrevDecl->getDeclContext(); in isOutOfScopePreviousDeclaration() 10110 bool Sema::shouldLinkDependentDeclWithPrevious(Decl *D, Decl *PrevDecl) { in shouldLinkDependentDeclWithPrevious() argument 10131 auto *PrevVD = dyn_cast<ValueDecl>(PrevDecl); in shouldLinkDependentDeclWithPrevious() [all …]
|
| H A D | SemaAccess.cpp | 1118 NamedDecl *PrevDecl = nullptr; in diagnoseBadDirectAccess() local 1120 PrevDecl = VD->getPreviousDecl(); in diagnoseBadDirectAccess() 1122 PrevDecl = FD->getPreviousDecl(); in diagnoseBadDirectAccess() 1124 PrevDecl = TND->getPreviousDecl(); in diagnoseBadDirectAccess() 1128 PrevDecl = TD->getPreviousDecl(); in diagnoseBadDirectAccess() 1130 if (!PrevDecl) break; in diagnoseBadDirectAccess() 1131 D = PrevDecl; in diagnoseBadDirectAccess()
|
| H A D | SemaDeclCXX.cpp | 10936 NamedDecl *PrevDecl = in ActOnStartNamespaceDef() local 10938 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef() 10945 } else if (PrevDecl) { in ActOnStartNamespaceDef() 10949 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartNamespaceDef() 11807 UsingShadowDecl *PrevDecl) { in BuildUsingShadowDecl() argument 11836 Shadow->setPreviousDecl(PrevDecl); in BuildUsingShadowDecl() 12249 UsingShadowDecl *PrevDecl = nullptr; in BuildUsingDeclaration() local 12250 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) in BuildUsingDeclaration() 12251 BuildUsingShadowDecl(S, UD, *I, PrevDecl); in BuildUsingDeclaration() 12763 NamedDecl *PrevDecl = PrevR.getRepresentativeDecl(); in ActOnNamespaceAliasDef() local [all …]
|
| H A D | Sema.cpp | 1096 Decl *PrevDecl = LookupSingleName(TUScope, WeakID.first, SourceLocation(), in ActOnEndOfTranslationUnit() local 1098 if (PrevDecl != nullptr && in ActOnEndOfTranslationUnit() 1099 !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) in ActOnEndOfTranslationUnit()
|
| H A D | SemaOpenMP.cpp | 19326 auto *PrevDecl = cast<OMPDeclareReductionDecl>(Filter.next()); in ActOnOpenMPDeclareReductionDirectiveStart() local 19328 auto I = UsedAsPrevious.find(PrevDecl); in ActOnOpenMPDeclareReductionDirectiveStart() 19330 UsedAsPrevious[PrevDecl] = false; in ActOnOpenMPDeclareReductionDirectiveStart() 19331 if (OMPDeclareReductionDecl *D = PrevDecl->getPrevDeclInScope()) in ActOnOpenMPDeclareReductionDirectiveStart() 19334 PreviousRedeclTypes[PrevDecl->getType().getCanonicalType()] = in ActOnOpenMPDeclareReductionDirectiveStart() 19335 PrevDecl->getLocation(); in ActOnOpenMPDeclareReductionDirectiveStart() 19578 auto *PrevDecl = cast<OMPDeclareMapperDecl>(Filter.next()); in ActOnOpenMPDeclareMapperDirective() local 19580 auto I = UsedAsPrevious.find(PrevDecl); in ActOnOpenMPDeclareMapperDirective() 19582 UsedAsPrevious[PrevDecl] = false; in ActOnOpenMPDeclareMapperDirective() 19583 if (OMPDeclareMapperDecl *D = PrevDecl->getPrevDeclInScope()) in ActOnOpenMPDeclareMapperDirective() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | DeclObjC.cpp | 1496 ObjCInterfaceDecl *PrevDecl, in Create() argument 1500 ObjCInterfaceDecl(C, DC, atLoc, Id, typeParamList, ClassLoc, PrevDecl, in Create() 1503 C.getObjCInterfaceType(Result, PrevDecl); in Create() 1520 ObjCInterfaceDecl *PrevDecl, in ObjCInterfaceDecl() argument 1524 setPreviousDecl(PrevDecl); in ObjCInterfaceDecl() 1527 if (PrevDecl) in ObjCInterfaceDecl() 1528 Data = PrevDecl->Data; in ObjCInterfaceDecl() 1883 ObjCProtocolDecl *PrevDecl) in ObjCProtocolDecl() argument 1886 setPreviousDecl(PrevDecl); in ObjCProtocolDecl() 1887 if (PrevDecl) in ObjCProtocolDecl() [all …]
|
| H A D | DeclTemplate.cpp | 894 ClassTemplateSpecializationDecl *PrevDecl) in ClassTemplateSpecializationDecl() argument 896 SpecializedTemplate->getIdentifier(), PrevDecl), in ClassTemplateSpecializationDecl() 915 ClassTemplateSpecializationDecl *PrevDecl) { in Create() argument 919 SpecializedTemplate, Args, PrevDecl); in Create() 922 Context.getTypeDeclType(Result, PrevDecl); in Create() 1034 ClassTemplatePartialSpecializationDecl *PrevDecl) in ClassTemplatePartialSpecializationDecl() argument 1038 SpecializedTemplate, Args, PrevDecl), in ClassTemplatePartialSpecializationDecl() 1053 ClassTemplatePartialSpecializationDecl *PrevDecl) { in Create() argument 1060 ASTArgInfos, PrevDecl); in Create()
|
| H A D | Decl.cpp | 3257 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration() argument 3258 redeclarable_base::setPreviousDecl(PrevDecl); in setPreviousDeclaration() 3262 = PrevDecl? PrevDecl->getDescribedFunctionTemplate() : nullptr; in setPreviousDeclaration() 3263 assert((!PrevDecl || PrevFunTmpl) && "Function/function template mismatch"); in setPreviousDeclaration() 3267 if (PrevDecl && PrevDecl->isInlined()) in setPreviousDeclaration() 4249 SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl, in TagDecl() argument 4255 setPreviousDecl(PrevDecl); in TagDecl() 4367 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, in EnumDecl() argument 4369 : TagDecl(Enum, TTK_Enum, C, DC, IdLoc, Id, PrevDecl, StartLoc) { in EnumDecl() 4386 EnumDecl *PrevDecl, bool IsScoped, in Create() argument [all …]
|
| H A D | DeclCXX.cpp | 126 CXXRecordDecl *PrevDecl) in CXXRecordDecl() argument 127 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl), in CXXRecordDecl() 128 DefinitionData(PrevDecl ? PrevDecl->DefinitionData in CXXRecordDecl() 134 CXXRecordDecl *PrevDecl, in Create() argument 137 PrevDecl); in Create() 142 C.getTypeDeclType(R, PrevDecl); in Create() 2866 IdentifierInfo *Id, NamespaceDecl *PrevDecl) in NamespaceDecl() argument 2870 setPreviousDecl(PrevDecl); in NamespaceDecl() 2872 if (PrevDecl) in NamespaceDecl() 2873 AnonOrFirstNamespaceAndInline.setPointer(PrevDecl->getOriginalNamespace()); in NamespaceDecl() [all …]
|
| H A D | DeclBase.cpp | 1306 Decl *PrevDecl = nullptr; in BuildDeclChain() local 1311 if (PrevDecl) in BuildDeclChain() 1312 PrevDecl->NextInContextAndBits.setPointer(D); in BuildDeclChain() 1316 PrevDecl = D; in BuildDeclChain() 1319 return std::make_pair(FirstNewDecl, PrevDecl); in BuildDeclChain()
|
| H A D | DeclPrinter.cpp | 1170 FunctionDecl *PrevDecl = D->getTemplatedDecl(); in VisitFunctionTemplateDecl() local 1172 if (PrevDecl->isDefined(Def) && Def != PrevDecl) in VisitFunctionTemplateDecl() 1176 if (!PrevDecl->isThisDeclarationADefinition()) in VisitFunctionTemplateDecl()
|
| H A D | ASTImporter.cpp | 2675 EnumDecl *PrevDecl = nullptr; in VisitEnumDecl() local 2696 PrevDecl = FoundEnum->getMostRecentDecl(); in VisitEnumDecl() 2726 Loc, Name.getAsIdentifierInfo(), PrevDecl, D->isScoped(), in VisitEnumDecl() 2789 RecordDecl *PrevDecl = nullptr; in VisitRecordDecl() local 2845 PrevDecl = FoundRecord->getMostRecentDecl(); in VisitRecordDecl() 2894 cast_or_null<CXXRecordDecl>(PrevDecl), DelayTypeCreation)) in VisitRecordDecl() 2902 cast_or_null<CXXRecordDecl>(PrevDecl))) in VisitRecordDecl() 2972 Name.getAsIdentifierInfo(), PrevDecl)) in VisitRecordDecl() 5520 ClassTemplateSpecializationDecl *PrevDecl = nullptr; in VisitClassTemplateSpecializationDecl() local 5532 PrevDecl = ClassTemplate->findPartialSpecialization(TemplateArgs, in VisitClassTemplateSpecializationDecl() [all …]
|
| H A D | ASTContext.cpp | 4478 } else if (CXXRecordDecl *PrevDecl = Decl->getPreviousDecl()) { in getInjectedClassNameType() local 4479 assert(PrevDecl->TypeForDecl && "previous declaration has no type"); in getInjectedClassNameType() 4480 Decl->TypeForDecl = PrevDecl->TypeForDecl; in getInjectedClassNameType() 4539 if (const RecordDecl *PrevDecl = Decl->getPreviousDecl()) in getRecordType() local 4540 if (PrevDecl->TypeForDecl) in getRecordType() 4541 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); in getRecordType() 4552 if (const EnumDecl *PrevDecl = Decl->getPreviousDecl()) in getEnumType() local 4553 if (PrevDecl->TypeForDecl) in getEnumType() 4554 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); in getEnumType() 5375 ObjCInterfaceDecl *PrevDecl) const { in getObjCInterfaceType() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| H A D | Decl.h | 534 IdentifierInfo *Id, NamespaceDecl *PrevDecl); 549 NamespaceDecl *PrevDecl); 2442 void setPreviousDeclaration(FunctionDecl * PrevDecl); 3323 SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl, 3588 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, 3660 IdentifierInfo *Id, EnumDecl *PrevDecl, 3851 IdentifierInfo *Id, RecordDecl *PrevDecl); 3856 IdentifierInfo *Id, RecordDecl* PrevDecl = nullptr); 4559 void Redeclarable<decl_type>::setPreviousDecl(decl_type *PrevDecl) { in setPreviousDecl() argument 4565 if (PrevDecl) { in setPreviousDecl() [all …]
|
| H A D | ASTContext.h | 1460 const TypeDecl *PrevDecl = nullptr) const { 1464 if (PrevDecl) { 1465 assert(PrevDecl->TypeForDecl && "previous decl has no TypeForDecl"); 1466 Decl->TypeForDecl = PrevDecl->TypeForDecl; 1467 return QualType(PrevDecl->TypeForDecl, 0); 1557 ObjCInterfaceDecl *PrevDecl = nullptr) const;
|
| H A D | Redeclarable.h | 236 void setPreviousDecl(decl_type *PrevDecl);
|
| H A D | DeclObjC.h | 1231 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, 1265 ObjCInterfaceDecl *PrevDecl, 2059 ObjCProtocolDecl *PrevDecl); 2093 ObjCProtocolDecl *PrevDecl);
|
| H A D | DeclTemplate.h | 1852 ClassTemplateSpecializationDecl *PrevDecl); 1865 ClassTemplateSpecializationDecl *PrevDecl); 2096 ClassTemplatePartialSpecializationDecl *PrevDecl); 2116 ClassTemplatePartialSpecializationDecl *PrevDecl);
|
| H A D | DeclCXX.h | 484 IdentifierInfo *Id, CXXRecordDecl *PrevDecl); 546 CXXRecordDecl *PrevDecl = nullptr,
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| H A D | Template.h | 606 VarTemplateSpecializationDecl *PrevDecl = nullptr);
|
| H A D | Sema.h | 3044 AccessSpecifier AS, NamedDecl *PrevDecl, 5683 UsingShadowDecl *PrevDecl); 7445 void DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl); 7652 NamedDecl *PrevDecl,
|