reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
13842 assert(FnDecl && FnDecl->isOverloadedOperator() && 13842 assert(FnDecl && FnDecl->isOverloadedOperator() && 13845 OverloadedOperatorKind Op = FnDecl->getOverloadedOperator(); 13854 return CheckOperatorDeleteDeclaration(*this, FnDecl); 13857 return CheckOperatorNewDeclaration(*this, FnDecl); 13864 if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(FnDecl)) { 13866 return Diag(FnDecl->getLocation(), 13867 diag::err_operator_overload_static) << FnDecl->getDeclName(); 13870 for (auto Param : FnDecl->parameters()) { 13880 return Diag(FnDecl->getLocation(), 13882 << FnDecl->getDeclName(); 13892 for (auto Param : FnDecl->parameters()) { 13896 << FnDecl->getDeclName() << Param->getDefaultArgRange(); 13915 unsigned NumParams = FnDecl->getNumParams() 13916 + (isa<CXXMethodDecl>(FnDecl)? 1 : 0); 13933 return Diag(FnDecl->getLocation(), diag::err_operator_overload_must_be) 13934 << FnDecl->getDeclName() << NumParams << ErrorKind; 13939 FnDecl->getType()->getAs<FunctionProtoType>()->isVariadic()) { 13940 return Diag(FnDecl->getLocation(), diag::err_operator_overload_variadic) 13941 << FnDecl->getDeclName(); 13945 if (MustBeMemberOperator && !isa<CXXMethodDecl>(FnDecl)) { 13946 return Diag(FnDecl->getLocation(), 13948 << FnDecl->getDeclName(); 13962 ParmVarDecl *LastParam = FnDecl->getParamDecl(FnDecl->getNumParams() - 1); 13962 ParmVarDecl *LastParam = FnDecl->getParamDecl(FnDecl->getNumParams() - 1);