Home
last modified time | relevance | path

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

/openbsd/src/gnu/llvm/clang/lib/Sema/
DSemaExprObjC.cpp2562 Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInObjCAPI() local
2564 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) { in DiagnoseCStringFormatDirectiveInObjCAPI()
2567 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInObjCAPI()
DSemaChecking.cpp1181 const auto *FormatExpr = in checkFortifiedBuiltinMemoryFunction() local
1184 const auto *Format = dyn_cast<StringLiteral>(FormatExpr); in checkFortifiedBuiltinMemoryFunction()
1229 auto *FormatExpr = TheCall->getArg(FormatIndex)->IgnoreParenImpCasts(); in checkFortifiedBuiltinMemoryFunction() local
1231 if (auto *Format = dyn_cast<StringLiteral>(FormatExpr)) { in checkFortifiedBuiltinMemoryFunction()
5703 const Expr *FormatExpr = Args[Idx]; in DiagnoseCStringFormatDirectiveInCFAPI() local
5704 if (const CStyleCastExpr *CSCE = dyn_cast<CStyleCastExpr>(FormatExpr)) in DiagnoseCStringFormatDirectiveInCFAPI()
5705 FormatExpr = CSCE->getSubExpr(); in DiagnoseCStringFormatDirectiveInCFAPI()
5708 dyn_cast<ObjCStringLiteral>(FormatExpr->IgnoreParenImpCasts())) in DiagnoseCStringFormatDirectiveInCFAPI()
5711 FormatString = dyn_cast<StringLiteral>(FormatExpr->IgnoreParenImpCasts()); in DiagnoseCStringFormatDirectiveInCFAPI()
5715 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInCFAPI()