| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Lookup.h | 149 Redecl(Redecl != Sema::NotForRedeclaration), 150 ExternalRedecl(Redecl == Sema::ForExternalRedeclaration), 151 Diagnose(Redecl == Sema::NotForRedeclaration) { 162 Redecl(Redecl != Sema::NotForRedeclaration), 164 Diagnose(Redecl == Sema::NotForRedeclaration) { 173 LookupKind(Other.LookupKind), IDNS(Other.IDNS), Redecl(Other.Redecl), in LookupResult() 192 Redecl(std::move(Other.Redecl)), in LookupResult() 215 Redecl = std::move(Other.Redecl); 259 return Redecl; in isForRedeclaration() 599 Redecl = (RK != Sema::NotForRedeclaration); in setRedeclarationKind() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | standalone-debug-attribute.cpp | 47 struct STANDALONEDEBUGATTR Redecl; variable 48 struct Redecl {}; struct 49 void f(Redecl &s) {} in f()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTReaderDecl.cpp | 704 return Redecl; in VisitTypedefNameDecl() 753 return Redecl; in VisitTagDecl() 822 return Redecl; in VisitRecordDeclImpl() 1594 return Redecl; in VisitVarDeclImpl() 2074 return Redecl; in VisitCXXRecordDeclImpl() 2233 return Redecl; in VisitRedeclarableTemplateDecl() 2345 return Redecl; in VisitClassTemplateSpecializationDeclImpl() 4193 for (auto *Redecl = MostRecent; Redecl && !Found; in forAllLaterRedecls() local 4194 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls() 4199 for (auto *Redecl = MostRecent; Redecl != D; in forAllLaterRedecls() local [all …]
|
| H A D | ASTWriterDecl.cpp | 1802 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl() local 1803 if (IsLocalDecl(Redecl)) in getFirstLocalDecl() 1804 D = Redecl; in getFirstLocalDecl()
|
| H A D | ASTWriter.cpp | 3435 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup() local 3437 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup() 3439 if (!Redecl->isFromASTFile()) { in getDeclForLocalLookup() 3443 if (!Redecl->getDeclContext()->getRedeclContext()->Equals( in getDeclForLocalLookup() 3446 return cast<NamedDecl>(Redecl); in getDeclForLocalLookup() 3451 if (Redecl->getOwningModuleID() == 0) in getDeclForLocalLookup()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ASTDumper.cpp | 93 auto *Redecl = cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local 94 switch (Redecl->getTemplateSpecializationKind()) { in dumpTemplateDeclSpecialization() 103 NodeDumper.dumpDeclRef(Redecl); in dumpTemplateDeclSpecialization() 105 Visit(Redecl); in dumpTemplateDeclSpecialization()
|
| H A D | DeclObjC.cpp | 930 ObjCMethodDecl *Redecl = nullptr; in getNextRedeclarationImpl() local 933 if (Redecl) in getNextRedeclarationImpl() 934 return Redecl; in getNextRedeclarationImpl() 942 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 947 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 952 Redecl = IFD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 957 Redecl = CatD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 964 if (Redecl && cast<Decl>(Redecl->getDeclContext())->isInvalidDecl()) in getNextRedeclarationImpl() 965 Redecl = nullptr; in getNextRedeclarationImpl() 967 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 | 3514 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC() argument 3515 if (Redecl->getStorageClass() != SC_Extern) in redeclForcesDefMSVC() 3526 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99() argument 3528 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99() 3533 if (Redecl->isImplicit()) in RedeclForcesDefC99() 3536 if (!Redecl->isInlineSpecified() || Redecl->getStorageClass() == SC_Extern) in RedeclForcesDefC99() 3689 for (auto Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local 3690 if (Redecl->isInlineSpecified() && in isInlineDefinitionExternallyVisible() 3691 Redecl->getStorageClass() != SC_Extern) in isInlineDefinitionExternallyVisible() 3706 for (auto Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local [all …]
|
| H A D | ASTContext.cpp | 431 for (const auto Redecl : D->redecls()) { in getRawCommentForAnyRedecl() local 432 assert(Redecl); in getRawCommentForAnyRedecl() 435 if (LastCheckedRedecl == Redecl) { in getRawCommentForAnyRedecl() 440 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl() 442 cacheRawCommentForDecl(*Redecl, *RedeclComment); in getRawCommentForAnyRedecl() 444 *OriginalDecl = Redecl; in getRawCommentForAnyRedecl() 447 CommentlessRedeclChains[CanonicalD] = Redecl; in getRawCommentForAnyRedecl() 2934 const ObjCMethodDecl *Redecl) { in setObjCMethodRedeclaration() argument 2936 ObjCMethodRedecls[MD] = Redecl; in setObjCMethodRedeclaration()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | JSONNodeDumper.h | 368 const auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in writeTemplateDeclSpecialization() local 369 if (!Redecl) { in writeTemplateDeclSpecialization() 378 switch (Redecl->getTemplateSpecializationKind()) { in writeTemplateDeclSpecialization() 387 NodeDumper.AddChild([=] { NodeDumper.writeBareDeclRef(Redecl); }); in writeTemplateDeclSpecialization() 389 Visit(Redecl); in writeTemplateDeclSpecialization()
|
| H A D | ASTNodeTraverser.h | 517 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local 518 if (!Redecl) { in dumpTemplateDeclSpecialization() 526 Visit(Redecl); in dumpTemplateDeclSpecialization()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | PassByValueCheck.cpp | 185 for (const FunctionDecl *Redecl : Ctor->redecls()) in collectParamDecls() local 186 Results.push_back(Redecl->getParamDecl(ParamIdx)); in collectParamDecls()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | anonymous-struct-union.c | 39 struct Redecl { struct
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaAvailability.cpp | 343 for (const Decl *Redecl = OffendingDecl->getMostRecentDecl(); Redecl; in DoEmitAvailabilityWarning() local 344 Redecl = Redecl->getPreviousDecl()) { in DoEmitAvailabilityWarning() 346 getAttrForPlatform(S.Context, Redecl); in DoEmitAvailabilityWarning() 350 NoteLocation = Redecl->getLocation(); in DoEmitAvailabilityWarning()
|
| H A D | SemaLookup.cpp | 1677 for (auto *Redecl : D->redecls()) { in hasAcceptableDeclarationImpl() local 1678 auto *R = cast<NamedDecl>(Redecl); in hasAcceptableDeclarationImpl() 3281 RedeclarationKind Redecl) { in LookupSingleName() argument 3282 LookupResult R(*this, Name, Loc, NameKind, Redecl); in LookupSingleName() 3290 RedeclarationKind Redecl) { in LookupProtocol() argument 3292 LookupObjCProtocolName, Redecl); in LookupProtocol()
|
| H A D | SemaExceptionSpec.cpp | 249 for (FunctionDecl *Redecl : FD->redecls()) in UpdateExceptionSpec() 250 Context.adjustExceptionSpec(Redecl, ESI); in UpdateExceptionSpec()
|
| H A D | SemaAttr.cpp | 104 for (Decl *Redecl : Record->redecls()) in addGslOwnerPointerAttributeIfNotExisting() 105 Redecl->addAttr(Attribute::CreateImplicit(Context, /*DerefType=*/nullptr)); in addGslOwnerPointerAttributeIfNotExisting()
|
| H A D | SemaExprMember.cpp | 698 Sema::RedeclarationKind Redecl; in LookupMemberExprInRecord() member 720 LookupResult R(Q.SemaRef, Q.NameInfo, Q.LookupKind, Q.Redecl); in LookupMemberExprInRecord()
|
| H A D | SemaType.cpp | 8674 for (auto *Redecl : ED->redecls()) { in hasAcceptableDefinition() local 8675 if (isAcceptable(Redecl, Kind)) in hasAcceptableDefinition() 8677 if (Redecl->isThisDeclarationADefinition() || in hasAcceptableDefinition() 8678 (Redecl->isCanonicalDecl() && !*Suggested)) in hasAcceptableDefinition() 8679 *Suggested = Redecl; in hasAcceptableDefinition()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | InconsistentDeclarationParameterNameCheck.cpp | 348 for (const FunctionDecl *Redecl : OriginalDeclaration->redecls()) { in markRedeclarationsAsVisited() local 349 VisitedDeclarations.insert(Redecl); in markRedeclarationsAsVisited()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | anonymous-union.cpp | 63 struct Redecl { struct
|
| H A D | deduced-return-type-cxx14.cpp | 359 namespace Redecl { namespace
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | IncludeCleaner.cpp | 177 for (const Decl *Redecl : D->redecls()) in add() local 178 Result.User.insert(Redecl->getLocation()); in add()
|
| H A D | Quality.cpp | 36 for (auto *Redecl : D.redecls()) { in hasDeclInMainFile() local 37 if (isInsideMainFile(Redecl->getLocation(), SourceMgr)) in hasDeclInMainFile()
|