Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DLookup.h147 Sema::RedeclarationKind Redecl = Sema::NotForRedeclaration)
149 Redecl(Redecl != Sema::NotForRedeclaration),
150 ExternalRedecl(Redecl == Sema::ForExternalRedeclaration),
151 Diagnose(Redecl == Sema::NotForRedeclaration) {
160 Sema::RedeclarationKind Redecl = Sema::NotForRedeclaration)
162 Redecl(Redecl != Sema::NotForRedeclaration),
163 ExternalRedecl(Redecl == Sema::ForExternalRedeclaration),
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()
[all …]
H A DSema.h4449 RedeclarationKind Redecl
4463 RedeclarationKind Redecl
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DASTReaderDecl.cpp422 void mergeRedeclarable(Redeclarable<T> *D, RedeclarableResult &Redecl);
425 RedeclarableResult &Redecl);
429 RedeclarableResult &Redecl);
696 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTypedefNameDecl() local
709 return Redecl; in VisitTypedefNameDecl()
713 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypedefDecl() local
714 mergeRedeclarable(TD, Redecl); in VisitTypedefDecl()
718 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypeAliasDecl() local
723 mergeRedeclarable(TD, Redecl); in VisitTypeAliasDecl()
727 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTagDecl() local
[all …]
H A DASTWriterDecl.cpp1830 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl() local
1831 if (IsLocalDecl(Redecl)) in getFirstLocalDecl()
1832 D = Redecl; in getFirstLocalDecl()
H A DASTWriter.cpp3454 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup() local
3456 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup()
3458 if (!Redecl->isFromASTFile()) { in getDeclForLocalLookup()
3462 if (!Redecl->getDeclContext()->getRedeclContext()->Equals( in getDeclForLocalLookup()
3465 return cast<NamedDecl>(Redecl); in getDeclForLocalLookup()
3470 if (Redecl->getOwningModuleID() == 0) in getDeclForLocalLookup()
H A DASTReader.cpp9835 for (auto *Redecl : Update.second->redecls()) in FinishedDeserializing() local
9836 getContext().adjustExceptionSpec(cast<FunctionDecl>(Redecl), ESI); in FinishedDeserializing()
/openbsd-src/gnu/llvm/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.cpp3548 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC() argument
3549 if (Redecl->getStorageClass() != SC_Extern) in redeclForcesDefMSVC()
3552 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3560 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99() argument
3562 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
3567 if (Redecl->isImplicit()) in RedeclForcesDefC99()
3570 if (!Redecl->isInlineSpecified() || Redecl->getStorageClass() == SC_Extern) in RedeclForcesDefC99()
3723 for (auto *Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local
3724 if (Redecl->isInlineSpecified() && in isInlineDefinitionExternallyVisible()
3725 Redecl->getStorageClass() != SC_Extern) in isInlineDefinitionExternallyVisible()
[all …]
H A DASTContext.cpp433 for (const auto Redecl : D->redecls()) { in getRawCommentForAnyRedecl() local
434 assert(Redecl); in getRawCommentForAnyRedecl()
437 if (LastCheckedRedecl == Redecl) { in getRawCommentForAnyRedecl()
442 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl()
444 cacheRawCommentForDecl(*Redecl, *RedeclComment); in getRawCommentForAnyRedecl()
446 *OriginalDecl = Redecl; in getRawCommentForAnyRedecl()
449 CommentlessRedeclChains[CanonicalD] = Redecl; in getRawCommentForAnyRedecl()
2945 const ObjCMethodDecl *Redecl) { in setObjCMethodRedeclaration() argument
2947 ObjCMethodRedecls[MD] = Redecl; in setObjCMethodRedeclaration()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DJSONNodeDumper.h373 const auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in writeTemplateDeclSpecialization() local
374 if (!Redecl) { in writeTemplateDeclSpecialization()
383 switch (Redecl->getTemplateSpecializationKind()) { in writeTemplateDeclSpecialization()
392 NodeDumper.AddChild([=] { NodeDumper.writeBareDeclRef(Redecl); }); in writeTemplateDeclSpecialization()
394 Visit(Redecl); in writeTemplateDeclSpecialization()
H A DASTNodeTraverser.h516 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local
517 if (!Redecl) { in dumpTemplateDeclSpecialization()
525 Visit(Redecl); in dumpTemplateDeclSpecialization()
H A DASTContext.h2991 const ObjCMethodDecl *Redecl);
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaAvailability.cpp347 for (const Decl *Redecl = OffendingDecl->getMostRecentDecl(); Redecl; in DoEmitAvailabilityWarning() local
348 Redecl = Redecl->getPreviousDecl()) { in DoEmitAvailabilityWarning()
350 getAttrForPlatform(S.Context, Redecl); in DoEmitAvailabilityWarning()
354 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()
3292 RedeclarationKind Redecl) { in LookupSingleName() argument
3293 LookupResult R(*this, Name, Loc, NameKind, Redecl); in LookupSingleName()
3301 RedeclarationKind Redecl) { in LookupProtocol() argument
3303 LookupObjCProtocolName, Redecl); in LookupProtocol()
H A DSemaAttr.cpp107 for (Decl *Redecl : Record->redecls()) in addGslOwnerPointerAttributeIfNotExisting()
108 Redecl->addAttr(Attribute::CreateImplicit(Context, /*DerefType=*/nullptr)); in addGslOwnerPointerAttributeIfNotExisting()
H A DSemaExceptionSpec.cpp250 for (FunctionDecl *Redecl : FD->redecls()) in UpdateExceptionSpec()
251 Context.adjustExceptionSpec(Redecl, ESI); in UpdateExceptionSpec()
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.cpp8776 for (auto *Redecl : ED->redecls()) { in hasAcceptableDefinition() local
8777 if (isAcceptable(Redecl, Kind)) in hasAcceptableDefinition()
8779 if (Redecl->isThisDeclarationADefinition() || in hasAcceptableDefinition()
8780 (Redecl->isCanonicalDecl() && !*Suggested)) in hasAcceptableDefinition()
8781 *Suggested = Redecl; in hasAcceptableDefinition()
H A DSemaDecl.cpp16520 const TagDecl *Redecl = PrevDef ? PrevDef : Previous; in isAcceptableTagRedeclaration() local
16521 if (Redecl->getTagKind() != NewTag) { in isAcceptableTagRedeclaration()
16525 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration()
16530 << getRedeclDiagFromTagKind(Redecl->getTagKind()) in isAcceptableTagRedeclaration()
16532 TypeWithKeyword::getTagTypeKindName(Redecl->getTagKind())); in isAcceptableTagRedeclaration()
16718 RedeclarationKind Redecl = forRedeclarationInCurContext(); in ActOnTag() local
16720 Redecl = NotForRedeclaration; in ActOnTag()
16774 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl); in ActOnTag()
H A DSemaExprObjC.cpp3846 for (auto *Redecl : RT->getDecl()->getMostRecentDecl()->redecls()) { in getObjCBridgeAttr() local
3847 if (auto *attr = Redecl->getAttr<T>()) in getObjCBridgeAttr()
H A DSemaDeclAttr.cpp5169 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr()
5170 Redecl->addAttr(::new (S.Context) OwnerAttr(S.Context, AL, DerefTypeLoc)); in handleLifetimeCategoryAttr()
5186 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr()
5187 Redecl->addAttr(::new (S.Context) in handleLifetimeCategoryAttr()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenModule.cpp2085 auto CheckRedeclForInline = [](const FunctionDecl *Redecl) { in SetLLVMFunctionAttributesForDefinition() argument
2086 return Redecl->isInlineSpecified(); in SetLLVMFunctionAttributesForDefinition()
/openbsd-src/gnu/llvm/clang/docs/
H A DInternalsManual.rst2188 .. Redecl chains of other declarations