Searched refs:FormatExpr (Results 1 – 3 of 3) sorted by relevance
781 StringRef FormatExpr = Expr.take_front(FormatSpecEnd); in parseNumericSubstitutionBlock() local783 FormatExpr = FormatExpr.trim(SpaceChars); in parseNumericSubstitutionBlock()784 if (!FormatExpr.consume_front("%")) in parseNumericSubstitutionBlock()786 SM, FormatExpr, in parseNumericSubstitutionBlock()790 SMLoc AlternateFormFlagLoc = SMLoc::getFromPointer(FormatExpr.data()); in parseNumericSubstitutionBlock()791 bool AlternateForm = FormatExpr.consume_front("#"); in parseNumericSubstitutionBlock()794 if (FormatExpr.consume_front(".")) { in parseNumericSubstitutionBlock()795 if (FormatExpr.consumeInteger(10, Precision)) in parseNumericSubstitutionBlock()796 return ErrorDiagnostic::get(SM, FormatExpr, in parseNumericSubstitutionBlock()800 if (!FormatExpr.empty()) { in parseNumericSubstitutionBlock()[all …]
2564 Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInObjCAPI() local2566 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) { in DiagnoseCStringFormatDirectiveInObjCAPI()2569 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInObjCAPI()
620 auto *FormatExpr = TheCall->getArg(FormatIndex)->IgnoreParenImpCasts(); in checkFortifiedBuiltinMemoryFunction() local622 if (auto *Format = dyn_cast<StringLiteral>(FormatExpr)) { in checkFortifiedBuiltinMemoryFunction()4427 const Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInCFAPI() local4428 if (const CStyleCastExpr *CSCE = dyn_cast<CStyleCastExpr>(FormatExpr)) in DiagnoseCStringFormatDirectiveInCFAPI()4429 FormatExpr = CSCE->getSubExpr(); in DiagnoseCStringFormatDirectiveInCFAPI()4432 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) in DiagnoseCStringFormatDirectiveInCFAPI()4435 FormatString = dyn_cast<StringLiteral>(FormatExpr->IgnoreParenImpCasts()); in DiagnoseCStringFormatDirectiveInCFAPI()4439 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInCFAPI()