Home | History | Annotate | Download | only in Sema

Lines Matching refs:FDecl

729                                   const NamedDecl *FDecl,
733 for (const auto *NonNull : FDecl->specific_attrs<NonNullAttr>()) {
740 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(FDecl))
742 else if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(FDecl))
756 void Sema::checkCall(NamedDecl *FDecl, ArrayRef<const Expr *> Args,
766 if (FDecl) {
767 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) {
788 if (FDecl) {
789 CheckNonNullArguments(*this, FDecl, Args.data(), Loc);
792 for (const auto *I : FDecl->specific_attrs<ArgumentWithTypeTagAttr>())
799 void Sema::CheckConstructorCall(FunctionDecl *FDecl,
805 checkCall(FDecl, Args, Proto->getNumParams(),
811 bool Sema::CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall,
814 isa<CXXMethodDecl>(FDecl);
817 VariadicCallType CallType = getVariadicCallType(FDecl, Proto,
829 checkCall(FDecl, llvm::makeArrayRef<const Expr *>(Args, NumArgs), NumParams,
833 IdentifierInfo *FnInfo = FDecl->getIdentifier();
839 CheckAbsoluteValueFunction(TheCall, FDecl, FnInfo);
841 unsigned CMId = FDecl->getMemoryFunctionKind();
899 VariadicCallType CallType = getVariadicCallType(/*FDecl=*/nullptr, Proto,
903 checkCall(/*FDecl=*/nullptr,
1287 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl());
1391 unsigned BuiltinID = FDecl->getBuiltinID();
1551 NewBuiltinDecl = FDecl;
1951 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl());
1957 << FDecl->getDeclName() << Arg->getSourceRange();
3759 static unsigned getAbsoluteValueFunctionKind(const FunctionDecl *FDecl) {
3760 const IdentifierInfo *FnInfo = FDecl->getIdentifier();
3764 switch (FDecl->getBuiltinID()) {
3785 return FDecl->getBuiltinID();
3814 const FunctionDecl *FDecl = nullptr;
3816 FDecl = dyn_cast<FunctionDecl>(UsingD->getTargetDecl());
3818 FDecl = dyn_cast<FunctionDecl>(I);
3820 if (!FDecl)
3824 if (FDecl->getNumParams() != 1)
3828 QualType ParamType = FDecl->getParamDecl(0)->getType();
3873 static bool IsFunctionStdAbs(const FunctionDecl *FDecl) {
3874 if (!FDecl)
3877 if (!FDecl->getIdentifier() || !FDecl->getIdentifier()->isStr("abs"))
3880 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(FDecl->getDeclContext());
3897 const FunctionDecl *FDecl,
3902 unsigned AbsKind = getAbsoluteValueFunctionKind(FDecl);
3903 bool IsStdAbs = IsFunctionStdAbs(FDecl);
3938 << FDecl << ArgType << ParamType;
3957 << FDecl << ParamValueKind << ArgValueKind;