Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaDecl.cpp5416 Sema &SemaRef, LookupResult &Previous, FunctionDecl *NewFD, in DiagnoseInvalidRedeclaration() argument
5419 DeclarationName Name = NewFD->getDeclName(); in DiagnoseInvalidRedeclaration()
5420 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration()
5421 LookupResult Prev(SemaRef, Name, NewFD->getLocation(), in DiagnoseInvalidRedeclaration()
5431 NewFD->setInvalidDecl(); in DiagnoseInvalidRedeclaration()
5435 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in DiagnoseInvalidRedeclaration()
5436 DifferentNameValidatorCCC Validator(SemaRef.Context, NewFD, in DiagnoseInvalidRedeclaration()
5443 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) { in DiagnoseInvalidRedeclaration()
5468 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) { in DiagnoseInvalidRedeclaration()
5479 NewFD->getTypeSourceInfo(), Previous, ExtraArgs.TemplateParamLists, in DiagnoseInvalidRedeclaration()
[all …]
DSemaTemplateInstantiateDecl.cpp2158 CXXMethodDecl *NewFD = cast<CXXMethodDecl>(VisitCXXMethodDecl(OldFD, in VisitClassScopeFunctionSpecializationDecl() local
2161 LookupResult Previous(SemaRef, NewFD->getNameInfo(), Sema::LookupOrdinaryName, in VisitClassScopeFunctionSpecializationDecl()
2172 if (SemaRef.CheckFunctionTemplateSpecialization(NewFD, TemplateArgsPtr, in VisitClassScopeFunctionSpecializationDecl()
2174 NewFD->setInvalidDecl(); in VisitClassScopeFunctionSpecializationDecl()
2175 return NewFD; in VisitClassScopeFunctionSpecializationDecl()
2183 return NewFD; in VisitClassScopeFunctionSpecializationDecl()
DSemaLookup.cpp2621 FunctionDecl *OldFD, *NewFD; in insert() local
2624 NewFD = cast<FunctionTemplateDecl>(New)->getTemplatedDecl(); in insert()
2627 NewFD = cast<FunctionDecl>(New); in insert()
2630 FunctionDecl *Cursor = NewFD; in insert()
DSemaDeclAttr.cpp5079 FunctionDecl *NewFD; in DeclClonePragmaWeak() local
5084 NewFD = FunctionDecl::Create(FD->getASTContext(), FD->getDeclContext(), in DeclClonePragmaWeak()
5091 NewD = NewFD; in DeclClonePragmaWeak()
5094 NewFD->setQualifierInfo(FD->getQualifierLoc()); in DeclClonePragmaWeak()
5103 ParmVarDecl *Param = BuildParmVarDeclForTypedef(NewFD, Loc, *AI); in DeclClonePragmaWeak()
5107 NewFD->setParams(Params); in DeclClonePragmaWeak()
DSemaDeclCXX.cpp717 bool Sema::CheckConstexprFunctionDecl(const FunctionDecl *NewFD) { in CheckConstexprFunctionDecl() argument
718 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDecl()
726 Diag(NewFD->getLocation(), diag::err_constexpr_virtual_base) in CheckConstexprFunctionDecl()
727 << isa<CXXConstructorDecl>(NewFD) in CheckConstexprFunctionDecl()
737 if (!isa<CXXConstructorDecl>(NewFD)) { in CheckConstexprFunctionDecl()
742 const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDecl()
744 Diag(NewFD->getLocation(), diag::err_constexpr_virtual); in CheckConstexprFunctionDecl()
758 QualType RT = NewFD->getResultType(); in CheckConstexprFunctionDecl()
760 RequireLiteralType(NewFD->getLocation(), RT, in CheckConstexprFunctionDecl()
766 if (!CheckConstexprParameterTypes(*this, NewFD)) in CheckConstexprFunctionDecl()
/external/clang/include/clang/Sema/
DSema.h1393 FunctionDecl *NewFD, LookupResult &Previous,