Skip to content

Commit ce10b36

Browse files
committed
Fix missing style option docs
1 parent 2c26e66 commit ce10b36

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

clang/docs/ClangFormatStyleOptions.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,6 +2579,36 @@ the configuration (without a prefix: ``Auto``).
25792579
{} {
25802580
}
25812581

2582+
* ``BraceWrapEmptyRecordStyle WrapEmptyRecord``
2583+
Wrap empty record (``class``/``struct``/``union``).
2584+
2585+
Possible values:
2586+
2587+
* ``BWËR_Never`` (in configuration: ``Never``)
2588+
Never wrap braces of empty records.
2589+
2590+
.. code-block:: c++
2591+
2592+
class foo
2593+
{
2594+
int foo;
2595+
};
2596+
2597+
class foo{};
2598+
2599+
* ``BWER_Default`` (in configuration: ``MultiLine``)
2600+
Use default wrapping rules for records. (``AfterClass``, ``AfterStruct``, ``AfterUnion``)
2601+
2602+
.. code-block:: c++
2603+
2604+
class foo
2605+
{
2606+
int foo;
2607+
};
2608+
2609+
class foo
2610+
{
2611+
};
25822612

25832613
.. _BracedInitializerIndentWidth:
25842614

0 commit comments

Comments
 (0)