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

Gedare Bloom via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 6 18:32:47 PST 2024


gedare wrote:

> Yes. I followed the code that implements `AlignAfterOpenBracket: BlockIndent`, except applying to ClosesTemplateDeclaration. I made it a new setting for backwards compatibility. 👍

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 

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


More information about the cfe-commits mailing list