Lines Matching refs:FD
252 if (const Decl *FD = CE->getCalleeDecl()) {
253 if (const Attr *A = isa<FunctionDecl>(FD)
254 ? cast<FunctionDecl>(FD)->getUnusedResultAttr()
255 : FD->getAttr<WarnUnusedResultAttr>()) {
261 if (FD->hasAttr<PureAttr>()) {
265 if (FD->hasAttr<ConstAttr>()) {
1522 FunctionDecl *FD = Call->getDirectCallee();
1523 if (!FD || !FD->isOverloadedOperator()) return false;
1524 switch (FD->getOverloadedOperator()) {
2489 const FunctionDecl *FD = Call->getDirectCallee();
2490 QualType ReturnType = FD->getReturnType();
2850 static bool hasDeducedReturnType(FunctionDecl *FD) {
2852 FD->getTypeSourceInfo()->getType()->castAs<FunctionProtoType>();
2883 FunctionDecl *FD = CurLambda->CallOperator;
2885 CurCap->ReturnType = FD->getReturnType();
2889 if (DeduceFunctionTypeFromReturnExpr(FD, ReturnLoc, RetValExp, AT)) {
2890 FD->setInvalidDecl();
2893 CurCap->ReturnType = FnRetType = FD->getReturnType();
3052 TypeLoc Sema::getReturnTypeLoc(FunctionDecl *FD) const {
3053 TypeLoc TL = FD->getTypeSourceInfo()->getTypeLoc().IgnoreParens();
3061 bool Sema::DeduceFunctionTypeFromReturnExpr(FunctionDecl *FD,
3065 TypeLoc OrigResultType = getReturnTypeLoc(FD);
3078 if (FD->isDependentContext()) {
3092 if (DAR == DAR_Failed && !FD->isInvalidDecl())
3125 if (!DeducedT.isNull() && !FD->isInvalidDecl()) {
3136 if (!FD->isDependentContext() && OldDeducedType != NewDeducedType) {
3149 } else if (!FD->isInvalidDecl()) {
3151 Context.adjustDeducedFunctionResultType(FD, Deduced);
3189 if (const FunctionDecl *FD = getCurFunctionDecl()) {
3190 FnRetType = FD->getReturnType();
3191 if (FD->hasAttrs())
3192 Attrs = &FD->getAttrs();
3193 if (FD->isNoReturn())
3195 << FD->getDeclName();
3228 FunctionDecl *FD = cast<FunctionDecl>(CurContext);
3229 if (DeduceFunctionTypeFromReturnExpr(FD, ReturnLoc, RetValExp, AT)) {
3230 FD->setInvalidDecl();
3233 FnRetType = FD->getReturnType();
3318 FunctionDecl *FD = getCurFunctionDecl();
3321 if (getLangOpts().CPlusPlus11 && FD && FD->isConstexpr()) {
3324 FD->setInvalidDecl();
3333 if (FD)
3334 Diag(ReturnLoc, DiagID) << FD->getIdentifier() << 0/*fn*/;
3751 FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DC);
3752 if (FD)
3753 FD->setUsesSEHTry(true);