Skip to content

Commit a423067

Browse files
committed
Dump format style
1 parent e718473 commit a423067

File tree

1 file changed

+14
-44
lines changed

1 file changed

+14
-44
lines changed

clang/docs/ClangFormatStyleOptions.rst

Lines changed: 14 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6206,7 +6206,7 @@ the configuration (without a prefix: ``Auto``).
62066206
# Example of usage:
62076207
SpacesInParens: Custom
62086208
SpacesInParensOptions:
6209-
InAttributeSpecifiers: false
6209+
ExceptDoubleParentheses: false
62106210
InConditionalStatements: true
62116211
InEmptyParentheses: true
62126212
@@ -6219,6 +6219,7 @@ the configuration (without a prefix: ``Auto``).
62196219
# Should be declared this way:
62206220
SpacesInParens: Custom
62216221
SpacesInParensOptions:
6222+
ExceptDoubleParentheses: false
62226223
InConditionalStatements: true
62236224
Other: true
62246225

@@ -6235,46 +6236,22 @@ the configuration (without a prefix: ``Auto``).
62356236
false:
62366237
Uses the applicable option.
62376238

6238-
* ``bool InAttributeSpecifiers`` Put a space in parentheses of attribute specifiers.
6239-
6240-
.. code-block:: c++
6241-
6242-
true:
6243-
__attribute__( ( noreturn ) )
6244-
6245-
.. code-block:: c++
6246-
6247-
false:
6248-
_attribute__((noreturn))
6249-
62506239
* ``bool InConditionalStatements`` Put a space in parentheses only inside conditional statements
62516240
(``for/if/while/switch...``).
62526241

62536242
.. code-block:: c++
62546243

6255-
true:
6256-
if ( ( a ) ) { ... }
6257-
while ( i < 5 ) { ... }
6258-
6259-
.. code-block:: c++
6260-
6261-
false:
6262-
if ((a)) { ... }
6263-
while (i < 5) { ... }
6244+
true: false:
6245+
if ( ( a ) ) { ... } vs. if ((a)) { ... }
6246+
while ( i < 5 ) { ... } while (i < 5) { ... }
62646247

62656248
* ``bool InCStyleCasts`` Put a space in C style casts.
62666249

62676250
.. code-block:: c++
62686251

6269-
true:
6270-
x = ( int32 )y
6271-
y = (( int (*)(int) )foo)(x);
6272-
6273-
.. code-block:: c++
6274-
6275-
false:
6276-
x = (int32)y
6277-
y = ((int (*)(int))foo)(x);
6252+
true: false:
6253+
x = ( int32 )y vs. x = (int32)y
6254+
y = (( int (*)(int) )foo)(x); y = ((int (*)(int))foo)(x);
62786255

62796256
* ``bool InEmptyParentheses`` Put a space in parentheses only if the parentheses are empty i.e. '()'
62806257

@@ -6292,19 +6269,12 @@ the configuration (without a prefix: ``Auto``).
62926269

62936270
.. code-block:: c++
62946271

6295-
true:
6296-
t f( Deleted & ) & = delete;
6297-
decltype( ( x ) )
6298-
x = ( (int32)y )
6299-
y = ( (int ( * )( int ))foo )( x );
6300-
6301-
.. code-block:: c++
6302-
6303-
false:
6304-
t f(Deleted &) & = delete;
6305-
decltype((x))
6306-
x = ((int32))y
6307-
y = ((int (*)(int))foo)(x);
6272+
true: false:
6273+
t f( Deleted & ) & = delete; vs. t f(Deleted &) & = delete;
6274+
decltype( ( x ) ) decltype((x))
6275+
x = ( (int32)y ) x = ((int32))y
6276+
y = ( (int ( * )( int ))foo )( x ); y = ((int (*)(int))foo)(x);
6277+
__attribute__( ( noreturn ) ) __attribute__((noreturn))
63086278

63096279

63106280
.. _SpacesInParentheses:

0 commit comments

Comments
 (0)