Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DLookup.h159 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 DSemaObjC.h142 RedeclarationKind Redecl = RedeclarationKind::NotForRedeclaration);
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp428 void mergeRedeclarable(Redeclarable<T> *D, RedeclarableResult &Redecl);
430 void mergeLambda(CXXRecordDecl *D, RedeclarableResult &Redecl,
434 RedeclarableResult &Redecl);
438 RedeclarableResult &Redecl);
719 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTypedefNameDecl() local
732 return Redecl; in VisitTypedefNameDecl()
736 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypedefDecl() local
737 mergeRedeclarable(TD, Redecl); in VisitTypedefDecl()
741 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypeAliasDecl() local
746 mergeRedeclarable(TD, Redecl); in VisitTypeAliasDecl()
[all …]
H A DASTWriterDecl.cpp2025 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl() local
2026 if (IsLocalDecl(Redecl)) in getFirstLocalDecl()
2027 D = Redecl; in getFirstLocalDecl()
H A DASTWriter.cpp3701 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup() local
3703 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup()
3705 if (!Redecl->isFromASTFile()) { in getDeclForLocalLookup()
3709 if (!Redecl->getDeclContext()->getRedeclContext()->Equals( in getDeclForLocalLookup()
3712 return cast<NamedDecl>(Redecl); in getDeclForLocalLookup()
3717 if (Redecl->getOwningModuleID() == 0) in getDeclForLocalLookup()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTDumper.cpp121 auto *Redecl = cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local
122 switch (Redecl->getTemplateSpecializationKind()) { in dumpTemplateDeclSpecialization()
131 NodeDumper.dumpDeclRef(Redecl); in dumpTemplateDeclSpecialization()
133 Visit(Redecl); in dumpTemplateDeclSpecialization()
H A DDeclObjC.cpp965 ObjCMethodDecl *Redecl = nullptr; in getNextRedeclarationImpl() local
967 Redecl = const_cast<ObjCMethodDecl*>(Ctx.getObjCMethodRedeclaration(this)); in getNextRedeclarationImpl()
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()
[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.cpp3761 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC() argument
3762 if (Redecl->getStorageClass() != SC_Extern) in redeclForcesDefMSVC()
3765 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3773 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99() argument
3775 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
3780 if (Redecl->isImplicit()) in RedeclForcesDefC99()
3783 if (!Redecl->isInlineSpecified() || Redecl->getStorageClass() == SC_Extern) in RedeclForcesDefC99()
3936 for (auto *Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local
3937 if (Redecl->isInlineSpecified() && in isInlineDefinitionExternallyVisible()
3938 Redecl->getStorageClass() != SC_Extern) in isInlineDefinitionExternallyVisible()
[all …]
H A DASTContext.cpp448 for (const auto Redecl : D->redecls()) { in getRawCommentForAnyRedecl() local
449 assert(Redecl); in getRawCommentForAnyRedecl()
452 if (LastCheckedRedecl == Redecl) { in getRawCommentForAnyRedecl()
457 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl()
459 cacheRawCommentForDecl(*Redecl, *RedeclComment); in getRawCommentForAnyRedecl()
461 *OriginalDecl = Redecl; in getRawCommentForAnyRedecl()
464 CommentlessRedeclChains[CanonicalD] = Redecl; in getRawCommentForAnyRedecl()
2961 const ObjCMethodDecl *Redecl) { in setObjCMethodRedeclaration() argument
2963 ObjCMethodRedecls[MD] = Redecl; in setObjCMethodRedeclaration()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DJSONNodeDumper.h387 const auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in writeTemplateDeclSpecialization() local
388 if (!Redecl) { in writeTemplateDeclSpecialization()
397 switch (Redecl->getTemplateSpecializationKind()) { in writeTemplateDeclSpecialization()
406 NodeDumper.AddChild([=] { NodeDumper.writeBareDeclRef(Redecl); }); in writeTemplateDeclSpecialization()
408 Visit(Redecl); in writeTemplateDeclSpecialization()
H A DASTNodeTraverser.h618 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local
619 if (!Redecl) { in dumpTemplateDeclSpecialization()
627 Visit(Redecl); in dumpTemplateDeclSpecialization()
H A DASTContext.h3115 const ObjCMethodDecl *Redecl);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAvailability.cpp424 for (const Decl *Redecl = OffendingDecl->getMostRecentDecl(); Redecl; in DoEmitAvailabilityWarning() local
425 Redecl = Redecl->getPreviousDecl()) { in DoEmitAvailabilityWarning()
427 getAttrForPlatform(S.Context, Redecl); in DoEmitAvailabilityWarning()
431 NoteLocation = Redecl->getLocation(); in DoEmitAvailabilityWarning()
H A DSemaAttr.cpp107 for (Decl *Redecl : Record->redecls()) in addGslOwnerPointerAttributeIfNotExisting()
108 Redecl->addAttr(Attribute::CreateImplicit(Context, /*DerefType=*/nullptr)); in addGslOwnerPointerAttributeIfNotExisting()
227 for (Decl *Redecl : CRD->redecls()) in inferNullableClassAttribute()
228 Redecl->addAttr(TypeNullableAttr::CreateImplicit(Context)); in inferNullableClassAttribute()
H A DSemaHLSL.cpp735 for (const auto *Redecl : FD->redecls()) { in RunOnTranslationUnit() local
736 if (Redecl->isInExportDeclContext()) { in RunOnTranslationUnit()
H A DSemaExceptionSpec.cpp247 for (FunctionDecl *Redecl : FD->redecls()) in UpdateExceptionSpec()
248 Context.adjustExceptionSpec(Redecl, ESI); in UpdateExceptionSpec()
H A DSemaExprMember.cpp740 RedeclarationKind Redecl; in LookupMemberExprInRecord() member
763 LookupResult R(Q.SemaRef, Q.NameInfo, Q.LookupKind, Q.Redecl); in LookupMemberExprInRecord()
H A DSemaLookup.cpp1711 for (auto *Redecl : D->redecls()) { in hasAcceptableDeclarationImpl() local
1712 auto *R = cast<NamedDecl>(Redecl); in hasAcceptableDeclarationImpl()
3269 RedeclarationKind Redecl) { in LookupSingleName() argument
3270 LookupResult R(*this, Name, Loc, NameKind, Redecl); in LookupSingleName()
H A DSemaObjC.cpp1302 RedeclarationKind Redecl) { in LookupProtocol() argument
1304 Sema::LookupObjCProtocolName, Redecl); in LookupProtocol()
H A DSemaType.cpp8940 for (auto *Redecl : ED->redecls()) { in hasAcceptableDefinition() local
8941 if (isAcceptable(Redecl, Kind)) in hasAcceptableDefinition()
8943 if (Redecl->isThisDeclarationADefinition() || in hasAcceptableDefinition()
8944 (Redecl->isCanonicalDecl() && !*Suggested)) in hasAcceptableDefinition()
8945 *Suggested = Redecl; in hasAcceptableDefinition()
H A DSemaDeclAttr.cpp4821 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr()
4822 Redecl->addAttr(::new (S.Context) OwnerAttr(S.Context, AL, DerefTypeLoc)); in handleLifetimeCategoryAttr()
4840 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr()
4841 Redecl->addAttr(::new (S.Context) in handleLifetimeCategoryAttr()
H A DSemaDecl.cpp16896 const TagDecl *Redecl = PrevDef ? PrevDef : Previous; in isAcceptableTagRedeclaration() local
16897 if (Redecl->getTagKind() != NewTag) { in isAcceptableTagRedeclaration()
16901 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration()
16906 << getRedeclDiagFromTagKind(Redecl->getTagKind()) in isAcceptableTagRedeclaration()
16908 TypeWithKeyword::getTagTypeKindName(Redecl->getTagKind())); in isAcceptableTagRedeclaration()
17124 RedeclarationKind Redecl = forRedeclarationInCurContext(); in ActOnTag() local
17126 Redecl = RedeclarationKind::NotForRedeclaration; in ActOnTag()
17181 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl); in ActOnTag()
H A DSemaExprObjC.cpp3860 for (auto *Redecl : RT->getDecl()->getMostRecentDecl()->redecls()) { in getObjCBridgeAttr() local
3861 if (auto *attr = Redecl->getAttr<T>()) in getObjCBridgeAttr()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp2518 auto CheckRedeclForInline = [](const FunctionDecl *Redecl) { in SetLLVMFunctionAttributesForDefinition() argument
2519 return Redecl->isInlineSpecified(); in SetLLVMFunctionAttributesForDefinition()

12