| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | HLSLExternalSemaSource.cpp | 49 CXXRecordDecl *PrevDecl = nullptr; in BuiltinTypeDeclBuilder() local 53 PrevDecl = TD->getTemplatedDecl(); in BuiltinTypeDeclBuilder() 56 PrevDecl = dyn_cast<CXXRecordDecl>(Found); in BuiltinTypeDeclBuilder() 57 assert(PrevDecl && "Unexpected lookup result type."); in BuiltinTypeDeclBuilder() 60 if (PrevDecl && PrevDecl->isCompleteDefinition()) { in BuiltinTypeDeclBuilder() 61 Record = PrevDecl; in BuiltinTypeDeclBuilder() 67 PrevDecl, true); in BuiltinTypeDeclBuilder() 389 NamespaceDecl *PrevDecl = nullptr; in InitializeSema() local 391 PrevDecl = Result.getAsSingle<NamespaceDecl>(); in InitializeSema() 394 SourceLocation(), &HLSL, PrevDecl, /*Nested=*/false); in InitializeSema()
|
| H A D | SemaTemplate.cpp | 973 if (PrevDecl && PrevDecl->isTemplateParameter()) in maybeDiagnoseTemplateParameterShadow() 1939 if (PrevDecl && PrevDecl->isTemplateParameter()) { in CheckClassTemplate() 1956 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext()); in CheckClassTemplate() 4775 if (!PrevDecl) in ActOnVarTemplateSpecialization() 4785 if (PrevDecl && PrevDecl->getPointOfInstantiation().isValid()) { in ActOnVarTemplateSpecialization() 4819 if (PrevDecl) { in ActOnVarTemplateSpecialization() 9077 if (!PrevDecl) in ActOnClassTemplateSpecialization() 9095 if (PrevDecl && PrevDecl->getPointOfInstantiation().isValid()) { in ActOnClassTemplateSpecialization() 10299 if (PrevDecl) { in ActOnExplicitInstantiation() 10536 if (PrevDecl) { in ActOnExplicitInstantiation() [all …]
|
| H A D | SemaDeclObjC.cpp | 555 if (!PrevDecl) { in ActOnSuperClassOfClassInterface() 985 NamedDecl *PrevDecl = in ActOnStartClassInterface() local 989 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassInterface() 1231 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface() 1256 if (PrevDecl) { in ActOnStartProtocolInterface() 1278 if (PrevDecl) in ActOnStartProtocolInterface() 1809 if (PrevDecl) in ActOnForwardProtocolDeclaration() 1988 NamedDecl *PrevDecl in ActOnStartClassImplementation() local 1991 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation() 2024 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation() [all …]
|
| H A D | SemaTemplateInstantiateDecl.cpp | 1463 EnumDecl *PrevDecl = nullptr; in VisitEnumDecl() local 1469 PrevDecl = cast<EnumDecl>(Prev); in VisitEnumDecl() 1635 CXXRecordDecl *PrevDecl = nullptr; in VisitClassTemplateDecl() local 1932 CXXRecordDecl *PrevDecl = nullptr; in VisitCXXRecordDecl() local 3276 UsingShadowDecl *PrevDecl = nullptr; in VisitBaseUsingDecls() local 3843 if (PrevDecl && in VisitClassTemplateSpecializationDecl() 3864 if (PrevDecl && PrevDecl->getDefinition() && in VisitClassTemplateSpecializationDecl() 3880 if (!PrevDecl) in VisitClassTemplateSpecializationDecl() 4001 if (!PrevDecl) { in VisitVarTemplateSpecializationDecl() 4256 if (PrevDecl) { in InstantiateClassTemplatePartialSpecialization() [all …]
|
| H A D | SemaDecl.cpp | 6928 if (!PrevDecl) in isOutOfScopePreviousDeclaration() 15161 if (PrevDecl && S->isDeclScope(PrevDecl)) { in ActOnParamDeclarator() 18110 if (PrevDecl) in ActOnTag() 18123 if (PrevDecl) in ActOnTag() 18145 if (PrevDecl) in ActOnTag() 18498 if (PrevDecl && PrevDecl->isTemplateParameter()) { in HandleField() 18505 if (PrevDecl && !isDeclInScope(PrevDecl, Record, S)) in HandleField() 18669 if (PrevDecl && !isa<TagDecl>(PrevDecl) && in CheckFieldDecl() 19930 if (PrevDecl && PrevDecl->isTemplateParameter()) { in ActOnEnumConstant() 20436 if (PrevDecl && (isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) { in ActOnPragmaRedefineExtname() [all …]
|
| H A D | SemaAccess.cpp | 1128 NamedDecl *PrevDecl = nullptr; in diagnoseBadDirectAccess() local 1130 PrevDecl = VD->getPreviousDecl(); in diagnoseBadDirectAccess() 1132 PrevDecl = FD->getPreviousDecl(); in diagnoseBadDirectAccess() 1134 PrevDecl = TND->getPreviousDecl(); in diagnoseBadDirectAccess() 1138 PrevDecl = TD->getPreviousDecl(); in diagnoseBadDirectAccess() 1140 if (!PrevDecl) break; in diagnoseBadDirectAccess() 1141 D = PrevDecl; in diagnoseBadDirectAccess()
|
| H A D | SemaDeclCXX.cpp | 11657 NamedDecl *PrevDecl = in ActOnStartNamespaceDef() local 11669 } else if (PrevDecl) { in ActOnStartNamespaceDef() 12645 Shadow->setPreviousDecl(PrevDecl); in BuildUsingShadowDecl() 13699 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef() 13706 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef() 17042 assert(!S->isDeclScope(PrevDecl)); in ActOnExceptionDeclarator() 19220 NamedDecl *PrevDecl = nullptr; in HandleMSProperty() local 19240 if (PrevDecl && PrevDecl->isTemplateParameter()) { in HandleMSProperty() 19244 PrevDecl = nullptr; in HandleMSProperty() 19247 if (PrevDecl && !isDeclInScope(PrevDecl, Record, S)) in HandleMSProperty() [all …]
|
| H A D | Sema.cpp | 1186 Decl *PrevDecl = LookupSingleName(TUScope, WeakIDs.first, SourceLocation(), in ActOnEndOfTranslationUnit() local 1188 if (PrevDecl != nullptr && in ActOnEndOfTranslationUnit() 1189 !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) in ActOnEndOfTranslationUnit()
|
| H A D | SemaOpenMP.cpp | 22524 auto *PrevDecl = cast<OMPDeclareReductionDecl>(Filter.next()); in ActOnOpenMPDeclareReductionDirectiveStart() local 22526 auto I = UsedAsPrevious.find(PrevDecl); in ActOnOpenMPDeclareReductionDirectiveStart() 22528 UsedAsPrevious[PrevDecl] = false; in ActOnOpenMPDeclareReductionDirectiveStart() 22532 PreviousRedeclTypes[PrevDecl->getType().getCanonicalType()] = in ActOnOpenMPDeclareReductionDirectiveStart() 22533 PrevDecl->getLocation(); in ActOnOpenMPDeclareReductionDirectiveStart() 22776 auto *PrevDecl = cast<OMPDeclareMapperDecl>(Filter.next()); in ActOnOpenMPDeclareMapperDirective() local 22778 auto I = UsedAsPrevious.find(PrevDecl); in ActOnOpenMPDeclareMapperDirective() 22780 UsedAsPrevious[PrevDecl] = false; in ActOnOpenMPDeclareMapperDirective() 22781 if (OMPDeclareMapperDecl *D = PrevDecl->getPrevDeclInScope()) in ActOnOpenMPDeclareMapperDirective() 22784 PreviousRedeclTypes[PrevDecl->getType().getCanonicalType()] = in ActOnOpenMPDeclareMapperDirective() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | DeclObjC.cpp | 1547 ObjCInterfaceDecl *PrevDecl, in Create() argument 1554 C.getObjCInterfaceType(Result, PrevDecl); in Create() 1571 ObjCInterfaceDecl *PrevDecl, in ObjCInterfaceDecl() argument 1575 setPreviousDecl(PrevDecl); in ObjCInterfaceDecl() 1578 if (PrevDecl) in ObjCInterfaceDecl() 1579 Data = PrevDecl->Data; in ObjCInterfaceDecl() 1939 ObjCProtocolDecl *PrevDecl) in ObjCProtocolDecl() argument 1942 setPreviousDecl(PrevDecl); in ObjCProtocolDecl() 1943 if (PrevDecl) in ObjCProtocolDecl() 1944 Data = PrevDecl->Data; in ObjCProtocolDecl() [all …]
|
| H A D | DeclTemplate.cpp | 913 ClassTemplateSpecializationDecl *PrevDecl) in ClassTemplateSpecializationDecl() argument 915 SpecializedTemplate->getIdentifier(), PrevDecl), in ClassTemplateSpecializationDecl() 934 ClassTemplateSpecializationDecl *PrevDecl) { in Create() argument 938 SpecializedTemplate, Args, PrevDecl); in Create() 949 Context.getTypeDeclType(Result, PrevDecl); in Create() 1102 ClassTemplatePartialSpecializationDecl *PrevDecl) in ClassTemplatePartialSpecializationDecl() argument 1106 SpecializedTemplate, Args, PrevDecl), in ClassTemplatePartialSpecializationDecl() 1122 ClassTemplatePartialSpecializationDecl *PrevDecl) { in Create() argument 1129 ASTArgInfos, PrevDecl); in Create()
|
| 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() 2951 IdentifierInfo *Id, NamespaceDecl *PrevDecl, in NamespaceDecl() argument 2961 setPreviousDecl(PrevDecl); in NamespaceDecl() 2963 if (PrevDecl) in NamespaceDecl() 2970 NamespaceDecl *PrevDecl, bool Nested) { in Create() argument [all …]
|
| H A D | Decl.cpp | 3545 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration() argument 3546 redeclarable_base::setPreviousDecl(PrevDecl); in setPreviousDeclaration() 3550 = PrevDecl? PrevDecl->getDescribedFunctionTemplate() : nullptr; in setPreviousDeclaration() 3555 if (PrevDecl && PrevDecl->isInlined()) in setPreviousDeclaration() 4650 setPreviousDecl(PrevDecl); in TagDecl() 4799 EnumDecl *PrevDecl, bool IsScoped, in Create() argument 4804 C.getTypeDeclType(Enum, PrevDecl); in Create() 4939 RecordDecl *PrevDecl) in RecordDecl() argument 4940 : TagDecl(DK, TK, C, DC, IdLoc, Id, PrevDecl, StartLoc) { in RecordDecl() 4963 StartLoc, IdLoc, Id, PrevDecl); in Create() [all …]
|
| H A D | DeclBase.cpp | 1459 Decl *PrevDecl = nullptr; in BuildDeclChain() local 1464 if (PrevDecl) in BuildDeclChain() 1465 PrevDecl->NextInContextAndBits.setPointer(D); in BuildDeclChain() 1469 PrevDecl = D; in BuildDeclChain() 1472 return std::make_pair(FirstNewDecl, PrevDecl); in BuildDeclChain()
|
| H A D | DeclPrinter.cpp | 1325 FunctionDecl *PrevDecl = D->getTemplatedDecl(); in VisitFunctionTemplateDecl() local 1327 if (PrevDecl->isDefined(Def) && Def != PrevDecl) in VisitFunctionTemplateDecl() 1331 if (!PrevDecl->isThisDeclarationADefinition()) in VisitFunctionTemplateDecl()
|
| H A D | ASTImporter.cpp | 2887 EnumDecl *PrevDecl = nullptr; in VisitEnumDecl() local 2908 PrevDecl = FoundEnum->getMostRecentDecl(); in VisitEnumDecl() 2938 Loc, Name.getAsIdentifierInfo(), PrevDecl, D->isScoped(), in VisitEnumDecl() 3005 RecordDecl *PrevDecl = nullptr; in VisitRecordDecl() local 3061 PrevDecl = FoundRecord->getMostRecentDecl(); in VisitRecordDecl() 6079 ClassTemplateSpecializationDecl *PrevDecl = nullptr; in VisitClassTemplateSpecializationDecl() local 6091 PrevDecl = ClassTemplate->findPartialSpecialization(TemplateArgs, in VisitClassTemplateSpecializationDecl() 6097 if (PrevDecl) { in VisitClassTemplateSpecializationDecl() 6098 if (IsStructuralMatch(D, PrevDecl)) { in VisitClassTemplateSpecializationDecl() 6099 CXXRecordDecl *PrevDefinition = PrevDecl->getDefinition(); in VisitClassTemplateSpecializationDecl() [all …]
|
| H A D | ASTContext.cpp | 4601 } else if (CXXRecordDecl *PrevDecl = Decl->getPreviousDecl()) { in getInjectedClassNameType() local 4603 Decl->TypeForDecl = PrevDecl->TypeForDecl; in getInjectedClassNameType() 4707 if (const RecordDecl *PrevDecl = Decl->getPreviousDecl()) in getRecordType() local 4708 if (PrevDecl->TypeForDecl) in getRecordType() 4709 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); in getRecordType() 4720 if (const EnumDecl *PrevDecl = Decl->getPreviousDecl()) in getEnumType() local 4721 if (PrevDecl->TypeForDecl) in getEnumType() 4722 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); in getEnumType() 5585 if (PrevDecl) { in getObjCInterfaceType() 5587 Decl->TypeForDecl = PrevDecl->TypeForDecl; in getObjCInterfaceType() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Decl.h | 567 IdentifierInfo *Id, NamespaceDecl *PrevDecl, bool Nested); 581 IdentifierInfo *Id, NamespaceDecl *PrevDecl, 2633 void setPreviousDeclaration(FunctionDecl * PrevDecl); 3573 SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl, 3861 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, 3933 IdentifierInfo *Id, EnumDecl *PrevDecl, 4135 IdentifierInfo *Id, RecordDecl *PrevDecl); 4140 IdentifierInfo *Id, RecordDecl* PrevDecl = nullptr); 4947 void Redeclarable<decl_type>::setPreviousDecl(decl_type *PrevDecl) { in setPreviousDecl() argument 4953 if (PrevDecl) { in setPreviousDecl() [all …]
|
| H A D | ASTContext.h | 1573 const TypeDecl *PrevDecl = nullptr) const { 1577 if (PrevDecl) { 1578 assert(PrevDecl->TypeForDecl && "previous decl has no TypeForDecl"); 1579 Decl->TypeForDecl = PrevDecl->TypeForDecl; 1580 return QualType(PrevDecl->TypeForDecl, 0); 1679 ObjCInterfaceDecl *PrevDecl = nullptr) const;
|
| H A D | Redeclarable.h | 237 void setPreviousDecl(decl_type *PrevDecl);
|
| H A D | DeclObjC.h | 1244 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, 1278 ObjCInterfaceDecl *PrevDecl, 2104 ObjCProtocolDecl *PrevDecl); 2143 ObjCProtocolDecl *PrevDecl);
|
| H A D | DeclTemplate.h | 1848 ClassTemplateSpecializationDecl *PrevDecl); 1861 ClassTemplateSpecializationDecl *PrevDecl); 2092 ClassTemplatePartialSpecializationDecl *PrevDecl); 2112 ClassTemplatePartialSpecializationDecl *PrevDecl);
|
| H A D | DeclCXX.h | 514 IdentifierInfo *Id, CXXRecordDecl *PrevDecl); 576 CXXRecordDecl *PrevDecl = nullptr,
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Template.h | 711 VarTemplateSpecializationDecl *PrevDecl = nullptr);
|
| H A D | Sema.h | 3440 AccessSpecifier AS, NamedDecl *PrevDecl, 6320 UsingShadowDecl *PrevDecl); 8261 void DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl); 8473 NamedDecl *PrevDecl,
|