[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)
Gedare Bloom via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 6 18:42:30 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
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.
https://github.com/llvm/llvm-project/pull/118046
More information about the cfe-commits
mailing list