Lines Matching refs:FnDecl
13625 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedUnaryOp() local
13627 if (FnDecl) { in CreateOverloadedUnaryOp()
13633 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) { in CreateOverloadedUnaryOp()
13647 FnDecl->getParamDecl(0)), in CreateOverloadedUnaryOp()
13656 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
13663 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedUnaryOp()
13672 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl)) in CreateOverloadedUnaryOp()
13675 if (CheckFunctionCall(FnDecl, TheCall, in CreateOverloadedUnaryOp()
13676 FnDecl->getType()->castAs<FunctionProtoType>())) in CreateOverloadedUnaryOp()
13678 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FnDecl); in CreateOverloadedUnaryOp()
13901 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedBinOp() local
13907 if (FnDecl) { in CreateOverloadedBinOp()
13913 FnDecl->getDeclName().getCXXOverloadedOperator(); in CreateOverloadedBinOp()
13919 !FnDecl->getReturnType()->isBooleanType()) { in CreateOverloadedBinOp()
13921 FnDecl->getReturnType()->isIntegralOrUnscopedEnumerationType(); in CreateOverloadedBinOp()
13924 << FnDecl->getReturnType() << BinaryOperator::getOpcodeStr(Opc) in CreateOverloadedBinOp()
13926 Diag(FnDecl->getLocation(), diag::note_declared_at); in CreateOverloadedBinOp()
13940 haveSameParameterTypes(Context, Cand.Function, FnDecl, 2)) { in CreateOverloadedBinOp()
13956 declaresSameEntity(AmbiguousWith.front(), FnDecl); in CreateOverloadedBinOp()
13962 Diag(FnDecl->getLocation(), in CreateOverloadedBinOp()
13968 if (auto *MD = dyn_cast<CXXMethodDecl>(FnDecl)) in CreateOverloadedBinOp()
13978 Diag(FnDecl->getLocation(), in CreateOverloadedBinOp()
13981 Diag(FnDecl->getLocation(), in CreateOverloadedBinOp()
13991 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) { in CreateOverloadedBinOp()
13998 FnDecl->getParamDecl(0)), in CreateOverloadedBinOp()
14014 FnDecl->getParamDecl(0)), in CreateOverloadedBinOp()
14022 FnDecl->getParamDecl(1)), in CreateOverloadedBinOp()
14031 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, in CreateOverloadedBinOp()
14038 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedBinOp()
14046 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, in CreateOverloadedBinOp()
14047 FnDecl)) in CreateOverloadedBinOp()
14053 if (isa<CXXMethodDecl>(FnDecl)) { in CreateOverloadedBinOp()
14065 cast<CXXMethodDecl>(FnDecl)->getThisObjectType()); in CreateOverloadedBinOp()
14067 CheckArgAlignment(OpLoc, FnDecl, "'this'", ThisType, in CreateOverloadedBinOp()
14071 checkCall(FnDecl, nullptr, ImplicitThis, ArgsArray, in CreateOverloadedBinOp()
14072 isa<CXXMethodDecl>(FnDecl), OpLoc, TheCall->getSourceRange(), in CreateOverloadedBinOp()
14079 R = CheckForImmediateInvocation(R, FnDecl); in CreateOverloadedBinOp()
14098 Ctx.Entity = FnDecl; in CreateOverloadedBinOp()
14431 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedArraySubscriptExpr() local
14433 if (FnDecl) { in CreateOverloadedArraySubscriptExpr()
14440 CXXMethodDecl *Method = cast<CXXMethodDecl>(FnDecl); in CreateOverloadedArraySubscriptExpr()
14462 *this, FnDecl, Best->FoundDecl, Base, HadMultipleCandidates, in CreateOverloadedArraySubscriptExpr()
14468 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedArraySubscriptExpr()
14482 if (CheckCallReturnType(FnDecl->getReturnType(), LLoc, TheCall, FnDecl)) in CreateOverloadedArraySubscriptExpr()
14490 FnDecl); in CreateOverloadedArraySubscriptExpr()