Lines Matching refs:NewFD
684 bool Sema::CheckConstexprFunctionDecl(const FunctionDecl *NewFD) {
685 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD);
693 Diag(NewFD->getLocation(), diag::err_constexpr_virtual_base)
694 << isa<CXXConstructorDecl>(NewFD) << RD->isStruct()
704 if (!isa<CXXConstructorDecl>(NewFD)) {
709 const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(NewFD);
711 Diag(NewFD->getLocation(), diag::err_constexpr_virtual);
725 QualType RT = NewFD->getResultType();
727 RequireLiteralType(NewFD->getLocation(), RT,
733 if (!CheckConstexprParameterTypes(*this, NewFD))