| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Lookup.h | 159 RedeclarationKind Redecl = RedeclarationKind::NotForRedeclaration) 161 Redecl(Redecl != RedeclarationKind::NotForRedeclaration), 162 ExternalRedecl(Redecl == RedeclarationKind::ForExternalRedeclaration), 163 DiagnoseAccess(Redecl == RedeclarationKind::NotForRedeclaration), 164 DiagnoseAmbiguous(Redecl == RedeclarationKind::NotForRedeclaration) { 174 RedeclarationKind Redecl = RedeclarationKind::NotForRedeclaration) 176 Redecl(Redecl != RedeclarationKind::NotForRedeclaration), 177 ExternalRedecl(Redecl == RedeclarationKind::ForExternalRedeclaration), 178 DiagnoseAccess(Redecl == RedeclarationKind::NotForRedeclaration), 179 DiagnoseAmbiguous(Redecl == RedeclarationKind::NotForRedeclaration) { [all …]
|
| H A D | SemaObjC.h | 144 RedeclarationKind Redecl = RedeclarationKind::NotForRedeclaration);
|
| /freebsd/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTReaderDecl.cpp | 109 void mergeLambda(CXXRecordDecl *D, RedeclarableResult &Redecl, Decl &Context, 122 RedeclarableResult &Redecl) { in mergeRedeclarable() argument 124 D, Existing, Redecl.isKeyDecl() ? Redecl.getFirstID() : GlobalDeclID()); in mergeRedeclarable() 423 void mergeRedeclarable(Redeclarable<T> *D, RedeclarableResult &Redecl); 426 RedeclarableResult &Redecl); 702 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTypedefNameDecl() local 715 return Redecl; in VisitTypedefNameDecl() 719 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypedefDecl() local 720 mergeRedeclarable(TD, Redecl); in VisitTypedefDecl() 724 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypeAliasDecl() local [all …]
|
| H A D | ASTWriterDecl.cpp | 2221 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl() local 2222 if (IsLocalDecl(Redecl)) in getFirstLocalDecl() 2223 D = Redecl; in getFirstLocalDecl()
|
| H A D | ASTWriter.cpp | 3788 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup() local 3790 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup() 3792 if (!Redecl->isFromASTFile()) { in getDeclForLocalLookup() 3796 if (!Redecl->getDeclContext()->getRedeclContext()->Equals( in getDeclForLocalLookup() 3799 return cast<NamedDecl>(Redecl); in getDeclForLocalLookup() 3804 if (Redecl->getOwningModuleID() == 0) in getDeclForLocalLookup()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTDumper.cpp | 120 auto *Redecl = cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local 121 switch (Redecl->getTemplateSpecializationKind()) { in dumpTemplateDeclSpecialization() 130 NodeDumper.dumpDeclRef(Redecl); in dumpTemplateDeclSpecialization() 132 Visit(Redecl); in dumpTemplateDeclSpecialization()
|
| H A D | DeclObjC.cpp | 962 ObjCMethodDecl *Redecl = nullptr; in getNextRedeclarationImpl() local 964 Redecl = const_cast<ObjCMethodDecl*>(Ctx.getObjCMethodRedeclaration(this)); in getNextRedeclarationImpl() 965 if (Redecl) in getNextRedeclarationImpl() 966 return Redecl; in getNextRedeclarationImpl() 974 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 979 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 984 Redecl = IFD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 989 Redecl = CatD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 996 if (Redecl && cast<Decl>(Redecl->getDeclContext())->isInvalidDecl()) in getNextRedeclarationImpl() 997 Redecl = nullptr; in getNextRedeclarationImpl() [all …]
|
| H A D | APValue.cpp | 73 for (auto *Redecl = cast<ValueDecl>(D->getMostRecentDecl()); Redecl; in getType() local 74 Redecl = cast_or_null<ValueDecl>(Redecl->getPreviousDecl())) { in getType() 75 QualType T = Redecl->getType(); in getType()
|
| H A D | Decl.cpp | 3840 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC() argument 3841 if (Redecl->getStorageClass() != SC_Extern) in redeclForcesDefMSVC() 3844 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC() 3852 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99() argument 3854 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99() 3859 if (Redecl->isImplicit()) in RedeclForcesDefC99() 3862 if (!Redecl->isInlineSpecified() || Redecl->getStorageClass() == SC_Extern) in RedeclForcesDefC99() 4032 for (auto *Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local 4033 if (Redecl->isInlineSpecified() && in isInlineDefinitionExternallyVisible() 4034 Redecl->getStorageClass() != SC_Extern) in isInlineDefinitionExternallyVisible() [all …]
|
| H A D | ASTContext.cpp | 466 for (auto *Redecl : CanonicalD->redecls()) { in getRawCommentForAnyRedecl() local 467 if (Redecl == D) { in getRawCommentForAnyRedecl() 471 if (Redecl == LastChecked) in getRawCommentForAnyRedecl() 481 for (const Decl *Redecl : D->redecls()) { in getRawCommentForAnyRedecl() local 482 assert(Redecl); in getRawCommentForAnyRedecl() 485 if (LastCheckedRedecl == Redecl) { in getRawCommentForAnyRedecl() 490 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl() 492 cacheRawCommentForDecl(*Redecl, *RedeclComment); in getRawCommentForAnyRedecl() 494 *OriginalDecl = Redecl; in getRawCommentForAnyRedecl() 497 CommentlessRedeclChains[CanonicalD] = Redecl; in getRawCommentForAnyRedecl() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | JSONNodeDumper.h | 392 const auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in writeTemplateDeclSpecialization() local 393 if (!Redecl) { in writeTemplateDeclSpecialization() 402 switch (Redecl->getTemplateSpecializationKind()) { in writeTemplateDeclSpecialization() 411 NodeDumper.AddChild([=] { NodeDumper.writeBareDeclRef(Redecl); }); in writeTemplateDeclSpecialization() 413 Visit(Redecl); in writeTemplateDeclSpecialization()
|
| H A D | ASTNodeTraverser.h | 654 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local 655 if (!Redecl) { in dumpTemplateDeclSpecialization() 663 Visit(Redecl); in dumpTemplateDeclSpecialization()
|
| H A D | ASTContext.h | 3325 const ObjCMethodDecl *Redecl);
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaAvailability.cpp | 443 for (const Decl *Redecl = OffendingDecl->getMostRecentDecl(); Redecl; in DoEmitAvailabilityWarning() local 444 Redecl = Redecl->getPreviousDecl()) { in DoEmitAvailabilityWarning() 446 getAttrForPlatform(S.Context, Redecl); in DoEmitAvailabilityWarning() 450 NoteLocation = Redecl->getLocation(); in DoEmitAvailabilityWarning()
|
| H A D | SemaAttr.cpp | 108 for (Decl *Redecl : Record->redecls()) in addGslOwnerPointerAttributeIfNotExisting() 109 Redecl->addAttr(Attribute::CreateImplicit(Context, /*DerefType=*/nullptr)); in addGslOwnerPointerAttributeIfNotExisting() 330 for (Decl *Redecl : CRD->redecls()) in inferNullableClassAttribute() 331 Redecl->addAttr(TypeNullableAttr::CreateImplicit(Context)); in inferNullableClassAttribute()
|
| H A D | SemaExceptionSpec.cpp | 249 for (FunctionDecl *Redecl : FD->redecls()) in UpdateExceptionSpec() 250 Context.adjustExceptionSpec(Redecl, ESI); in UpdateExceptionSpec()
|
| H A D | SemaLookup.cpp | 1748 for (auto *Redecl : D->redecls()) { in hasAcceptableDeclarationImpl() local 1749 auto *R = cast<NamedDecl>(Redecl); in hasAcceptableDeclarationImpl() 3362 RedeclarationKind Redecl) { in LookupSingleName() argument 3363 LookupResult R(*this, Name, Loc, NameKind, Redecl); in LookupSingleName()
|
| H A D | SemaObjC.cpp | 1299 RedeclarationKind Redecl) { in LookupProtocol() argument 1301 Sema::LookupObjCProtocolName, Redecl); in LookupProtocol()
|
| H A D | SemaType.cpp | 9225 for (auto *Redecl : ED->redecls()) { in hasAcceptableDefinition() local 9226 if (isAcceptable(Redecl, Kind)) in hasAcceptableDefinition() 9228 if (Redecl->isThisDeclarationADefinition() || in hasAcceptableDefinition() 9229 (Redecl->isCanonicalDecl() && !*Suggested)) in hasAcceptableDefinition() 9230 *Suggested = Redecl; in hasAcceptableDefinition()
|
| H A D | SemaHLSL.cpp | 2259 for (const auto *Redecl : FD->redecls()) { in RunOnTranslationUnit() local 2260 if (Redecl->isInExportDeclContext()) { in RunOnTranslationUnit()
|
| H A D | SemaDecl.cpp | 17385 const TagDecl *Redecl = PrevDef ? PrevDef : Previous; in isAcceptableTagRedeclaration() local 17386 if (Redecl->getTagKind() != NewTag) { in isAcceptableTagRedeclaration() 17390 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration() 17395 << getRedeclDiagFromTagKind(Redecl->getTagKind()) in isAcceptableTagRedeclaration() 17397 TypeWithKeyword::getTagTypeKindName(Redecl->getTagKind())); in isAcceptableTagRedeclaration() 17628 RedeclarationKind Redecl = forRedeclarationInCurContext(); in ActOnTag() local 17630 Redecl = RedeclarationKind::NotForRedeclaration; in ActOnTag() 17687 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl); in ActOnTag()
|
| H A D | SemaDeclAttr.cpp | 5471 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr() 5472 Redecl->addAttr(::new (S.Context) OwnerAttr(S.Context, AL, DerefTypeLoc)); in handleLifetimeCategoryAttr() 5490 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr() 5491 Redecl->addAttr(::new (S.Context) in handleLifetimeCategoryAttr()
|
| H A D | SemaExprObjC.cpp | 3850 for (auto *Redecl : RT->getDecl()->getMostRecentDecl()->redecls()) { in getObjCBridgeAttr() local 3851 if (auto *attr = Redecl->getAttr<T>()) in getObjCBridgeAttr()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | PtrTypesSemantics.cpp | 257 for (auto *Redecl : RT->getDecl()->getMostRecentDecl()->redecls()) { in visitTypedef() local 258 if (Redecl->getAttr<ObjCBridgeAttr>() || in visitTypedef() 259 Redecl->getAttr<ObjCBridgeMutableAttr>()) { in visitTypedef()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 2724 auto CheckRedeclForInline = [](const FunctionDecl *Redecl) { in SetLLVMFunctionAttributesForDefinition() argument 2725 return Redecl->isInlineSpecified(); in SetLLVMFunctionAttributesForDefinition()
|