Lines Matching refs:FnDecl
13304 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedUnaryOp() local
13306 if (FnDecl) { in CreateOverloadedUnaryOp()
13312 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) { in CreateOverloadedUnaryOp()
13326 FnDecl->getParamDecl(0)), in CreateOverloadedUnaryOp()
13335 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
13342 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedUnaryOp()
13351 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl)) in CreateOverloadedUnaryOp()
13354 if (CheckFunctionCall(FnDecl, TheCall, in CreateOverloadedUnaryOp()
13355 FnDecl->getType()->castAs<FunctionProtoType>())) in CreateOverloadedUnaryOp()
13357 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FnDecl); in CreateOverloadedUnaryOp()
13580 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedBinOp() local
13586 if (FnDecl) { in CreateOverloadedBinOp()
13592 FnDecl->getDeclName().getCXXOverloadedOperator(); in CreateOverloadedBinOp()
13598 !FnDecl->getReturnType()->isBooleanType()) { in CreateOverloadedBinOp()
13600 FnDecl->getReturnType()->isIntegralOrUnscopedEnumerationType(); in CreateOverloadedBinOp()
13603 << FnDecl->getReturnType() << BinaryOperator::getOpcodeStr(Opc) in CreateOverloadedBinOp()
13605 Diag(FnDecl->getLocation(), diag::note_declared_at); in CreateOverloadedBinOp()
13619 haveSameParameterTypes(Context, Cand.Function, FnDecl, 2)) { in CreateOverloadedBinOp()
13635 declaresSameEntity(AmbiguousWith.front(), FnDecl); in CreateOverloadedBinOp()
13641 Diag(FnDecl->getLocation(), in CreateOverloadedBinOp()
13644 Diag(FnDecl->getLocation(), in CreateOverloadedBinOp()
13654 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) { in CreateOverloadedBinOp()
13661 FnDecl->getParamDecl(0)), in CreateOverloadedBinOp()
13677 FnDecl->getParamDecl(0)), in CreateOverloadedBinOp()
13685 FnDecl->getParamDecl(1)), in CreateOverloadedBinOp()
13694 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, in CreateOverloadedBinOp()
13701 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedBinOp()
13709 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, in CreateOverloadedBinOp()
13710 FnDecl)) in CreateOverloadedBinOp()
13716 if (isa<CXXMethodDecl>(FnDecl)) { in CreateOverloadedBinOp()
13725 checkCall(FnDecl, nullptr, ImplicitThis, ArgsArray, in CreateOverloadedBinOp()
13726 isa<CXXMethodDecl>(FnDecl), OpLoc, TheCall->getSourceRange(), in CreateOverloadedBinOp()
13733 R = CheckForImmediateInvocation(R, FnDecl); in CreateOverloadedBinOp()
13752 Ctx.Entity = FnDecl; in CreateOverloadedBinOp()
14035 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedArraySubscriptExpr() local
14037 if (FnDecl) { in CreateOverloadedArraySubscriptExpr()
14044 CXXMethodDecl *Method = cast<CXXMethodDecl>(FnDecl); in CreateOverloadedArraySubscriptExpr()
14056 FnDecl->getParamDecl(0)), in CreateOverloadedArraySubscriptExpr()
14067 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, in CreateOverloadedArraySubscriptExpr()
14077 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedArraySubscriptExpr()
14084 if (CheckCallReturnType(FnDecl->getReturnType(), LLoc, TheCall, FnDecl)) in CreateOverloadedArraySubscriptExpr()