Lines Matching refs:FnDecl
13472 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedUnaryOp() local
13474 if (FnDecl) { in CreateOverloadedUnaryOp()
13480 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) { in CreateOverloadedUnaryOp()
13494 FnDecl->getParamDecl(0)), in CreateOverloadedUnaryOp()
13503 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl, in CreateOverloadedUnaryOp()
13510 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedUnaryOp()
13519 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl)) in CreateOverloadedUnaryOp()
13522 if (CheckFunctionCall(FnDecl, TheCall, in CreateOverloadedUnaryOp()
13523 FnDecl->getType()->castAs<FunctionProtoType>())) in CreateOverloadedUnaryOp()
13525 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FnDecl); in CreateOverloadedUnaryOp()
13748 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedBinOp() local
13754 if (FnDecl) { in CreateOverloadedBinOp()
13760 FnDecl->getDeclName().getCXXOverloadedOperator(); in CreateOverloadedBinOp()
13766 !FnDecl->getReturnType()->isBooleanType()) { in CreateOverloadedBinOp()
13768 FnDecl->getReturnType()->isIntegralOrUnscopedEnumerationType(); in CreateOverloadedBinOp()
13771 << FnDecl->getReturnType() << BinaryOperator::getOpcodeStr(Opc) in CreateOverloadedBinOp()
13773 Diag(FnDecl->getLocation(), diag::note_declared_at); in CreateOverloadedBinOp()
13787 haveSameParameterTypes(Context, Cand.Function, FnDecl, 2)) { in CreateOverloadedBinOp()
13803 declaresSameEntity(AmbiguousWith.front(), FnDecl); in CreateOverloadedBinOp()
13809 Diag(FnDecl->getLocation(), in CreateOverloadedBinOp()
13812 Diag(FnDecl->getLocation(), in CreateOverloadedBinOp()
13822 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) { in CreateOverloadedBinOp()
13829 FnDecl->getParamDecl(0)), in CreateOverloadedBinOp()
13845 FnDecl->getParamDecl(0)), in CreateOverloadedBinOp()
13853 FnDecl->getParamDecl(1)), in CreateOverloadedBinOp()
13862 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, in CreateOverloadedBinOp()
13869 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedBinOp()
13877 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, in CreateOverloadedBinOp()
13878 FnDecl)) in CreateOverloadedBinOp()
13884 if (isa<CXXMethodDecl>(FnDecl)) { in CreateOverloadedBinOp()
13896 cast<CXXMethodDecl>(FnDecl)->getThisObjectType()); in CreateOverloadedBinOp()
13898 CheckArgAlignment(OpLoc, FnDecl, "'this'", ThisType, in CreateOverloadedBinOp()
13902 checkCall(FnDecl, nullptr, ImplicitThis, ArgsArray, in CreateOverloadedBinOp()
13903 isa<CXXMethodDecl>(FnDecl), OpLoc, TheCall->getSourceRange(), in CreateOverloadedBinOp()
13910 R = CheckForImmediateInvocation(R, FnDecl); in CreateOverloadedBinOp()
13929 Ctx.Entity = FnDecl; in CreateOverloadedBinOp()
14262 FunctionDecl *FnDecl = Best->Function; in CreateOverloadedArraySubscriptExpr() local
14264 if (FnDecl) { in CreateOverloadedArraySubscriptExpr()
14271 CXXMethodDecl *Method = cast<CXXMethodDecl>(FnDecl); in CreateOverloadedArraySubscriptExpr()
14288 *this, FnDecl, Best->FoundDecl, Base, HadMultipleCandidates, in CreateOverloadedArraySubscriptExpr()
14294 QualType ResultTy = FnDecl->getReturnType(); in CreateOverloadedArraySubscriptExpr()
14301 if (CheckCallReturnType(FnDecl->getReturnType(), LLoc, TheCall, FnDecl)) in CreateOverloadedArraySubscriptExpr()
14309 FnDecl); in CreateOverloadedArraySubscriptExpr()