[clang] [clang][Diagnostics] Don't drop "no-" when reporting an unknown -Wno-error= option (PR #239212)

Chen Miao via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 21:47:49 PST 2026


================
@@ -784,6 +784,11 @@ documentation](CIR/index.md) for more information regarding ClangIR's status and
   `-Wunsafe-buffer-usage-in-format-attr-call` now works when it is the only
   Safe Buffers warning enabled.
 
+- Fixed the `no-` prefix being dropped when diagnosing an unknown
+  `-Wno-error=` or `-Wno-fatal-errors=` warning option. Clang now reports the
+  option as it was written on the command line instead of its positive form.
----------------
ChenMiaoi wrote:

``` suggestion
  `-Wno-error=` or `-Wno-fatal-errors=` warning option. Clang now preserves
  the no- prefix in the diagnostic and spelling suggestion.
```

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


More information about the cfe-commits mailing list