| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Lookup.h | 160 Redecl(Redecl != Sema::NotForRedeclaration), 162 DiagnoseAccess(Redecl == Sema::NotForRedeclaration), 163 DiagnoseAmbiguous(Redecl == Sema::NotForRedeclaration) { 174 Redecl(Redecl != Sema::NotForRedeclaration), 176 DiagnoseAccess(Redecl == Sema::NotForRedeclaration), 186 LookupKind(Other.LookupKind), IDNS(Other.IDNS), Redecl(Other.Redecl), in LookupResult() 205 Redecl(std::move(Other.Redecl)), in LookupResult() 230 Redecl = std::move(Other.Redecl); 279 return Redecl; in isForRedeclaration() 619 Redecl = (RK != Sema::NotForRedeclaration); in setRedeclarationKind() [all …]
|
| H A D | Sema.h | 4540 RedeclarationKind Redecl 4554 RedeclarationKind Redecl
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTReaderDecl.cpp | 738 return Redecl; in VisitTypedefNameDecl() 789 return Redecl; in VisitTagDecl() 870 return Redecl; in VisitRecordDeclImpl() 1692 return Redecl; in VisitVarDeclImpl() 2286 return Redecl; in VisitCXXRecordDeclImpl() 2447 return Redecl; in VisitRedeclarableTemplateDecl() 2561 return Redecl; in VisitClassTemplateSpecializationDeclImpl() 4455 for (auto *Redecl = MostRecent; Redecl && !Found; in forAllLaterRedecls() local 4456 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls() 4461 for (auto *Redecl = MostRecent; Redecl != D; in forAllLaterRedecls() local [all …]
|
| H A D | ASTWriterDecl.cpp | 1942 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl() local 1943 if (IsLocalDecl(Redecl)) in getFirstLocalDecl() 1944 D = Redecl; in getFirstLocalDecl()
|
| H A D | ASTWriter.cpp | 3538 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup() local 3540 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup() 3542 if (!Redecl->isFromASTFile()) { in getDeclForLocalLookup() 3546 if (!Redecl->getDeclContext()->getRedeclContext()->Equals( in getDeclForLocalLookup() 3549 return cast<NamedDecl>(Redecl); in getDeclForLocalLookup() 3554 if (Redecl->getOwningModuleID() == 0) in getDeclForLocalLookup()
|
| H A D | ASTReader.cpp | 10108 for (auto *Redecl : Update.second->redecls()) in FinishedDeserializing() local 10109 getContext().adjustExceptionSpec(cast<FunctionDecl>(Redecl), ESI); in FinishedDeserializing()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTDumper.cpp | 122 auto *Redecl = cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local 123 switch (Redecl->getTemplateSpecializationKind()) { in dumpTemplateDeclSpecialization() 132 NodeDumper.dumpDeclRef(Redecl); in dumpTemplateDeclSpecialization() 134 Visit(Redecl); in dumpTemplateDeclSpecialization()
|
| H A D | DeclObjC.cpp | 965 ObjCMethodDecl *Redecl = nullptr; in getNextRedeclarationImpl() local 968 if (Redecl) in getNextRedeclarationImpl() 969 return Redecl; in getNextRedeclarationImpl() 977 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 982 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 987 Redecl = IFD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 992 Redecl = CatD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 999 if (Redecl && cast<Decl>(Redecl->getDeclContext())->isInvalidDecl()) in getNextRedeclarationImpl() 1000 Redecl = nullptr; in getNextRedeclarationImpl() 1002 if (!Redecl && isRedeclaration()) { 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 | 3715 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC() argument 3716 if (Redecl->getStorageClass() != SC_Extern) in redeclForcesDefMSVC() 3727 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99() argument 3729 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99() 3734 if (Redecl->isImplicit()) in RedeclForcesDefC99() 3737 if (!Redecl->isInlineSpecified() || Redecl->getStorageClass() == SC_Extern) in RedeclForcesDefC99() 3890 for (auto *Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local 3891 if (Redecl->isInlineSpecified() && in isInlineDefinitionExternallyVisible() 3892 Redecl->getStorageClass() != SC_Extern) in isInlineDefinitionExternallyVisible() 3907 for (auto *Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local [all …]
|
| H A D | ASTContext.cpp | 445 for (const auto Redecl : D->redecls()) { in getRawCommentForAnyRedecl() local 446 assert(Redecl); in getRawCommentForAnyRedecl() 449 if (LastCheckedRedecl == Redecl) { in getRawCommentForAnyRedecl() 454 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl() 456 cacheRawCommentForDecl(*Redecl, *RedeclComment); in getRawCommentForAnyRedecl() 458 *OriginalDecl = Redecl; in getRawCommentForAnyRedecl() 461 CommentlessRedeclChains[CanonicalD] = Redecl; in getRawCommentForAnyRedecl() 2906 const ObjCMethodDecl *Redecl) { in setObjCMethodRedeclaration() argument 2908 ObjCMethodRedecls[MD] = Redecl; in setObjCMethodRedeclaration()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | JSONNodeDumper.h | 382 const auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in writeTemplateDeclSpecialization() local 383 if (!Redecl) { in writeTemplateDeclSpecialization() 392 switch (Redecl->getTemplateSpecializationKind()) { in writeTemplateDeclSpecialization() 401 NodeDumper.AddChild([=] { NodeDumper.writeBareDeclRef(Redecl); }); in writeTemplateDeclSpecialization() 403 Visit(Redecl); in writeTemplateDeclSpecialization()
|
| H A D | ASTNodeTraverser.h | 527 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local 528 if (!Redecl) { in dumpTemplateDeclSpecialization() 536 Visit(Redecl); in dumpTemplateDeclSpecialization()
|
| H A D | ASTContext.h | 3022 const ObjCMethodDecl *Redecl);
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaAvailability.cpp | 359 for (const Decl *Redecl = OffendingDecl->getMostRecentDecl(); Redecl; in DoEmitAvailabilityWarning() local 360 Redecl = Redecl->getPreviousDecl()) { in DoEmitAvailabilityWarning() 362 getAttrForPlatform(S.Context, Redecl); in DoEmitAvailabilityWarning() 366 NoteLocation = Redecl->getLocation(); in DoEmitAvailabilityWarning()
|
| H A D | SemaLookup.cpp | 1690 for (auto *Redecl : D->redecls()) { in hasAcceptableDeclarationImpl() local 1691 auto *R = cast<NamedDecl>(Redecl); in hasAcceptableDeclarationImpl() 3309 RedeclarationKind Redecl) { in LookupSingleName() argument 3310 LookupResult R(*this, Name, Loc, NameKind, Redecl); in LookupSingleName() 3318 RedeclarationKind Redecl) { in LookupProtocol() argument 3320 LookupObjCProtocolName, Redecl); in LookupProtocol()
|
| H A D | SemaAttr.cpp | 107 for (Decl *Redecl : Record->redecls()) in addGslOwnerPointerAttributeIfNotExisting() 108 Redecl->addAttr(Attribute::CreateImplicit(Context, /*DerefType=*/nullptr)); in addGslOwnerPointerAttributeIfNotExisting()
|
| H A D | SemaExceptionSpec.cpp | 256 for (FunctionDecl *Redecl : FD->redecls()) in UpdateExceptionSpec() 257 Context.adjustExceptionSpec(Redecl, ESI); in UpdateExceptionSpec()
|
| H A D | SemaExprMember.cpp | 730 Sema::RedeclarationKind Redecl; in LookupMemberExprInRecord() member 752 LookupResult R(Q.SemaRef, Q.NameInfo, Q.LookupKind, Q.Redecl); in LookupMemberExprInRecord()
|
| H A D | SemaType.cpp | 9266 for (auto *Redecl : ED->redecls()) { in hasAcceptableDefinition() local 9267 if (isAcceptable(Redecl, Kind)) in hasAcceptableDefinition() 9269 if (Redecl->isThisDeclarationADefinition() || in hasAcceptableDefinition() 9270 (Redecl->isCanonicalDecl() && !*Suggested)) in hasAcceptableDefinition() 9271 *Suggested = Redecl; in hasAcceptableDefinition()
|
| H A D | SemaDecl.cpp | 17124 const TagDecl *Redecl = PrevDef ? PrevDef : Previous; in isAcceptableTagRedeclaration() local 17125 if (Redecl->getTagKind() != NewTag) { in isAcceptableTagRedeclaration() 17129 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration() 17134 << getRedeclDiagFromTagKind(Redecl->getTagKind()) in isAcceptableTagRedeclaration() 17136 TypeWithKeyword::getTagTypeKindName(Redecl->getTagKind())); in isAcceptableTagRedeclaration() 17322 RedeclarationKind Redecl = forRedeclarationInCurContext(); in ActOnTag() local 17324 Redecl = NotForRedeclaration; in ActOnTag() 17378 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl); in ActOnTag()
|
| H A D | SemaExprObjC.cpp | 3851 for (auto *Redecl : RT->getDecl()->getMostRecentDecl()->redecls()) { in getObjCBridgeAttr() local 3852 if (auto *attr = Redecl->getAttr<T>()) in getObjCBridgeAttr()
|
| H A D | SemaDeclAttr.cpp | 5310 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr() 5311 Redecl->addAttr(::new (S.Context) OwnerAttr(S.Context, AL, DerefTypeLoc)); in handleLifetimeCategoryAttr() 5329 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr() 5330 Redecl->addAttr(::new (S.Context) in handleLifetimeCategoryAttr()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 2484 auto CheckRedeclForInline = [](const FunctionDecl *Redecl) { in SetLLVMFunctionAttributesForDefinition() argument 2485 return Redecl->isInlineSpecified(); in SetLLVMFunctionAttributesForDefinition()
|