[clang] [clang] Update -Wformat warnings for fixed-point format specifiers (PR #82855)

Michael Jones via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 27 09:43:27 PST 2024


================
@@ -1044,6 +1117,10 @@ bool PrintfSpecifier::hasValidSpacePrefix() const {
   case ConversionSpecifier::AArg:
   case ConversionSpecifier::FreeBSDrArg:
   case ConversionSpecifier::FreeBSDyArg:
+  case ConversionSpecifier::rArg:
+  case ConversionSpecifier::RArg:
----------------
michaelrj-google wrote:

the space prefix is only valid for signed conversions, so not the capital fixed point conversions.

https://github.com/llvm/llvm-project/pull/82855


More information about the cfe-commits mailing list