[clang] [Clang] Fix '-Wformat-overflow' FP when floats had field-width and plus prefix (PR #144274)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 16 07:06:18 PDT 2025


================
@@ -629,6 +629,9 @@ Improvements to Clang's diagnostics
   #GH69470, #GH59391, #GH58172, #GH46215, #GH45915, #GH45891, #GH44490,
   #GH36703, #GH32903, #GH23312, #GH69874.
 
+- Fixed false positives in ``-Wformat-truncation`` and ``-Wformat-overflow``
+  diagnostics when floating-point numbers had both width field and plus or space
+  prefix specified.
----------------
AaronBallman wrote:

```suggestion
  prefix specified. (#GH143951)
```
(This ties the release note to the GitHub issue it relates to.

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


More information about the cfe-commits mailing list