Lines Matching defs:FnDecl

14245     FunctionDecl *FnDecl = Best->Function;
14247 if (FnDecl) {
14253 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) {
14270 FnDecl->getParamDecl(0)),
14279 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl, Best->FoundDecl,
14286 QualType ResultTy = FnDecl->getReturnType();
14295 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl))
14298 if (CheckFunctionCall(FnDecl, TheCall,
14299 FnDecl->getType()->castAs<FunctionProtoType>()))
14301 return CheckForImmediateInvocation(MaybeBindToTemporary(TheCall), FnDecl);
14521 FunctionDecl *FnDecl = Best->Function;
14527 if (FnDecl) {
14529 if (FnDecl->isInvalidDecl())
14537 FnDecl->getDeclName().getCXXOverloadedOperator();
14543 !FnDecl->getReturnType()->isBooleanType()) {
14545 FnDecl->getReturnType()->isIntegralOrUnscopedEnumerationType();
14548 << FnDecl->getReturnType() << BinaryOperator::getOpcodeStr(Opc)
14550 Diag(FnDecl->getLocation(), diag::note_declared_at);
14564 allowAmbiguity(Context, Cand.Function, FnDecl)) {
14580 declaresSameEntity(AmbiguousWith.front(), FnDecl);
14586 Diag(FnDecl->getLocation(),
14592 if (auto *MD = dyn_cast<CXXMethodDecl>(FnDecl))
14605 Diag(FnDecl->getLocation(),
14608 Diag(FnDecl->getLocation(),
14625 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(FnDecl)) {
14632 Arg0 = InitializeExplicitObjectArgument(*this, Args[0], FnDecl);
14640 Context, FnDecl->getParamDecl(ParamIdx)),
14651 FnDecl->getParamDecl(0)),
14659 FnDecl->getParamDecl(1)),
14668 ExprResult FnExpr = CreateFunctionRefExpr(*this, FnDecl,
14675 QualType ResultTy = FnDecl->getReturnType();
14689 if (const auto *Method = dyn_cast<CXXMethodDecl>(FnDecl);
14696 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall,
14697 FnDecl))
14709 cast<CXXMethodDecl>(FnDecl)->getFunctionObjectParameterType());
14711 CheckArgAlignment(OpLoc, FnDecl, "'this'", ThisType,
14715 checkCall(FnDecl, nullptr, ImplicitThis, ArgsArray,
14716 isa<CXXMethodDecl>(FnDecl), OpLoc, TheCall->getSourceRange(),
14723 R = CheckForImmediateInvocation(R, FnDecl);
14742 Ctx.Entity = FnDecl;
15080 FunctionDecl *FnDecl = Best->Function;
15082 if (FnDecl) {
15089 CXXMethodDecl *Method = cast<CXXMethodDecl>(FnDecl);
15118 *this, FnDecl, Best->FoundDecl, Base, HadMultipleCandidates,
15124 QualType ResultTy = FnDecl->getReturnType();
15132 if (CheckCallReturnType(FnDecl->getReturnType(), LLoc, TheCall, FnDecl))
15140 FnDecl);