Home
last modified time | relevance | path

Searched refs:NewFD (Results 1 – 7 of 7) sorted by relevance

/external/clang/lib/Sema/
DSemaDecl.cpp7161 Sema &SemaRef, LookupResult &Previous, FunctionDecl *NewFD, in DiagnoseInvalidRedeclaration() argument
7163 DeclarationName Name = NewFD->getDeclName(); in DiagnoseInvalidRedeclaration()
7164 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration()
7171 LookupResult Prev(SemaRef, Name, NewFD->getLocation(), in DiagnoseInvalidRedeclaration()
7176 NewFD->setInvalidDecl(); in DiagnoseInvalidRedeclaration()
7183 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in DiagnoseInvalidRedeclaration()
7189 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) { in DiagnoseInvalidRedeclaration()
7202 SemaRef.Context, NewFD, MD ? MD->getParent() : nullptr), in DiagnoseInvalidRedeclaration()
7214 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) { in DiagnoseInvalidRedeclaration()
7233 NewFD->getTypeSourceInfo(), Previous, ExtraArgs.TemplateParamLists, in DiagnoseInvalidRedeclaration()
[all …]
DSemaTemplateInstantiateDecl.cpp2520 CXXMethodDecl *NewFD = in VisitClassScopeFunctionSpecializationDecl() local
2522 if (!NewFD) in VisitClassScopeFunctionSpecializationDecl()
2525 LookupResult Previous(SemaRef, NewFD->getNameInfo(), Sema::LookupOrdinaryName, in VisitClassScopeFunctionSpecializationDecl()
2536 if (SemaRef.CheckFunctionTemplateSpecialization(NewFD, TemplateArgsPtr, in VisitClassScopeFunctionSpecializationDecl()
2538 NewFD->setInvalidDecl(); in VisitClassScopeFunctionSpecializationDecl()
2539 return NewFD; in VisitClassScopeFunctionSpecializationDecl()
2547 return NewFD; in VisitClassScopeFunctionSpecializationDecl()
DSemaDeclAttr.cpp6021 FunctionDecl *NewFD; in DeclClonePragmaWeak() local
6026 NewFD = FunctionDecl::Create(FD->getASTContext(), FD->getDeclContext(), in DeclClonePragmaWeak()
6032 NewD = NewFD; in DeclClonePragmaWeak()
6035 NewFD->setQualifierInfo(FD->getQualifierLoc()); in DeclClonePragmaWeak()
6043 ParmVarDecl *Param = BuildParmVarDeclForTypedef(NewFD, Loc, AI); in DeclClonePragmaWeak()
6047 NewFD->setParams(Params); in DeclClonePragmaWeak()
DSemaDeclCXX.cpp803 bool Sema::CheckConstexprFunctionDecl(const FunctionDecl *NewFD) { in CheckConstexprFunctionDecl() argument
804 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDecl()
812 Diag(NewFD->getLocation(), diag::err_constexpr_virtual_base) in CheckConstexprFunctionDecl()
813 << isa<CXXConstructorDecl>(NewFD) in CheckConstexprFunctionDecl()
822 if (!isa<CXXConstructorDecl>(NewFD)) { in CheckConstexprFunctionDecl()
827 const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDecl()
844 QualType RT = NewFD->getReturnType(); in CheckConstexprFunctionDecl()
846 RequireLiteralType(NewFD->getLocation(), RT, in CheckConstexprFunctionDecl()
852 if (!CheckConstexprParameterTypes(*this, NewFD)) in CheckConstexprFunctionDecl()
DSemaLookup.cpp3234 FunctionDecl *NewFD = New->getAsFunction(); in insert() local
3236 FunctionDecl *Cursor = NewFD; in insert()
DSemaExpr.cpp14802 FunctionDecl *NewFD = FunctionDecl::Create(FD->getASTContext(), in resolveDecl() local
14811 NewFD->setQualifierInfo(FD->getQualifierLoc()); in resolveDecl()
14820 NewFD->setParams(Params); in resolveDecl()
14821 DRE->setDecl(NewFD); in resolveDecl()
/external/clang/include/clang/Sema/
DSema.h1739 FunctionDecl *NewFD, LookupResult &Previous,