Lines Matching refs:FnDecl

14228     FunctionDecl *FnDecl = Best->Function;  in CreateOverloadedUnaryOp()  local
14230 if (FnDecl) { in CreateOverloadedUnaryOp()
14236 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) { in CreateOverloadedUnaryOp()
14253 FnDecl->getParamDecl(0)), in CreateOverloadedUnaryOp()
14262 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
14269 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedUnaryOp()
14278 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl)) in CreateOverloadedUnaryOp()
14281 if (CheckFunctionCall(FnDecl, TheCall, in CreateOverloadedUnaryOp()
14282 FnDecl->getType()->castAs<FunctionProtoType>())) in CreateOverloadedUnaryOp()
14284 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FnDecl); in CreateOverloadedUnaryOp()
14524 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedBinOp() local
14530 if (FnDecl) { in CreateOverloadedBinOp()
14532 if (FnDecl->isInvalidDecl()) in CreateOverloadedBinOp()
14540 FnDecl->getDeclName().getCXXOverloadedOperator(); in CreateOverloadedBinOp()
14546 !FnDecl->getReturnType()->isBooleanType()) { in CreateOverloadedBinOp()
14548 FnDecl->getReturnType()->isIntegralOrUnscopedEnumerationType(); in CreateOverloadedBinOp()
14551 << FnDecl->getReturnType() << BinaryOperator::getOpcodeStr(Opc) in CreateOverloadedBinOp()
14553 Diag(FnDecl->getLocation(), diag::note_declared_at); in CreateOverloadedBinOp()
14567 allowAmbiguity(Context, Cand.Function, FnDecl)) { in CreateOverloadedBinOp()
14583 declaresSameEntity(AmbiguousWith.front(), FnDecl); in CreateOverloadedBinOp()
14589 Diag(FnDecl->getLocation(), in CreateOverloadedBinOp()
14595 if (auto *MD = dyn_cast<CXXMethodDecl>(FnDecl)) in CreateOverloadedBinOp()
14608 Diag(FnDecl->getLocation(), in CreateOverloadedBinOp()
14611 Diag(FnDecl->getLocation(), in CreateOverloadedBinOp()
14621 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) { in CreateOverloadedBinOp()
14628 Arg0 = InitializeExplicitObjectArgument(*this, Args[0], FnDecl); in CreateOverloadedBinOp()
14636 Context, FnDecl->getParamDecl(ParamIdx)), in CreateOverloadedBinOp()
14647 FnDecl->getParamDecl(0)), in CreateOverloadedBinOp()
14655 FnDecl->getParamDecl(1)), in CreateOverloadedBinOp()
14664 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, in CreateOverloadedBinOp()
14671 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedBinOp()
14685 if (const auto *Method = dyn_cast<CXXMethodDecl>(FnDecl); in CreateOverloadedBinOp()
14692 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, in CreateOverloadedBinOp()
14693 FnDecl)) in CreateOverloadedBinOp()
14703 cast<CXXMethodDecl>(FnDecl)->getFunctionObjectParameterType()); in CreateOverloadedBinOp()
14705 CheckArgAlignment(OpLoc, FnDecl, "'this'", ThisType, in CreateOverloadedBinOp()
14709 checkCall(FnDecl, nullptr, ImplicitThis, ArgsArray, in CreateOverloadedBinOp()
14710 isa<CXXMethodDecl>(FnDecl), OpLoc, TheCall->getSourceRange(), in CreateOverloadedBinOp()
14717 R = CheckForImmediateInvocation(R, FnDecl); in CreateOverloadedBinOp()
14736 Ctx.Entity = FnDecl; in CreateOverloadedBinOp()
15069 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedArraySubscriptExpr() local
15071 if (FnDecl) { in CreateOverloadedArraySubscriptExpr()
15078 CXXMethodDecl *Method = cast<CXXMethodDecl>(FnDecl); in CreateOverloadedArraySubscriptExpr()
15107 *this, FnDecl, Best->FoundDecl, Base, HadMultipleCandidates, in CreateOverloadedArraySubscriptExpr()
15113 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedArraySubscriptExpr()
15121 if (CheckCallReturnType(FnDecl->getReturnType(), LLoc, TheCall, FnDecl)) in CreateOverloadedArraySubscriptExpr()
15129 FnDecl); in CreateOverloadedArraySubscriptExpr()