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

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 10 19:23:17 PST 2025


owenca wrote:

> > Maybe we should make it a sub-option for `BlockIndent`. I'm seeing a possible need for having control over other kinds of block indented structures such as Lambdas. I suspect the way this option has been implemented it interacts with the alignment options anyway. This would be a question probably for @owenca
> 
> I thought about it some more and I don't think it would be a good idea. Having a separate option seems a bit easier to handle, and allows mixing and matching by users.

I think this should be covered by [`BlockIndent`](https://clang.llvm.org/docs/ClangFormatStyleOptions.html#alignafteropenbracket), which already covers both parentheses and braces. Let's hear what @mydeveloperday has to say.

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


More information about the cfe-commits mailing list