/external/clang/include/clang/Sema/ |
D | Lookup.h | 131 Sema::RedeclarationKind Redecl = Sema::NotForRedeclaration) 139 Redecl(Redecl != Sema::NotForRedeclaration), in ResultKind() 141 Diagnose(Redecl == Sema::NotForRedeclaration), in ResultKind() 153 Sema::RedeclarationKind Redecl = Sema::NotForRedeclaration) 161 Redecl(Redecl != Sema::NotForRedeclaration), in ResultKind() 163 Diagnose(Redecl == Sema::NotForRedeclaration), in ResultKind() 181 Redecl(Other.Redecl), in LookupResult() 202 Redecl(std::move(Other.Redecl)), HideTags(std::move(Other.HideTags)), in LookupResult() 221 Redecl = std::move(Other.Redecl); 263 return Redecl; in isForRedeclaration() [all …]
|
D | Sema.h | 2846 RedeclarationKind Redecl 2858 RedeclarationKind Redecl
|
/external/clang/lib/Serialization/ |
D | ASTReaderDecl.cpp | 345 void mergeRedeclarable(Redeclarable<T> *D, RedeclarableResult &Redecl, 350 RedeclarableResult &Redecl, 614 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTypedefNameDecl() local 622 return Redecl; in VisitTypedefNameDecl() 626 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypedefDecl() local 627 mergeRedeclarable(TD, Redecl); in VisitTypedefDecl() 631 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypeAliasDecl() local 636 mergeRedeclarable(TD, Redecl); in VisitTypeAliasDecl() 640 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTagDecl() local 670 mergeRedeclarable(TD, Redecl); in VisitTagDecl() [all …]
|
D | ASTWriterDecl.cpp | 1575 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl() local 1576 if (IsLocalDecl(Redecl)) in getFirstLocalDecl() 1577 D = Redecl; in getFirstLocalDecl()
|
D | ASTWriter.cpp | 3107 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup() local 3109 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup() 3111 if (!Redecl->isFromASTFile()) { in getDeclForLocalLookup() 3115 if (!Redecl->getDeclContext()->getRedeclContext()->Equals( in getDeclForLocalLookup() 3118 return cast<NamedDecl>(Redecl); in getDeclForLocalLookup() 3123 if (Redecl->getOwningModuleID() == 0) in getDeclForLocalLookup()
|
D | ASTReader.cpp | 8644 for (auto *Redecl : Update.second->redecls()) in FinishedDeserializing() local 8645 Context.adjustExceptionSpec(cast<FunctionDecl>(Redecl), ESI); in FinishedDeserializing()
|
/external/clang/lib/AST/ |
D | DeclObjC.cpp | 841 ObjCMethodDecl *Redecl = nullptr; in getNextRedeclarationImpl() local 843 Redecl = const_cast<ObjCMethodDecl*>(Ctx.getObjCMethodRedeclaration(this)); in getNextRedeclarationImpl() 844 if (Redecl) in getNextRedeclarationImpl() 845 return Redecl; in getNextRedeclarationImpl() 853 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 858 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 864 Redecl = IFD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 870 Redecl = CatD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl() 874 if (!Redecl && isRedeclaration()) { in getNextRedeclarationImpl() 880 return Redecl ? Redecl : this; in getNextRedeclarationImpl()
|
D | Decl.cpp | 2817 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC() argument 2818 if (Redecl->getStorageClass() != SC_Extern) in redeclForcesDefMSVC() 2821 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC() 2829 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99() argument 2831 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99() 2836 if (Redecl->isImplicit()) in RedeclForcesDefC99() 2839 if (!Redecl->isInlineSpecified() || Redecl->getStorageClass() == SC_Extern) in RedeclForcesDefC99() 2983 for (auto Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local 2984 if (Redecl->isInlineSpecified() && in isInlineDefinitionExternallyVisible() 2985 Redecl->getStorageClass() != SC_Extern) in isInlineDefinitionExternallyVisible() [all …]
|
D | ASTDumper.cpp | 1343 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in VisitTemplateDeclSpecialization() local 1344 if (!Redecl) { in VisitTemplateDeclSpecialization() 1352 switch (Redecl->getTemplateSpecializationKind()) { in VisitTemplateDeclSpecialization() 1361 dumpDeclRef(Redecl); in VisitTemplateDeclSpecialization() 1363 dumpDecl(Redecl); in VisitTemplateDeclSpecialization()
|
D | ASTContext.cpp | 2072 const ObjCMethodDecl *Redecl) { in setObjCMethodRedeclaration() argument 2074 ObjCMethodRedecls[MD] = Redecl; in setObjCMethodRedeclaration()
|
/external/clang/test/Sema/ |
D | anonymous-struct-union.c | 39 struct Redecl { struct
|
/external/clang/test/SemaCXX/ |
D | anonymous-union.cpp | 63 struct Redecl { struct
|
D | cxx1y-deduced-return-type.cpp | 328 namespace Redecl { namespace
|
/external/clang/lib/Sema/ |
D | SemaLookup.cpp | 1488 for (auto *Redecl : D->redecls()) { in hasVisibleMemberSpecialization() local 1496 if (Redecl->getLexicalDeclContext()->isFileContext()) { in hasVisibleMemberSpecialization() 1497 auto *NonConstR = const_cast<NamedDecl*>(cast<NamedDecl>(Redecl)); in hasVisibleMemberSpecialization() 1632 for (auto *Redecl : D->redecls()) { in hasVisibleDeclarationSlow() local 1633 auto *NonConstR = const_cast<NamedDecl*>(cast<NamedDecl>(Redecl)); in hasVisibleDeclarationSlow() 2781 RedeclarationKind Redecl) { in LookupSingleName() argument 2782 LookupResult R(*this, Name, Loc, NameKind, Redecl); in LookupSingleName() 2790 RedeclarationKind Redecl) { in LookupProtocol() argument 2792 LookupObjCProtocolName, Redecl); in LookupProtocol()
|
D | SemaExceptionSpec.cpp | 187 for (auto *Redecl : FD->redecls()) in UpdateExceptionSpec() local 188 Context.adjustExceptionSpec(cast<FunctionDecl>(Redecl), ESI); in UpdateExceptionSpec()
|
D | SemaExprMember.cpp | 671 Sema::RedeclarationKind Redecl; in LookupMemberExprInRecord() member 694 LookupResult R(Q.SemaRef, Q.NameInfo, Q.LookupKind, Q.Redecl); in LookupMemberExprInRecord()
|
D | SemaDeclAttr.cpp | 6379 for (const Decl *Redecl = D->getMostRecentDecl(); Redecl; in DoEmitAvailabilityWarning() local 6380 Redecl = Redecl->getPreviousDecl()) { in DoEmitAvailabilityWarning() 6382 Redecl); in DoEmitAvailabilityWarning() 6386 S.Diag(Redecl->getLocation(), diag_available_here) << D in DoEmitAvailabilityWarning()
|
D | SemaType.cpp | 6872 for (auto *Redecl : ED->redecls()) { in hasVisibleDefinition() local 6873 if (isVisible(Redecl)) in hasVisibleDefinition() 6875 if (Redecl->isThisDeclarationADefinition() || in hasVisibleDefinition() 6876 (Redecl->isCanonicalDecl() && !*Suggested)) in hasVisibleDefinition() 6877 *Suggested = Redecl; in hasVisibleDefinition()
|
D | SemaDecl.cpp | 12138 const TagDecl *Redecl = Previous->getDefinition() ? in isAcceptableTagRedeclaration() local 12140 if (Redecl->getTagKind() == NewTag) { in isAcceptableTagRedeclaration() 12147 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration() 12152 << getRedeclDiagFromTagKind(Redecl->getTagKind()) in isAcceptableTagRedeclaration() 12154 TypeWithKeyword::getTagTypeKindName(Redecl->getTagKind())); in isAcceptableTagRedeclaration() 12361 RedeclarationKind Redecl = ForRedeclaration; in ActOnTag() local 12363 Redecl = NotForRedeclaration; in ActOnTag() 12365 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl); in ActOnTag()
|
D | SemaExpr.cpp | 180 for (Decl *Redecl = D->getMostRecentDecl(); Redecl && Warn; in DiagnoseAvailabilityOfDecl() local 181 Redecl = Redecl->getPreviousDecl()) in DiagnoseAvailabilityOfDecl() 182 if (!Redecl->hasAttr<AvailabilityAttr>() || in DiagnoseAvailabilityOfDecl() 183 Redecl->getAttr<AvailabilityAttr>()->isInherited()) in DiagnoseAvailabilityOfDecl()
|
/external/clang/include/clang/AST/ |
D | ASTContext.h | 2343 const ObjCMethodDecl *Redecl);
|