Home
last modified time | relevance | path

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

/external/clang/include/clang/Sema/
DLookup.h131 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()
220 return Redecl; in isForRedeclaration()
514 Redecl = RK; in setRedeclarationKind()
675 bool Redecl; variable
DSema.h2772 RedeclarationKind Redecl
2784 RedeclarationKind Redecl
/external/clang/lib/Serialization/
DASTReaderDecl.cpp320 void mergeRedeclarable(Redeclarable<T> *D, RedeclarableResult &Redecl,
325 RedeclarableResult &Redecl,
559 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTypedefNameDecl() local
567 return Redecl; in VisitTypedefNameDecl()
571 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypedefDecl() local
572 mergeRedeclarable(TD, Redecl); in VisitTypedefDecl()
576 RedeclarableResult Redecl = VisitTypedefNameDecl(TD); in VisitTypeAliasDecl() local
581 mergeRedeclarable(TD, Redecl); in VisitTypeAliasDecl()
585 RedeclarableResult Redecl = VisitRedeclarable(TD); in VisitTagDecl() local
615 mergeRedeclarable(TD, Redecl); in VisitTagDecl()
[all …]
DASTWriterDecl.cpp1557 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl() local
1558 if (IsLocalDecl(Redecl)) in getFirstLocalDecl()
1559 D = Redecl; in getFirstLocalDecl()
DASTWriter.cpp3087 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup() local
3089 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup()
3090 if (!Redecl->isFromASTFile()) in getDeclForLocalLookup()
3091 return cast<NamedDecl>(Redecl); in getDeclForLocalLookup()
DASTReader.cpp8588 for (auto *Redecl : Update.second->redecls()) in FinishedDeserializing() local
8589 Context.adjustExceptionSpec(cast<FunctionDecl>(Redecl), ESI); in FinishedDeserializing()
/external/clang/test/Sema/
Danonymous-struct-union.c39 struct Redecl { struct
/external/clang/lib/AST/
DDeclObjC.cpp809 ObjCMethodDecl *Redecl = nullptr; in getNextRedeclarationImpl() local
811 Redecl = const_cast<ObjCMethodDecl*>(Ctx.getObjCMethodRedeclaration(this)); in getNextRedeclarationImpl()
812 if (Redecl) in getNextRedeclarationImpl()
813 return Redecl; in getNextRedeclarationImpl()
821 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
826 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
832 Redecl = IFD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
838 Redecl = CatD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
842 if (!Redecl && isRedeclaration()) { in getNextRedeclarationImpl()
848 return Redecl ? Redecl : this; in getNextRedeclarationImpl()
DDecl.cpp2736 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC() argument
2737 if (Redecl->getStorageClass() != SC_Extern) in redeclForcesDefMSVC()
2740 for (const FunctionDecl *FD = Redecl->getPreviousDecl(); FD; in redeclForcesDefMSVC()
2748 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99() argument
2750 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
2755 if (Redecl->isImplicit()) in RedeclForcesDefC99()
2758 if (!Redecl->isInlineSpecified() || Redecl->getStorageClass() == SC_Extern) in RedeclForcesDefC99()
2896 for (auto Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local
2897 if (Redecl->isInlineSpecified() && in isInlineDefinitionExternallyVisible()
2898 Redecl->getStorageClass() != SC_Extern) in isInlineDefinitionExternallyVisible()
[all …]
DASTDumper.cpp1258 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in VisitTemplateDeclSpecialization() local
1259 if (!Redecl) { in VisitTemplateDeclSpecialization()
1267 switch (Redecl->getTemplateSpecializationKind()) { in VisitTemplateDeclSpecialization()
1276 dumpDeclRef(Redecl); in VisitTemplateDeclSpecialization()
1278 dumpDecl(Redecl); in VisitTemplateDeclSpecialization()
/external/clang/test/SemaCXX/
Danonymous-union.cpp63 struct Redecl { struct
Dcxx1y-deduced-return-type.cpp328 namespace Redecl { namespace
/external/clang/lib/Sema/
DSemaExceptionSpec.cpp181 for (auto *Redecl : FD->redecls()) in UpdateExceptionSpec() local
182 Context.adjustExceptionSpec(cast<FunctionDecl>(Redecl), ESI); in UpdateExceptionSpec()
DSemaExprMember.cpp657 Sema::RedeclarationKind Redecl; in LookupMemberExprInRecord() member
680 LookupResult R(Q.SemaRef, Q.NameInfo, Q.LookupKind, Q.Redecl); in LookupMemberExprInRecord()
DSemaLookup.cpp2688 RedeclarationKind Redecl) { in LookupSingleName() argument
2689 LookupResult R(*this, Name, Loc, NameKind, Redecl); in LookupSingleName()
2697 RedeclarationKind Redecl) { in LookupProtocol() argument
2699 LookupObjCProtocolName, Redecl); in LookupProtocol()
DSemaType.cpp6510 for (auto *Redecl : ED->redecls()) { in hasVisibleDefinition() local
6511 if (isVisible(Redecl)) in hasVisibleDefinition()
6513 if (Redecl->isThisDeclarationADefinition() || in hasVisibleDefinition()
6514 (Redecl->isCanonicalDecl() && !*Suggested)) in hasVisibleDefinition()
6515 *Suggested = Redecl; in hasVisibleDefinition()
DSemaDecl.cpp11720 const TagDecl *Redecl = Previous->getDefinition() ? in isAcceptableTagRedeclaration() local
11722 if (Redecl->getTagKind() == NewTag) { in isAcceptableTagRedeclaration()
11729 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration()
11734 << getRedeclDiagFromTagKind(Redecl->getTagKind()) in isAcceptableTagRedeclaration()
11736 TypeWithKeyword::getTagTypeKindName(Redecl->getTagKind())); in isAcceptableTagRedeclaration()
11921 RedeclarationKind Redecl = ForRedeclaration; in ActOnTag() local
11923 Redecl = NotForRedeclaration; in ActOnTag()
11925 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl); in ActOnTag()
DSemaExpr.cpp176 for (Decl *Redecl = D->getMostRecentDecl(); Redecl && Warn; in DiagnoseAvailabilityOfDecl() local
177 Redecl = Redecl->getPreviousDecl()) in DiagnoseAvailabilityOfDecl()
178 if (!Redecl->hasAttr<AvailabilityAttr>() || in DiagnoseAvailabilityOfDecl()
179 Redecl->getAttr<AvailabilityAttr>()->isInherited()) in DiagnoseAvailabilityOfDecl()
/external/clang/include/clang/AST/
DASTContext.h2318 const ObjCMethodDecl *Redecl) { in setObjCMethodRedeclaration() argument
2320 ObjCMethodRedecls[MD] = Redecl; in setObjCMethodRedeclaration()