Home
last modified time | relevance | path

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

/external/llvm-project/llvm/lib/FileCheck/
DFileCheck.cpp762 StringRef FormatExpr = Expr.take_front(FormatSpecEnd); in parseNumericSubstitutionBlock() local
764 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 …]
/external/clang/lib/Sema/
DSemaExprObjC.cpp2288 Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInObjCAPI() local
2290 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) { in DiagnoseCStringFormatDirectiveInObjCAPI()
2293 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInObjCAPI()
DSemaChecking.cpp1962 const Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInCFAPI() local
1963 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()
/external/llvm-project/clang/lib/Sema/
DSemaExprObjC.cpp2563 Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInObjCAPI() local
2565 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) { in DiagnoseCStringFormatDirectiveInObjCAPI()
2568 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInObjCAPI()
DSemaChecking.cpp618 auto *FormatExpr = TheCall->getArg(FormatIndex)->IgnoreParenImpCasts(); in checkFortifiedBuiltinMemoryFunction() local
620 if (auto *Format = dyn_cast<StringLiteral>(FormatExpr)) { in checkFortifiedBuiltinMemoryFunction()
4324 const Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInCFAPI() local
4325 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()