Searched refs:FormatExpr (Results 1 – 4 of 4) sorted by relevance
/freebsd/contrib/llvm-project/llvm/lib/FileCheck/ |
H A D | FileCheck.cpp | 631 StringRef FormatExpr = Expr.take_front(FormatSpecEnd); in parseNumericSubstitutionBlock() local 633 FormatExpr = FormatExpr.trim(SpaceChars); in parseNumericSubstitutionBlock() 634 if (!FormatExpr.consume_front("%")) in parseNumericSubstitutionBlock() 636 SM, FormatExpr, in parseNumericSubstitutionBlock() 640 SMLoc AlternateFormFlagLoc = SMLoc::getFromPointer(FormatExpr.data()); in parseNumericSubstitutionBlock() 641 bool AlternateForm = FormatExpr.consume_front("#"); in parseNumericSubstitutionBlock() 644 if (FormatExpr.consume_front(".")) { in parseNumericSubstitutionBlock() 645 if (FormatExpr.consumeInteger(10, Precision)) in parseNumericSubstitutionBlock() 646 return ErrorDiagnostic::get(SM, FormatExpr, in parseNumericSubstitutionBlock() 650 if (!FormatExpr.empty()) { in parseNumericSubstitutionBlock() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaObjC.cpp | 2288 const Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInCFAPI() local 2289 if (const CStyleCastExpr *CSCE = dyn_cast<CStyleCastExpr>(FormatExpr)) in DiagnoseCStringFormatDirectiveInCFAPI() 2290 FormatExpr = CSCE->getSubExpr(); in DiagnoseCStringFormatDirectiveInCFAPI() 2293 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) in DiagnoseCStringFormatDirectiveInCFAPI() 2296 FormatString = dyn_cast<StringLiteral>(FormatExpr->IgnoreParenImpCasts()); in DiagnoseCStringFormatDirectiveInCFAPI() 2300 Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInCFAPI()
|
H A D | SemaExprObjC.cpp | 2576 Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInObjCAPI() local 2578 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) { in DiagnoseCStringFormatDirectiveInObjCAPI() 2581 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInObjCAPI()
|
H A D | SemaChecking.cpp | 1121 static bool ProcessFormatStringLiteral(const Expr *FormatExpr, in ProcessFormatStringLiteral() argument 1124 if (const auto *Format = dyn_cast<StringLiteral>(FormatExpr); in ProcessFormatStringLiteral() 1286 const auto *FormatExpr = in checkFortifiedBuiltinMemoryFunction() local 1291 if (!ProcessFormatStringLiteral(FormatExpr, FormatStrRef, StrLen, Context)) in checkFortifiedBuiltinMemoryFunction() 1322 auto *FormatExpr = TheCall->getArg(FormatIndex)->IgnoreParenImpCasts(); in checkFortifiedBuiltinMemoryFunction() local 1326 if (ProcessFormatStringLiteral(FormatExpr, FormatStrRef, StrLen, Context)) { in checkFortifiedBuiltinMemoryFunction() 1411 const auto *FormatExpr = TheCall->getArg(2)->IgnoreParenImpCasts(); in checkFortifiedBuiltinMemoryFunction() local 1415 ProcessFormatStringLiteral(FormatExpr, FormatStrRef, StrLen, Context)) { in checkFortifiedBuiltinMemoryFunction()
|