| /freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/ |
| H A D | SemaTemplate.cpp | 843 if (PrevDecl && PrevDecl->isTemplateParameter()) in maybeDiagnoseTemplateParameterShadow() 1346 if (PrevDecl && PrevDecl->isTemplateParameter()) { in CheckClassTemplate() 1363 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext()); in CheckClassTemplate() 3850 if (!PrevDecl) in ActOnVarTemplateSpecialization() 3860 if (PrevDecl && PrevDecl->getPointOfInstantiation().isValid()) { in ActOnVarTemplateSpecialization() 3894 if (PrevDecl) { in ActOnVarTemplateSpecialization() 7686 if (!PrevDecl) in ActOnClassTemplateSpecialization() 7704 if (PrevDecl && PrevDecl->getPointOfInstantiation().isValid()) { in ActOnClassTemplateSpecialization() 8760 if (PrevDecl) { in ActOnExplicitInstantiation() 8989 if (PrevDecl) { in ActOnExplicitInstantiation() [all …]
|
| H A D | SemaDeclObjC.cpp | 550 if (!PrevDecl) { in ActOnSuperClassOfClassInterface() 983 NamedDecl *PrevDecl = in ActOnStartClassInterface() local 987 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassInterface() 1215 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface() 1234 if (PrevDecl) { in ActOnStartProtocolInterface() 1256 if (PrevDecl) in ActOnStartProtocolInterface() 1783 if (PrevDecl) in ActOnForwardProtocolDeclaration() 1957 NamedDecl *PrevDecl in ActOnStartClassImplementation() local 1960 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation() 1992 if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) { in ActOnStartClassImplementation() [all …]
|
| H A D | SemaDecl.cpp | 5829 if (!PrevDecl) in isOutOfScopePreviousDeclaration() 14895 if (PrevDecl) in ActOnTag() 14908 if (PrevDecl) in ActOnTag() 14930 if (PrevDecl) in ActOnTag() 15253 if (PrevDecl && PrevDecl->isTemplateParameter()) { in HandleField() 15260 if (PrevDecl && !isDeclInScope(PrevDecl, Record, S)) in HandleField() 15441 if (PrevDecl && !isa<TagDecl>(PrevDecl)) { in CheckFieldDecl() 15648 if (PrevDecl && isDeclInScope(PrevDecl, EnclosingContext, S) in ActOnIvar() 16429 if (PrevDecl && PrevDecl->isTemplateParameter()) { in ActOnEnumConstant() 17308 if (PrevDecl && (isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) { in ActOnPragmaRedefineExtname() [all …]
|
| H A D | SemaTemplateInstantiateDecl.cpp | 1003 EnumDecl *PrevDecl = nullptr; in VisitEnumDecl() local 1009 PrevDecl = cast<EnumDecl>(Prev); in VisitEnumDecl() 1175 CXXRecordDecl *PrevDecl = nullptr; in VisitClassTemplateDecl() local 1496 CXXRecordDecl *PrevDecl = nullptr; in VisitCXXRecordDecl() local 1504 PrevDecl = cast<CXXRecordDecl>(Prev); in VisitCXXRecordDecl() 2612 UsingShadowDecl *PrevDecl = nullptr; in VisitUsingDecl() local 3007 if (PrevDecl && in VisitClassTemplateSpecializationDecl() 3028 if (PrevDecl && PrevDecl->getDefinition() && in VisitClassTemplateSpecializationDecl() 3044 if (!PrevDecl) in VisitClassTemplateSpecializationDecl() 3313 if (PrevDecl) { in InstantiateClassTemplatePartialSpecialization() [all …]
|
| H A D | SemaAccess.cpp | 1106 NamedDecl *PrevDecl = nullptr; in diagnoseBadDirectAccess() local 1108 PrevDecl = VD->getPreviousDecl(); in diagnoseBadDirectAccess() 1110 PrevDecl = FD->getPreviousDecl(); in diagnoseBadDirectAccess() 1112 PrevDecl = TND->getPreviousDecl(); in diagnoseBadDirectAccess() 1116 PrevDecl = TD->getPreviousDecl(); in diagnoseBadDirectAccess() 1118 if (!PrevDecl) break; in diagnoseBadDirectAccess() 1119 D = PrevDecl; in diagnoseBadDirectAccess()
|
| H A D | SemaDeclCXX.cpp | 8868 NamedDecl *PrevDecl = in ActOnStartNamespaceDef() local 8877 } else if (PrevDecl) { in ActOnStartNamespaceDef() 9755 Shadow->setPreviousDecl(PrevDecl); in BuildUsingShadowDecl() 10685 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef() 10692 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef() 13853 assert(!S->isDeclScope(PrevDecl)); in ActOnExceptionDeclarator() 15584 NamedDecl *PrevDecl = nullptr; in HandleMSProperty() local 15604 if (PrevDecl && PrevDecl->isTemplateParameter()) { in HandleMSProperty() 15608 PrevDecl = nullptr; in HandleMSProperty() 15611 if (PrevDecl && !isDeclInScope(PrevDecl, Record, S)) in HandleMSProperty() [all …]
|
| H A D | Sema.cpp | 964 Decl *PrevDecl = LookupSingleName(TUScope, WeakID.first, SourceLocation(), in ActOnEndOfTranslationUnit() local 966 if (PrevDecl != nullptr && in ActOnEndOfTranslationUnit() 967 !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) in ActOnEndOfTranslationUnit()
|
| H A D | SemaOpenMP.cpp | 13194 auto *PrevDecl = cast<OMPDeclareReductionDecl>(Filter.next()); in ActOnOpenMPDeclareReductionDirectiveStart() local 13196 auto I = UsedAsPrevious.find(PrevDecl); in ActOnOpenMPDeclareReductionDirectiveStart() 13198 UsedAsPrevious[PrevDecl] = false; in ActOnOpenMPDeclareReductionDirectiveStart() 13199 if (OMPDeclareReductionDecl *D = PrevDecl->getPrevDeclInScope()) in ActOnOpenMPDeclareReductionDirectiveStart() 13202 PreviousRedeclTypes[PrevDecl->getType().getCanonicalType()] = in ActOnOpenMPDeclareReductionDirectiveStart() 13203 PrevDecl->getLocation(); in ActOnOpenMPDeclareReductionDirectiveStart()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | DeclObjC.cpp | 1461 ObjCInterfaceDecl *PrevDecl, in Create() argument 1468 C.getObjCInterfaceType(Result, PrevDecl); in Create() 1485 ObjCInterfaceDecl *PrevDecl, in ObjCInterfaceDecl() argument 1489 setPreviousDecl(PrevDecl); in ObjCInterfaceDecl() 1492 if (PrevDecl) in ObjCInterfaceDecl() 1493 Data = PrevDecl->Data; in ObjCInterfaceDecl() 1848 ObjCProtocolDecl *PrevDecl) in ObjCProtocolDecl() argument 1851 setPreviousDecl(PrevDecl); in ObjCProtocolDecl() 1852 if (PrevDecl) in ObjCProtocolDecl() 1853 Data = PrevDecl->Data; in ObjCProtocolDecl() [all …]
|
| H A D | DeclTemplate.cpp | 725 ClassTemplateSpecializationDecl *PrevDecl) in ClassTemplateSpecializationDecl() argument 727 SpecializedTemplate->getIdentifier(), PrevDecl), in ClassTemplateSpecializationDecl() 746 ClassTemplateSpecializationDecl *PrevDecl) { in Create() argument 750 SpecializedTemplate, Args, PrevDecl); in Create() 753 Context.getTypeDeclType(Result, PrevDecl); in Create() 841 ClassTemplatePartialSpecializationDecl *PrevDecl) in ClassTemplatePartialSpecializationDecl() argument 845 SpecializedTemplate, Args, PrevDecl), in ClassTemplatePartialSpecializationDecl() 860 ClassTemplatePartialSpecializationDecl *PrevDecl) { in Create() argument 867 ASTArgInfos, PrevDecl); in Create()
|
| H A D | DeclCXX.cpp | 119 CXXRecordDecl *PrevDecl) in CXXRecordDecl() argument 120 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl), in CXXRecordDecl() 121 DefinitionData(PrevDecl ? PrevDecl->DefinitionData in CXXRecordDecl() 127 CXXRecordDecl *PrevDecl, in Create() argument 130 PrevDecl); in Create() 135 C.getTypeDeclType(R, PrevDecl); in Create() 2574 IdentifierInfo *Id, NamespaceDecl *PrevDecl) in NamespaceDecl() argument 2578 setPreviousDecl(PrevDecl); in NamespaceDecl() 2580 if (PrevDecl) in NamespaceDecl() 2587 NamespaceDecl *PrevDecl) { in Create() argument [all …]
|
| H A D | Decl.cpp | 2969 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration() argument 2970 redeclarable_base::setPreviousDecl(PrevDecl); in setPreviousDeclaration() 2974 = PrevDecl? PrevDecl->getDescribedFunctionTemplate() : nullptr; in setPreviousDeclaration() 2979 if (PrevDecl && PrevDecl->isInlined()) in setPreviousDeclaration() 3847 setPreviousDecl(PrevDecl); in TagDecl() 3961 : TagDecl(Enum, TTK_Enum, C, DC, IdLoc, Id, PrevDecl, StartLoc) { in EnumDecl() 3978 EnumDecl *PrevDecl, bool IsScoped, in Create() argument 3983 C.getTypeDeclType(Enum, PrevDecl); in Create() 4092 RecordDecl *PrevDecl) in RecordDecl() argument 4093 : TagDecl(DK, TK, C, DC, IdLoc, Id, PrevDecl, StartLoc) { in RecordDecl() [all …]
|
| H A D | DeclBase.cpp | 1244 Decl *PrevDecl = nullptr; in BuildDeclChain() local 1249 if (PrevDecl) in BuildDeclChain() 1250 PrevDecl->NextInContextAndBits.setPointer(D); in BuildDeclChain() 1254 PrevDecl = D; in BuildDeclChain() 1257 return std::make_pair(FirstNewDecl, PrevDecl); in BuildDeclChain()
|
| H A D | DeclPrinter.cpp | 1105 FunctionDecl *PrevDecl = D->getTemplatedDecl(); in VisitFunctionTemplateDecl() local 1107 if (PrevDecl->isDefined(Def) && Def != PrevDecl) in VisitFunctionTemplateDecl() 1111 if (!PrevDecl->isThisDeclarationADefinition()) in VisitFunctionTemplateDecl()
|
| H A D | ASTContext.cpp | 3845 } else if (CXXRecordDecl *PrevDecl = Decl->getPreviousDecl()) { in getInjectedClassNameType() local 3847 Decl->TypeForDecl = PrevDecl->TypeForDecl; in getInjectedClassNameType() 3906 if (const RecordDecl *PrevDecl = Decl->getPreviousDecl()) in getRecordType() local 3907 if (PrevDecl->TypeForDecl) in getRecordType() 3908 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); in getRecordType() 3919 if (const EnumDecl *PrevDecl = Decl->getPreviousDecl()) in getEnumType() local 3920 if (PrevDecl->TypeForDecl) in getEnumType() 3921 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); in getEnumType() 4722 if (PrevDecl) { in getObjCInterfaceType() 4724 Decl->TypeForDecl = PrevDecl->TypeForDecl; in getObjCInterfaceType() [all …]
|
| H A D | ASTImporter.cpp | 2593 RecordDecl *PrevDecl = nullptr; in VisitRecordDecl() local 2645 PrevDecl = FoundRecord->getMostRecentDecl(); in VisitRecordDecl() 2690 cast_or_null<CXXRecordDecl>(PrevDecl), DelayTypeCreation)) in VisitRecordDecl() 2698 cast_or_null<CXXRecordDecl>(PrevDecl))) in VisitRecordDecl() 2772 Name.getAsIdentifierInfo(), PrevDecl)) in VisitRecordDecl() 5079 ClassTemplateSpecializationDecl * const PrevDecl = D2; in VisitClassTemplateSpecializationDecl() local 5154 cast_or_null<ClassTemplatePartialSpecializationDecl>(PrevDecl))) in VisitClassTemplateSpecializationDecl() 5168 PrevDecl)) in VisitClassTemplateSpecializationDecl()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/ |
| H A D | Decl.h | 533 IdentifierInfo *Id, NamespaceDecl *PrevDecl); 548 NamespaceDecl *PrevDecl); 2252 void setPreviousDeclaration(FunctionDecl * PrevDecl); 3098 SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl, 3363 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, 3433 IdentifierInfo *Id, EnumDecl *PrevDecl, 3624 IdentifierInfo *Id, RecordDecl *PrevDecl); 3629 IdentifierInfo *Id, RecordDecl* PrevDecl = nullptr); 4289 void Redeclarable<decl_type>::setPreviousDecl(decl_type *PrevDecl) { in setPreviousDecl() argument 4295 if (PrevDecl) { in setPreviousDecl() [all …]
|
| H A D | ASTContext.h | 1397 const TypeDecl *PrevDecl = nullptr) const { 1401 if (PrevDecl) { 1402 assert(PrevDecl->TypeForDecl && "previous decl has no TypeForDecl"); 1403 Decl->TypeForDecl = PrevDecl->TypeForDecl; 1404 return QualType(PrevDecl->TypeForDecl, 0); 1483 ObjCInterfaceDecl *PrevDecl = nullptr) const;
|
| H A D | Redeclarable.h | 237 void setPreviousDecl(decl_type *PrevDecl);
|
| H A D | DeclObjC.h | 1255 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, 1289 ObjCInterfaceDecl *PrevDecl, 2083 ObjCProtocolDecl *PrevDecl); 2117 ObjCProtocolDecl *PrevDecl);
|
| H A D | DeclTemplate.h | 1701 ClassTemplateSpecializationDecl *PrevDecl); 1714 ClassTemplateSpecializationDecl *PrevDecl); 1923 ClassTemplatePartialSpecializationDecl *PrevDecl); 1943 ClassTemplatePartialSpecializationDecl *PrevDecl);
|
| H A D | DeclCXX.h | 719 IdentifierInfo *Id, CXXRecordDecl *PrevDecl); 781 CXXRecordDecl *PrevDecl = nullptr,
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/ |
| H A D | Sema.h | 2282 AccessSpecifier AS, NamedDecl *PrevDecl, 4653 UsingShadowDecl *PrevDecl); 6186 void DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl); 6353 NamedDecl *PrevDecl,
|