Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DLookup.h150 Redecl(Redecl != Sema::NotForRedeclaration),
151 ExternalRedecl(Redecl == Sema::ForExternalRedeclaration),
152 Diagnose(Redecl == Sema::NotForRedeclaration) {
163 Redecl(Redecl != Sema::NotForRedeclaration),
165 Diagnose(Redecl == Sema::NotForRedeclaration) {
174 LookupKind(Other.LookupKind), IDNS(Other.IDNS), Redecl(Other.Redecl), in LookupResult()
192 Redecl(std::move(Other.Redecl)), in LookupResult()
214 Redecl = std::move(Other.Redecl);
257 return Redecl; in isForRedeclaration()
562 Redecl = (RK != Sema::NotForRedeclaration); in setRedeclarationKind()
[all …]
H A DSema.h3213 RedeclarationKind Redecl
3225 RedeclarationKind Redecl
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTReaderDecl.cpp682 return Redecl; in VisitTypedefNameDecl()
731 return Redecl; in VisitTagDecl()
797 return Redecl; in VisitRecordDeclImpl()
1420 return Redecl; in VisitVarDeclImpl()
1964 return Redecl; in VisitCXXRecordDeclImpl()
2111 return Redecl; in VisitRedeclarableTemplateDecl()
2223 return Redecl; in VisitClassTemplateSpecializationDeclImpl()
4185 for (auto *Redecl = MostRecent; Redecl && !Found; in forAllLaterRedecls() local
4186 Redecl = Redecl->getPreviousDecl()) in forAllLaterRedecls()
4191 for (auto *Redecl = MostRecent; Redecl != D; in forAllLaterRedecls() local
[all …]
H A DASTWriterDecl.cpp1673 for (const Decl *Redecl = D; Redecl; Redecl = Redecl->getPreviousDecl()) in getFirstLocalDecl() local
1674 if (IsLocalDecl(Redecl)) in getFirstLocalDecl()
1675 D = Redecl; in getFirstLocalDecl()
H A DASTWriter.cpp3525 if (Decl *Redecl = D->getPreviousDecl()) { in getDeclForLocalLookup() local
3527 for (; Redecl; Redecl = Redecl->getPreviousDecl()) { in getDeclForLocalLookup()
3529 if (!Redecl->isFromASTFile()) { in getDeclForLocalLookup()
3533 if (!Redecl->getDeclContext()->getRedeclContext()->Equals( in getDeclForLocalLookup()
3536 return cast<NamedDecl>(Redecl); in getDeclForLocalLookup()
3541 if (Redecl->getOwningModuleID() == 0) in getDeclForLocalLookup()
H A DASTReader.cpp11552 for (auto *Redecl : Update.second->redecls()) in FinishedDeserializing() local
11553 getContext().adjustExceptionSpec(cast<FunctionDecl>(Redecl), ESI); in FinishedDeserializing()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DDeclObjC.cpp908 ObjCMethodDecl *Redecl = nullptr; in getNextRedeclarationImpl() local
911 if (Redecl) in getNextRedeclarationImpl()
912 return Redecl; in getNextRedeclarationImpl()
920 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
925 Redecl = ImplD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
930 Redecl = IFD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
935 Redecl = CatD->getMethod(getSelector(), isInstanceMethod()); in getNextRedeclarationImpl()
942 if (Redecl && cast<Decl>(Redecl->getDeclContext())->isInvalidDecl()) in getNextRedeclarationImpl()
943 Redecl = nullptr; in getNextRedeclarationImpl()
945 if (!Redecl && isRedeclaration()) { in getNextRedeclarationImpl()
[all …]
H A DDecl.cpp3108 static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { in redeclForcesDefMSVC() argument
3109 if (Redecl->getStorageClass() != SC_Extern) in redeclForcesDefMSVC()
3120 static bool RedeclForcesDefC99(const FunctionDecl *Redecl) { in RedeclForcesDefC99() argument
3122 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
3127 if (Redecl->isImplicit()) in RedeclForcesDefC99()
3130 if (!Redecl->isInlineSpecified() || Redecl->getStorageClass() == SC_Extern) in RedeclForcesDefC99()
3269 for (auto Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local
3270 if (Redecl->isInlineSpecified() && in isInlineDefinitionExternallyVisible()
3271 Redecl->getStorageClass() != SC_Extern) in isInlineDefinitionExternallyVisible()
3286 for (auto Redecl : redecls()) { in isInlineDefinitionExternallyVisible() local
[all …]
H A DASTDumper.cpp990 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType); in dumpTemplateDeclSpecialization() local
991 if (!Redecl) { in dumpTemplateDeclSpecialization()
999 switch (Redecl->getTemplateSpecializationKind()) { in dumpTemplateDeclSpecialization()
1008 NodeDumper.dumpDeclRef(Redecl); in dumpTemplateDeclSpecialization()
1010 dumpDecl(Redecl); in dumpTemplateDeclSpecialization()
H A DExprConstant.cpp76 for (auto *Redecl = cast<ValueDecl>(D->getMostRecentDecl()); Redecl; in getType() local
77 Redecl = cast_or_null<ValueDecl>(Redecl->getPreviousDecl())) { in getType()
78 QualType T = Redecl->getType(); in getType()
H A DASTContext.cpp2547 const ObjCMethodDecl *Redecl) { in setObjCMethodRedeclaration() argument
2549 ObjCMethodRedecls[MD] = Redecl; in setObjCMethodRedeclaration()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaExceptionSpec.cpp229 for (FunctionDecl *Redecl : FD->redecls()) in UpdateExceptionSpec()
230 Context.adjustExceptionSpec(Redecl, ESI); in UpdateExceptionSpec()
H A DSemaLookup.cpp1455 for (auto *Redecl : D->redecls()) { in hasVisibleDeclarationImpl() local
1456 auto *R = cast<NamedDecl>(Redecl); in hasVisibleDeclarationImpl()
2818 RedeclarationKind Redecl) { in LookupSingleName() argument
2819 LookupResult R(*this, Name, Loc, NameKind, Redecl); in LookupSingleName()
2827 RedeclarationKind Redecl) { in LookupProtocol() argument
2829 LookupObjCProtocolName, Redecl); in LookupProtocol()
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.cpp7664 for (auto *Redecl : ED->redecls()) { in hasVisibleDefinition() local
7665 if (isVisible(Redecl)) in hasVisibleDefinition()
7667 if (Redecl->isThisDeclarationADefinition() || in hasVisibleDefinition()
7668 (Redecl->isCanonicalDecl() && !*Suggested)) in hasVisibleDefinition()
7669 *Suggested = Redecl; in hasVisibleDefinition()
H A DSemaDeclAttr.cpp7648 for (const Decl *Redecl = OffendingDecl->getMostRecentDecl(); Redecl; in DoEmitAvailabilityWarning() local
7649 Redecl = Redecl->getPreviousDecl()) { in DoEmitAvailabilityWarning()
7651 getAttrForPlatform(S.Context, Redecl); in DoEmitAvailabilityWarning()
7655 NoteLocation = Redecl->getLocation(); in DoEmitAvailabilityWarning()
H A DSemaDecl.cpp13929 const TagDecl *Redecl = PrevDef ? PrevDef : Previous; in isAcceptableTagRedeclaration() local
13930 if (Redecl->getTagKind() != NewTag) { in isAcceptableTagRedeclaration()
13934 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration()
13939 << getRedeclDiagFromTagKind(Redecl->getTagKind()) in isAcceptableTagRedeclaration()
13941 TypeWithKeyword::getTagTypeKindName(Redecl->getTagKind())); in isAcceptableTagRedeclaration()
14124 RedeclarationKind Redecl = forRedeclarationInCurContext(); in ActOnTag() local
14126 Redecl = NotForRedeclaration; in ActOnTag()
14177 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl); in ActOnTag()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DASTContext.h2673 const ObjCMethodDecl *Redecl);
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenModule.cpp1303 auto CheckRedeclForInline = [](const FunctionDecl *Redecl) { in SetLLVMFunctionAttributesForDefinition() argument
1304 return Redecl->isInlineSpecified(); in SetLLVMFunctionAttributesForDefinition()