@@ -6206,7 +6206,7 @@ the configuration (without a prefix: ``Auto``).
6206
6206
# Example of usage:
6207
6207
SpacesInParens : Custom
6208
6208
SpacesInParensOptions :
6209
- InAttributeSpecifiers : false
6209
+ ExceptDoubleParentheses : false
6210
6210
InConditionalStatements : true
6211
6211
InEmptyParentheses : true
6212
6212
@@ -6219,6 +6219,7 @@ the configuration (without a prefix: ``Auto``).
6219
6219
# Should be declared this way:
6220
6220
SpacesInParens: Custom
6221
6221
SpacesInParensOptions:
6222
+ ExceptDoubleParentheses: false
6222
6223
InConditionalStatements: true
6223
6224
Other: true
6224
6225
@@ -6235,46 +6236,22 @@ the configuration (without a prefix: ``Auto``).
6235
6236
false:
6236
6237
Uses the applicable option.
6237
6238
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
-
6250
6239
* ``bool InConditionalStatements `` Put a space in parentheses only inside conditional statements
6251
6240
(``for/if/while/switch... ``).
6252
6241
6253
6242
.. code-block :: c++
6254
6243
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) { ... }
6264
6247
6265
6248
* ``bool InCStyleCasts `` Put a space in C style casts.
6266
6249
6267
6250
.. code-block :: c++
6268
6251
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);
6278
6255
6279
6256
* ``bool InEmptyParentheses `` Put a space in parentheses only if the parentheses are empty i.e. '()'
6280
6257
@@ -6292,19 +6269,12 @@ the configuration (without a prefix: ``Auto``).
6292
6269
6293
6270
.. code-block :: c++
6294
6271
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))
6308
6278
6309
6279
6310
6280
.. _SpacesInParentheses :
0 commit comments