Home
last modified time | relevance | path

Searched refs:FormatExpr (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/llvm/lib/FileCheck/
H A DFileCheck.cpp783 FormatExpr = FormatExpr.trim(SpaceChars); in parseNumericSubstitutionBlock()
784 if (!FormatExpr.consume_front("%")) in parseNumericSubstitutionBlock()
786 SM, FormatExpr, 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()
804 switch (popFront(FormatExpr)) { in parseNumericSubstitutionBlock()
833 FormatExpr = FormatExpr.ltrim(SpaceChars); in parseNumericSubstitutionBlock()
834 if (!FormatExpr.empty()) in parseNumericSubstitutionBlock()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExprObjC.cpp2564 Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInObjCAPI() local
2566 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) { in DiagnoseCStringFormatDirectiveInObjCAPI()
2569 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInObjCAPI()
H A DSemaChecking.cpp1140 const auto *FormatExpr = in checkFortifiedBuiltinMemoryFunction() local
1143 const auto *Format = dyn_cast<StringLiteral>(FormatExpr); in checkFortifiedBuiltinMemoryFunction()
1188 auto *FormatExpr = TheCall->getArg(FormatIndex)->IgnoreParenImpCasts(); in checkFortifiedBuiltinMemoryFunction() local
1190 if (auto *Format = dyn_cast<StringLiteral>(FormatExpr)) { in checkFortifiedBuiltinMemoryFunction()
5505 const Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInCFAPI() local
5506 if (const CStyleCastExpr *CSCE = dyn_cast<CStyleCastExpr>(FormatExpr)) in DiagnoseCStringFormatDirectiveInCFAPI()
5507 FormatExpr = CSCE->getSubExpr(); in DiagnoseCStringFormatDirectiveInCFAPI()
5510 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) in DiagnoseCStringFormatDirectiveInCFAPI()
5513 FormatString = dyn_cast<StringLiteral>(FormatExpr->IgnoreParenImpCasts()); in DiagnoseCStringFormatDirectiveInCFAPI()
5517 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInCFAPI()