Searched refs:FormatExpr (Results 1 – 3 of 3) sorted by relevance
| /freebsd-14.2/contrib/llvm-project/llvm/lib/FileCheck/ |
| H A D | FileCheck.cpp | 627 FormatExpr = FormatExpr.trim(SpaceChars); in parseNumericSubstitutionBlock() 628 if (!FormatExpr.consume_front("%")) in parseNumericSubstitutionBlock() 630 SM, FormatExpr, in parseNumericSubstitutionBlock() 638 if (FormatExpr.consume_front(".")) { in parseNumericSubstitutionBlock() 639 if (FormatExpr.consumeInteger(10, Precision)) in parseNumericSubstitutionBlock() 640 return ErrorDiagnostic::get(SM, FormatExpr, in parseNumericSubstitutionBlock() 644 if (!FormatExpr.empty()) { in parseNumericSubstitutionBlock() 648 switch (popFront(FormatExpr)) { in parseNumericSubstitutionBlock() 677 FormatExpr = FormatExpr.ltrim(SpaceChars); in parseNumericSubstitutionBlock() 678 if (!FormatExpr.empty()) in parseNumericSubstitutionBlock() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 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 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() [all …]
|
| H A D | SemaExprObjC.cpp | 2567 Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInObjCAPI() local 2569 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) { in DiagnoseCStringFormatDirectiveInObjCAPI() 2572 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInObjCAPI()
|