Lines Matching refs:FDecl
1434 Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, in CheckBuiltinFunctionCall() argument
1863 Context.getExceptionObjectType(FDecl->getParamDecl(0)->getType()), in CheckBuiltinFunctionCall()
4305 const NamedDecl *FDecl, in DiagnoseCStringFormatDirectiveInCFAPI() argument
4310 ObjCStringFormatFamily SFFamily = FDecl->getObjCFStringFormattingFamily(); in DiagnoseCStringFormatDirectiveInCFAPI()
4316 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { in DiagnoseCStringFormatDirectiveInCFAPI()
4338 S.Diag(FDecl->getLocation(), diag::note_entity_declared_at) in DiagnoseCStringFormatDirectiveInCFAPI()
4339 << FDecl->getDeclName(); in DiagnoseCStringFormatDirectiveInCFAPI()
4352 const NamedDecl *FDecl, in CheckNonNullArguments() argument
4356 assert((FDecl || Proto) && "Need a function declaration or prototype"); in CheckNonNullArguments()
4363 if (FDecl) { in CheckNonNullArguments()
4365 for (const auto *NonNull : FDecl->specific_attrs<NonNullAttr>()) { in CheckNonNullArguments()
4385 if (FDecl && (isa<FunctionDecl>(FDecl) || isa<ObjCMethodDecl>(FDecl))) { in CheckNonNullArguments()
4389 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(FDecl)) in CheckNonNullArguments()
4392 parms = cast<ObjCMethodDecl>(FDecl)->parameters(); in CheckNonNullArguments()
4410 if (const ValueDecl *VD = dyn_cast<ValueDecl>(FDecl)) { in CheckNonNullArguments()
4451 void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, in checkCall() argument
4461 if (FDecl) { in checkCall()
4462 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { in checkCall()
4473 auto *FD = dyn_cast_or_null<FunctionDecl>(FDecl); in checkCall()
4477 : FDecl && isa<FunctionDecl>(FDecl) in checkCall()
4478 ? cast<FunctionDecl>(FDecl)->getNumParams() in checkCall()
4479 : FDecl && isa<ObjCMethodDecl>(FDecl) in checkCall()
4480 ? cast<ObjCMethodDecl>(FDecl)->param_size() in checkCall()
4492 if (FDecl || Proto) { in checkCall()
4493 CheckNonNullArguments(*this, FDecl, Proto, Args, Loc); in checkCall()
4496 if (FDecl) { in checkCall()
4497 for (const auto *I : FDecl->specific_attrs<ArgumentWithTypeTagAttr>()) in checkCall()
4502 if (FDecl && FDecl->hasAttr<AllocAlignAttr>()) { in checkCall()
4503 auto *AA = FDecl->getAttr<AllocAlignAttr>(); in checkCall()
4526 void Sema::CheckConstructorCall(FunctionDecl *FDecl, in CheckConstructorCall() argument
4532 checkCall(FDecl, Proto, /*ThisArg=*/nullptr, Args, /*IsMemberFunction=*/true, in CheckConstructorCall()
4538 bool Sema::CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall, in CheckFunctionCall() argument
4541 isa<CXXMethodDecl>(FDecl); in CheckFunctionCall()
4544 VariadicCallType CallType = getVariadicCallType(FDecl, Proto, in CheckFunctionCall()
4561 checkCall(FDecl, Proto, ImplicitThis, llvm::makeArrayRef(Args, NumArgs), in CheckFunctionCall()
4565 IdentifierInfo *FnInfo = FDecl->getIdentifier(); in CheckFunctionCall()
4571 CheckAbsoluteValueFunction(TheCall, FDecl); in CheckFunctionCall()
4572 CheckMaxUnsignedZero(TheCall, FDecl); in CheckFunctionCall()
4575 DiagnoseCStringFormatDirectiveInCFAPI(*this, FDecl, Args, NumArgs); in CheckFunctionCall()
4577 unsigned CMId = FDecl->getMemoryFunctionKind(); in CheckFunctionCall()
5197 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl()); in SemaBuiltinAtomicOverloaded() local
5308 unsigned BuiltinID = FDecl->getBuiltinID(); in SemaBuiltinAtomicOverloaded()
5497 NewBuiltinDecl = FDecl; in SemaBuiltinAtomicOverloaded()
5573 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl()); in SemaBuiltinNontemporalOverloaded() local
5574 unsigned BuiltinID = FDecl->getBuiltinID(); in SemaBuiltinNontemporalOverloaded()
6384 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl()); in SemaBuiltinConstantArg() local
6391 << FDecl->getDeclName() << Arg->getSourceRange(); in SemaBuiltinConstantArg()
9307 static unsigned getAbsoluteValueFunctionKind(const FunctionDecl *FDecl) { in getAbsoluteValueFunctionKind() argument
9308 const IdentifierInfo *FnInfo = FDecl->getIdentifier(); in getAbsoluteValueFunctionKind()
9312 switch (FDecl->getBuiltinID()) { in getAbsoluteValueFunctionKind()
9333 return FDecl->getBuiltinID(); in getAbsoluteValueFunctionKind()
9362 const FunctionDecl *FDecl = nullptr; in emitReplacement() local
9364 FDecl = dyn_cast<FunctionDecl>(UsingD->getTargetDecl()); in emitReplacement()
9366 FDecl = dyn_cast<FunctionDecl>(I); in emitReplacement()
9368 if (!FDecl) in emitReplacement()
9372 if (FDecl->getNumParams() != 1) in emitReplacement()
9376 QualType ParamType = FDecl->getParamDecl(0)->getType(); in emitReplacement()
9423 static bool IsStdFunction(const FunctionDecl *FDecl, in IsStdFunction() argument
9425 if (!FDecl) in IsStdFunction()
9427 if (!FDecl->getIdentifier() || !FDecl->getIdentifier()->isStr(Str)) in IsStdFunction()
9429 if (!FDecl->isInStdNamespace()) in IsStdFunction()
9437 const FunctionDecl *FDecl) { in CheckAbsoluteValueFunction() argument
9441 unsigned AbsKind = getAbsoluteValueFunctionKind(FDecl); in CheckAbsoluteValueFunction()
9442 bool IsStdAbs = IsStdFunction(FDecl, "abs"); in CheckAbsoluteValueFunction()
9490 << FDecl << ArgType << ParamType; in CheckAbsoluteValueFunction()
9509 << FDecl << ParamValueKind << ArgValueKind; in CheckAbsoluteValueFunction()
9517 const FunctionDecl *FDecl) { in CheckMaxUnsignedZero() argument
9518 if (!Call || !FDecl) return; in CheckMaxUnsignedZero()
9526 if (!IsStdFunction(FDecl, "max")) return; in CheckMaxUnsignedZero()
9527 const auto * ArgList = FDecl->getTemplateSpecializationArgs(); in CheckMaxUnsignedZero()