Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/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()
573 Redecl = (RK != Sema::NotForRedeclaration); in setRedeclarationKind()
[all …]
H A DSema.h4110 RedeclarationKind Redecl
4124 RedeclarationKind Redecl
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp690 return Redecl; in VisitTypedefNameDecl()
739 return Redecl; in VisitTagDecl()
808 return Redecl; in VisitRecordDeclImpl()
1490 return Redecl; in VisitVarDeclImpl()
1970 return Redecl; in VisitCXXRecordDeclImpl()
2129 return Redecl; in VisitRedeclarableTemplateDecl()
2241 return Redecl; in VisitClassTemplateSpecializationDeclImpl()
4443 for (auto *Redecl = MostRecent; Redecl && !Found; in forAllLaterRedecls() local
4444 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
4449 for (auto *Redecl = MostRecent; Redecl != D; in forAllLaterRedecls() local
[all …]
H A DASTWriterDecl.cpp1792 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl() local
1793 if (IsLocalDecl(Redecl)) in getFirstLocalDecl()
1794 D = Redecl; in getFirstLocalDecl()
H A DASTWriter.cpp3235 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup() local
3237 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup()
3239 if (!Redecl->isFromASTFile()) { in getDeclForLocalLookup()
3243 if (!Redecl->getDeclContext()->getRedeclContext()->Equals( in getDeclForLocalLookup()
3246 return cast<NamedDecl>(Redecl); in getDeclForLocalLookup()
3251 if (Redecl->getOwningModuleID() == 0) in getDeclForLocalLookup()
H A DASTReader.cpp11594 for (auto *Redecl : Update.second->redecls()) in FinishedDeserializing() local
11595 getContext().adjustExceptionSpec(cast<FunctionDecl>(Redecl), ESI); in FinishedDeserializing()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DASTDumper.cpp93 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local
94 if (!Redecl) { in dumpTemplateDeclSpecialization()
102 switch (Redecl->getTemplateSpecializationKind()) { in dumpTemplateDeclSpecialization()
111 NodeDumper.dumpDeclRef(Redecl); in dumpTemplateDeclSpecialization()
113 Visit(Redecl); in dumpTemplateDeclSpecialization()
H A DDeclObjC.cpp914 ObjCMethodDecl *Redecl = nullptr; in getNextRedeclarationImpl() local
917 if (Redecl) in getNextRedeclarationImpl()
918 return Redecl; in getNextRedeclarationImpl()
926 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
931 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
936 Redecl = IFD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
941 Redecl = CatD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
948 if (Redecl && cast<Decl>(Redecl->getDeclContext())->isInvalidDecl()) in getNextRedeclarationImpl()
949 Redecl = nullptr; in getNextRedeclarationImpl()
951 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.cpp3406 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC() argument
3407 if (Redecl->getStorageClass() != SC_Extern) in redeclForcesDefMSVC()
3418 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99() argument
3420 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
3425 if (Redecl->isImplicit()) in RedeclForcesDefC99()
3428 if (!Redecl->isInlineSpecified() || Redecl->getStorageClass() == SC_Extern) in RedeclForcesDefC99()
3581 for (auto Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local
3582 if (Redecl->isInlineSpecified() && in isInlineDefinitionExternallyVisible()
3583 Redecl->getStorageClass() != SC_Extern) in isInlineDefinitionExternallyVisible()
3598 for (auto Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local
[all …]
H A DASTContext.cpp425 for (const auto Redecl : D->redecls()) { in getRawCommentForAnyRedecl() local
426 assert(Redecl); in getRawCommentForAnyRedecl()
429 if (LastCheckedRedecl == Redecl) { in getRawCommentForAnyRedecl()
434 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl()
436 cacheRawCommentForDecl(*Redecl, *RedeclComment); in getRawCommentForAnyRedecl()
438 *OriginalDecl = Redecl; in getRawCommentForAnyRedecl()
441 CommentlessRedeclChains[CanonicalD] = Redecl; in getRawCommentForAnyRedecl()
2853 const ObjCMethodDecl *Redecl) { in setObjCMethodRedeclaration() argument
2855 ObjCMethodRedecls[MD] = Redecl; in setObjCMethodRedeclaration()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DJSONNodeDumper.h367 const auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in writeTemplateDeclSpecialization() local
368 if (!Redecl) { in writeTemplateDeclSpecialization()
377 switch (Redecl->getTemplateSpecializationKind()) { in writeTemplateDeclSpecialization()
386 NodeDumper.AddChild([=] { NodeDumper.writeBareDeclRef(Redecl); }); in writeTemplateDeclSpecialization()
388 Visit(Redecl); in writeTemplateDeclSpecialization()
H A DASTNodeTraverser.h510 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local
511 if (!Redecl) { in dumpTemplateDeclSpecialization()
519 Visit(Redecl); in dumpTemplateDeclSpecialization()
H A DASTContext.h2872 const ObjCMethodDecl *Redecl);
/freebsd-13.1/contrib/llvm-project/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 DSemaAttr.cpp104 for (Decl *Redecl : Record->redecls()) in addGslOwnerPointerAttributeIfNotExisting()
105 Redecl->addAttr(Attribute::CreateImplicit(Context, /*DerefType=*/nullptr)); in addGslOwnerPointerAttributeIfNotExisting()
H A DSemaLookup.cpp1620 for (auto *Redecl : D->redecls()) { in hasVisibleDeclarationImpl() local
1621 auto *R = cast<NamedDecl>(Redecl); in hasVisibleDeclarationImpl()
3025 RedeclarationKind Redecl) { in LookupSingleName() argument
3026 LookupResult R(*this, Name, Loc, NameKind, Redecl); in LookupSingleName()
3034 RedeclarationKind Redecl) { in LookupProtocol() argument
3036 LookupObjCProtocolName, Redecl); in LookupProtocol()
H A DSemaExceptionSpec.cpp245 for (FunctionDecl *Redecl : FD->redecls()) in UpdateExceptionSpec()
246 Context.adjustExceptionSpec(Redecl, ESI); in UpdateExceptionSpec()
H A DSemaExprMember.cpp697 Sema::RedeclarationKind Redecl; in LookupMemberExprInRecord() member
719 LookupResult R(Q.SemaRef, Q.NameInfo, Q.LookupKind, Q.Redecl); in LookupMemberExprInRecord()
H A DSemaType.cpp8479 for (auto *Redecl : ED->redecls()) { in hasVisibleDefinition() local
8480 if (isVisible(Redecl)) in hasVisibleDefinition()
8482 if (Redecl->isThisDeclarationADefinition() || in hasVisibleDefinition()
8483 (Redecl->isCanonicalDecl() && !*Suggested)) in hasVisibleDefinition()
8484 *Suggested = Redecl; in hasVisibleDefinition()
H A DSemaDecl.cpp15444 const TagDecl *Redecl = PrevDef ? PrevDef : Previous; in isAcceptableTagRedeclaration() local
15445 if (Redecl->getTagKind() != NewTag) { in isAcceptableTagRedeclaration()
15449 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration()
15454 << getRedeclDiagFromTagKind(Redecl->getTagKind()) in isAcceptableTagRedeclaration()
15456 TypeWithKeyword::getTagTypeKindName(Redecl->getTagKind())); in isAcceptableTagRedeclaration()
15643 RedeclarationKind Redecl = forRedeclarationInCurContext(); in ActOnTag() local
15645 Redecl = NotForRedeclaration; in ActOnTag()
15696 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl); in ActOnTag()
H A DSemaDeclAttr.cpp4755 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr()
4756 Redecl->addAttr(::new (S.Context) OwnerAttr(S.Context, AL, DerefTypeLoc)); in handleLifetimeCategoryAttr()
4772 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr()
4773 Redecl->addAttr(::new (S.Context) in handleLifetimeCategoryAttr()
H A DSemaExprObjC.cpp3852 for (auto *Redecl : RT->getDecl()->getMostRecentDecl()->redecls()) { in getObjCBridgeAttr() local
3853 if (auto *attr = Redecl->getAttr<T>()) in getObjCBridgeAttr()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp1836 auto CheckRedeclForInline = [](const FunctionDecl *Redecl) { in SetLLVMFunctionAttributesForDefinition() argument
1837 return Redecl->isInlineSpecified(); in SetLLVMFunctionAttributesForDefinition()