Searched refs:FormatExpr (Results 1 – 5 of 5) sorted by relevance
762 StringRef FormatExpr = Expr.take_front(FormatSpecEnd); in parseNumericSubstitutionBlock() local764 FormatExpr = FormatExpr.trim(SpaceChars); in parseNumericSubstitutionBlock()765 if (!FormatExpr.consume_front("%")) in parseNumericSubstitutionBlock()767 SM, FormatExpr, in parseNumericSubstitutionBlock()771 if (FormatExpr.consume_front(".")) { in parseNumericSubstitutionBlock()772 if (FormatExpr.consumeInteger(10, Precision)) in parseNumericSubstitutionBlock()773 return ErrorDiagnostic::get(SM, FormatExpr, in parseNumericSubstitutionBlock()777 if (!FormatExpr.empty()) { in parseNumericSubstitutionBlock()780 SMLoc FmtLoc = SMLoc::getFromPointer(FormatExpr.data()); in parseNumericSubstitutionBlock()781 switch (popFront(FormatExpr)) { in parseNumericSubstitutionBlock()[all …]
2288 Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInObjCAPI() local2290 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) { in DiagnoseCStringFormatDirectiveInObjCAPI()2293 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInObjCAPI()
1962 const Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInCFAPI() local1963 if (const CStyleCastExpr *CSCE = dyn_cast<CStyleCastExpr>(FormatExpr)) in DiagnoseCStringFormatDirectiveInCFAPI()1964 FormatExpr = CSCE->getSubExpr(); in DiagnoseCStringFormatDirectiveInCFAPI()1967 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) in DiagnoseCStringFormatDirectiveInCFAPI()1970 FormatString = dyn_cast<StringLiteral>(FormatExpr->IgnoreParenImpCasts()); in DiagnoseCStringFormatDirectiveInCFAPI()1974 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInCFAPI()
2563 Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInObjCAPI() local2565 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) { in DiagnoseCStringFormatDirectiveInObjCAPI()2568 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInObjCAPI()
618 auto *FormatExpr = TheCall->getArg(FormatIndex)->IgnoreParenImpCasts(); in checkFortifiedBuiltinMemoryFunction() local620 if (auto *Format = dyn_cast<StringLiteral>(FormatExpr)) { in checkFortifiedBuiltinMemoryFunction()4324 const Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInCFAPI() local4325 if (const CStyleCastExpr *CSCE = dyn_cast<CStyleCastExpr>(FormatExpr)) in DiagnoseCStringFormatDirectiveInCFAPI()4326 FormatExpr = CSCE->getSubExpr(); in DiagnoseCStringFormatDirectiveInCFAPI()4329 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) in DiagnoseCStringFormatDirectiveInCFAPI()4332 FormatString = dyn_cast<StringLiteral>(FormatExpr->IgnoreParenImpCasts()); in DiagnoseCStringFormatDirectiveInCFAPI()4336 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInCFAPI()