[clang] [clang-format] Add BreakBeforeTemplateCloser option (PR #118046)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 5 23:58:00 PST 2025


================
@@ -2252,6 +2252,33 @@ struct FormatStyle {
   /// \version 16
   BreakBeforeInlineASMColonStyle BreakBeforeInlineASMColon;
 
+  /// If ``true``, a line break will be placed before the ``>`` in a block
+  /// indented template declaration.
----------------
owenca wrote:

```suggestion
  /// If ``true``, break before a template closing bracket (``>``) when there is
  /// a line break after the matching opening bracket (``<``).
```

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


More information about the cfe-commits mailing list