Lines Matching refs:FormatExpr
1092 static bool ProcessFormatStringLiteral(const Expr *FormatExpr, in ProcessFormatStringLiteral() argument
1095 if (const auto *Format = dyn_cast<StringLiteral>(FormatExpr); in ProcessFormatStringLiteral()
1257 const auto *FormatExpr = in checkFortifiedBuiltinMemoryFunction() local
1262 if (!ProcessFormatStringLiteral(FormatExpr, FormatStrRef, StrLen, Context)) in checkFortifiedBuiltinMemoryFunction()
1293 auto *FormatExpr = TheCall->getArg(FormatIndex)->IgnoreParenImpCasts(); in checkFortifiedBuiltinMemoryFunction() local
1297 if (ProcessFormatStringLiteral(FormatExpr, FormatStrRef, StrLen, Context)) { in checkFortifiedBuiltinMemoryFunction()
1382 const auto *FormatExpr = TheCall->getArg(2)->IgnoreParenImpCasts(); in checkFortifiedBuiltinMemoryFunction() local
1386 ProcessFormatStringLiteral(FormatExpr, FormatStrRef, StrLen, Context)) { in checkFortifiedBuiltinMemoryFunction()
7254 const Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInCFAPI() local
7255 if (const CStyleCastExpr *CSCE = dyn_cast<CStyleCastExpr>(FormatExpr)) in DiagnoseCStringFormatDirectiveInCFAPI()
7256 FormatExpr = CSCE->getSubExpr(); in DiagnoseCStringFormatDirectiveInCFAPI()
7259 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) in DiagnoseCStringFormatDirectiveInCFAPI()
7262 FormatString = dyn_cast<StringLiteral>(FormatExpr->IgnoreParenImpCasts()); in DiagnoseCStringFormatDirectiveInCFAPI()
7266 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInCFAPI()