Skip to content

Commit 2d4e90d

Browse files
committed
dump format style
1 parent 53d7d27 commit 2d4e90d

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

clang/docs/ClangFormatStyleOptions.rst

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5678,6 +5678,7 @@ the configuration (without a prefix: ``Auto``).
56785678
# Example of usage:
56795679
SpacesInParens: Custom
56805680
SpacesInParensOptions:
5681+
InAttributeSpecifiers: NonConsecutive
56815682
InConditionalStatements: true
56825683
InEmptyParentheses: true
56835684
@@ -5693,12 +5694,35 @@ the configuration (without a prefix: ``Auto``).
56935694
InConditionalStatements: true
56945695
Other: true
56955696

5696-
* ``bool InAttributeSpecifiers`` Put a space in parentheses of attribute specifiers.
5697+
* ``SpacesInParensCustomStyle InAttributeSpecifiers``
5698+
Put a space in parentheses of attribute specifiers.
56975699

56985700
.. code-block:: c++
56995701

5700-
true: false:
5701-
__attribute__( ( noreturn ) ) vs. __attribute__((noreturn))
5702+
Always:
5703+
__attribute__( ( noreturn ) )
5704+
5705+
.. code-block:: c++
5706+
5707+
NonConsecutive:
5708+
_attribute__(( noreturn ))
5709+
5710+
.. code-block:: c++
5711+
5712+
Never:
5713+
_attribute__((noreturn))
5714+
5715+
Possible values:
5716+
5717+
* ``SIPCS_Never`` (in configuration: ``Never``)
5718+
Never put spaces in parens.
5719+
5720+
* ``SIPCS_NonConsecutive`` (in configuration: ``NonConsecutive``)
5721+
Only put spaces in parens not followed by the same consecutive parens.
5722+
5723+
* ``SIPCS_Always`` (in configuration: ``Always``)
5724+
Always put spaces in parens.
5725+
57025726

57035727
* ``bool InConditionalStatements`` Put a space in parentheses only inside conditional statements
57045728
(``for/if/while/switch...``).

0 commit comments

Comments
 (0)