[clang] [clang-format] Handle control statements in BreakAfterAttributes (PR #71995)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 11 02:42:00 PST 2023
================
@@ -2049,8 +2049,10 @@ the configuration (without a prefix: ``Auto``).
.. _BreakAfterAttributes:
**BreakAfterAttributes** (``AttributeBreakingStyle``) :versionbadge:`clang-format 16` :ref:`ΒΆ <BreakAfterAttributes>`
- Break after a group of C++11 attributes before a variable/function
- (including constructor/destructor) declaration/definition name.
+ Break after a group of C++11 attributes before variable or function
+ (including constructor/destructor) declaration/definition names or before
+ control statements, i.e. ``if``, ``switch`` (including ``case`` and
+ ``default``labels), ``for``, and ``while`` statements.
----------------
owenca wrote:
```suggestion
``default`` labels), ``for``, and ``while`` statements.
```
https://github.com/llvm/llvm-project/pull/71995
More information about the cfe-commits
mailing list