Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/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.h4080 RedeclarationKind Redecl
4094 RedeclarationKind Redecl
/netbsd-src/external/apache2/llvm/dist/clang/lib/Serialization/
H A DASTReaderDecl.cpp414 void mergeRedeclarable(Redeclarable<T> *D, RedeclarableResult &Redecl,
419 RedeclarableResult &Redecl,
675 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTypedefNameDecl() local
688 return Redecl; in VisitTypedefNameDecl()
692 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypedefDecl() local
693 mergeRedeclarable(TD, Redecl); in VisitTypedefDecl()
697 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypeAliasDecl() local
702 mergeRedeclarable(TD, Redecl); in VisitTypeAliasDecl()
706 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTagDecl() local
736 mergeRedeclarable(TD, Redecl); in VisitTagDecl()
[all …]
H A DASTWriterDecl.cpp1774 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl() local
1775 if (IsLocalDecl(Redecl)) in getFirstLocalDecl()
1776 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.cpp11565 for (auto *Redecl : Update.second->redecls()) in FinishedDeserializing() local
11566 getContext().adjustExceptionSpec(cast<FunctionDecl>(Redecl), ESI); in FinishedDeserializing()
/netbsd-src/external/apache2/llvm/dist/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
916 Redecl = const_cast<ObjCMethodDecl*>(Ctx.getObjCMethodRedeclaration(this)); in getNextRedeclarationImpl()
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()
[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.cpp3413 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC() argument
3414 if (Redecl->getStorageClass() != SC_Extern) in redeclForcesDefMSVC()
3417 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
3425 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99() argument
3427 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
3432 if (Redecl->isImplicit()) in RedeclForcesDefC99()
3435 if (!Redecl->isInlineSpecified() || Redecl->getStorageClass() == SC_Extern) in RedeclForcesDefC99()
3588 for (auto Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local
3589 if (Redecl->isInlineSpecified() && in isInlineDefinitionExternallyVisible()
3590 Redecl->getStorageClass() != SC_Extern) in isInlineDefinitionExternallyVisible()
[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()
2838 const ObjCMethodDecl *Redecl) { in setObjCMethodRedeclaration() argument
2840 ObjCMethodRedecls[MD] = Redecl; in setObjCMethodRedeclaration()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DJSONNodeDumper.h362 const auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in writeTemplateDeclSpecialization() local
363 if (!Redecl) { in writeTemplateDeclSpecialization()
372 switch (Redecl->getTemplateSpecializationKind()) { in writeTemplateDeclSpecialization()
381 NodeDumper.AddChild([=] { NodeDumper.writeBareDeclRef(Redecl); }); in writeTemplateDeclSpecialization()
383 Visit(Redecl); in writeTemplateDeclSpecialization()
H A DASTNodeTraverser.h486 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local
487 if (!Redecl) { in dumpTemplateDeclSpecialization()
495 Visit(Redecl); in dumpTemplateDeclSpecialization()
H A DASTContext.h2821 const ObjCMethodDecl *Redecl);
/netbsd-src/external/apache2/llvm/dist/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.cpp696 Sema::RedeclarationKind Redecl; in LookupMemberExprInRecord() member
718 LookupResult R(Q.SemaRef, Q.NameInfo, Q.LookupKind, Q.Redecl); in LookupMemberExprInRecord()
H A DSemaType.cpp8444 for (auto *Redecl : ED->redecls()) { in hasVisibleDefinition() local
8445 if (isVisible(Redecl)) in hasVisibleDefinition()
8447 if (Redecl->isThisDeclarationADefinition() || in hasVisibleDefinition()
8448 (Redecl->isCanonicalDecl() && !*Suggested)) in hasVisibleDefinition()
8449 *Suggested = Redecl; in hasVisibleDefinition()
H A DSemaDecl.cpp15388 const TagDecl *Redecl = PrevDef ? PrevDef : Previous; in isAcceptableTagRedeclaration() local
15389 if (Redecl->getTagKind() != NewTag) { in isAcceptableTagRedeclaration()
15393 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration()
15398 << getRedeclDiagFromTagKind(Redecl->getTagKind()) in isAcceptableTagRedeclaration()
15400 TypeWithKeyword::getTagTypeKindName(Redecl->getTagKind())); in isAcceptableTagRedeclaration()
15587 RedeclarationKind Redecl = forRedeclarationInCurContext(); in ActOnTag() local
15589 Redecl = NotForRedeclaration; in ActOnTag()
15640 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl); in ActOnTag()
H A DSemaDeclAttr.cpp4661 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr()
4662 Redecl->addAttr(::new (S.Context) OwnerAttr(S.Context, AL, DerefTypeLoc)); in handleLifetimeCategoryAttr()
4678 for (Decl *Redecl : D->redecls()) { in handleLifetimeCategoryAttr()
4679 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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenModule.cpp1806 auto CheckRedeclForInline = [](const FunctionDecl *Redecl) { in SetLLVMFunctionAttributesForDefinition() argument
1807 return Redecl->isInlineSpecified(); in SetLLVMFunctionAttributesForDefinition()
/netbsd-src/external/apache2/llvm/dist/clang/docs/
H A DInternalsManual.rst2185 .. Redecl chains of other declarations