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

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 13 00:07:58 PST 2025


owenca wrote:

Why doesn't it break before the `>` for the example (a.cc) below?
```cpp
template <class A,
          class B>
class C {
  void f() {}
};
```
Command line:
```
clang-format -style='{BreakBeforeTemplateCloser: Multiline, ColumnLimit: 26}' a.cc
```

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


More information about the cfe-commits mailing list