[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 18 23:12:13 PST 2025
================
@@ -280,6 +281,13 @@ struct ParenState {
/// was a newline after the beginning left paren.
bool BreakBeforeClosingParen : 1;
+ /// Whether a newline needs to be inserted before the block's closing
+ /// angle < >.
+ ///
+ /// We only want to insert a newline before the closing angle if there also
+ /// was a newline after the beginning left angle.
----------------
owenca wrote:
```suggestion
/// Whether a newline needs to be inserted before a closing angle `>`.
```
https://github.com/llvm/llvm-project/pull/118046
More information about the cfe-commits
mailing list