Home
last modified time | relevance | path

Searched refs:Redecl (Results 1 – 25 of 33) sorted by relevance

12

/llvm-project-15.0.7/clang/include/clang/Sema/
H A DLookup.h149 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 Dstandalone-debug-attribute.cpp47 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 DASTReaderDecl.cpp704 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 DASTWriterDecl.cpp1802 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 DASTWriter.cpp3435 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 DASTDumper.cpp93 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 DDeclObjC.cpp930 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 DAPValue.cpp73 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 DDecl.cpp3514 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 DASTContext.cpp431 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 DJSONNodeDumper.h368 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 DASTNodeTraverser.h517 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 DPassByValueCheck.cpp185 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 Danonymous-struct-union.c39 struct Redecl { struct
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaAvailability.cpp343 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 DSemaLookup.cpp1677 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 DSemaExceptionSpec.cpp249 for (FunctionDecl *Redecl : FD->redecls()) in UpdateExceptionSpec()
250 Context.adjustExceptionSpec(Redecl, ESI); in UpdateExceptionSpec()
H A DSemaAttr.cpp104 for (Decl *Redecl : Record->redecls()) in addGslOwnerPointerAttributeIfNotExisting()
105 Redecl->addAttr(Attribute::CreateImplicit(Context, /*DerefType=*/nullptr)); in addGslOwnerPointerAttributeIfNotExisting()
H A DSemaExprMember.cpp698 Sema::RedeclarationKind Redecl; in LookupMemberExprInRecord() member
720 LookupResult R(Q.SemaRef, Q.NameInfo, Q.LookupKind, Q.Redecl); in LookupMemberExprInRecord()
H A DSemaType.cpp8674 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 DInconsistentDeclarationParameterNameCheck.cpp348 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 Danonymous-union.cpp63 struct Redecl { struct
H A Ddeduced-return-type-cxx14.cpp359 namespace Redecl { namespace
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DIncludeCleaner.cpp177 for (const Decl *Redecl : D->redecls()) in add() local
178 Result.User.insert(Redecl->getLocation()); in add()
H A DQuality.cpp36 for (auto *Redecl : D.redecls()) { in hasDeclInMainFile() local
37 if (isInsideMainFile(Redecl->getLocation(), SourceMgr)) in hasDeclInMainFile()

12