[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 2 01:25:05 PDT 2025


================
@@ -123,6 +123,8 @@ Improvements to Clang's diagnostics
   Moved the warning for a missing (though implied) attribute on a redeclaration into this group.
   Added a new warning in this group for the case where the attribute is missing/implicit on
   an override of a virtual method.
+- Fixed fix-it hint for fold expressions. Clang now correctly places the suggested right 
+  parenthesis when diagnosing malformed fold expressions.
----------------
cor3ntin wrote:

```suggestion
- Fixed fix-it hint for fold expressions. Clang now correctly places the suggested right 
  parenthesis when diagnosing malformed fold expressions. (#GH151787)
```

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


More information about the cfe-commits mailing list