@@ -195,47 +195,231 @@ the configuration (without a prefix: ``Auto``).
195
195
196
196
197
197
198
- **AlignConsecutiveAssignments ** (``bool ``)
199
- If `` true ``, aligns consecutive assignments.
198
+ **AlignConsecutiveAssignments ** (``AlignConsecutiveStyle ``)
199
+ Style of aligning consecutive assignments.
200
200
201
- This will align the assignment operators of consecutive lines. This
202
- will result in formattings like
201
+ ``Consecutive `` will result in formattings like:
203
202
204
203
.. code-block :: c++
205
204
206
- int aaaa = 12 ;
207
- int b = 23 ;
208
- int ccc = 23 ;
205
+ int a = 1 ;
206
+ int somelongname = 2 ;
207
+ double c = 3 ;
209
208
210
- **AlignConsecutiveBitFields ** (``bool ``)
211
- If ``true ``, aligns consecutive bitfield members.
209
+ Possible values:
210
+
211
+ * ``ACS_None `` (in configuration: ``None ``)
212
+ Do not align assignments on consecutive lines.
213
+
214
+ * ``ACS_Consecutive `` (in configuration: ``Consecutive ``)
215
+ Align assignments on consecutive lines. This will result in
216
+ formattings like:
217
+
218
+ .. code-block :: c++
219
+
220
+ int a = 1;
221
+ int somelongname = 2;
222
+ double c = 3;
223
+
224
+ int d = 3;
225
+ /* A comment. */
226
+ double e = 4;
227
+
228
+ * ``ACS_AcrossEmptyLines `` (in configuration: ``AcrossEmptyLines ``)
229
+ Same as ACS_Consecutive, but also spans over empty lines, e.g.
230
+
231
+ .. code-block :: c++
232
+
233
+ int a = 1;
234
+ int somelongname = 2;
235
+ double c = 3;
236
+
237
+ int d = 3;
238
+ /* A comment. */
239
+ double e = 4;
240
+
241
+ * ``ACS_AcrossComments `` (in configuration: ``AcrossComments ``)
242
+ Same as ACS_Consecutive, but also spans over lines only containing
243
+ comments, e.g.
244
+
245
+ .. code-block :: c++
246
+
247
+ int a = 1;
248
+ int somelongname = 2;
249
+ double c = 3;
250
+
251
+ int d = 3;
252
+ /* A comment. */
253
+ double e = 4;
254
+
255
+ * ``ACS_AcrossEmptyLinesAndComments ``
256
+ (in configuration: ``AcrossEmptyLinesAndComments ``)
257
+
258
+ Same as ACS_Consecutive, but also spans over lines only containing
259
+ comments and empty lines, e.g.
260
+
261
+ .. code-block :: c++
262
+
263
+ int a = 1;
264
+ int somelongname = 2;
265
+ double c = 3;
266
+
267
+ int d = 3;
268
+ /* A comment. */
269
+ double e = 4;
270
+
271
+ **AlignConsecutiveBitFields ** (``AlignConsecutiveStyle ``)
272
+ Style of aligning consecutive bit field.
212
273
213
- This will align the bitfield separators of consecutive lines. This
214
- will result in formattings like
274
+ `` Consecutive `` will align the bitfield separators of consecutive lines.
275
+ This will result in formattings like:
215
276
216
277
.. code-block :: c++
217
278
218
279
int aaaa : 1;
219
280
int b : 12;
220
281
int ccc : 8;
221
282
222
- **AlignConsecutiveDeclarations ** (``bool ``)
223
- If ``true ``, aligns consecutive declarations.
283
+ Possible values:
284
+
285
+ * ``ACS_None `` (in configuration: ``None ``)
286
+ Do not align bit fields on consecutive lines.
287
+
288
+ * ``ACS_Consecutive `` (in configuration: ``Consecutive ``)
289
+ Align bit fields on consecutive lines. This will result in
290
+ formattings like:
291
+
292
+ .. code-block :: c++
293
+
294
+ int aaaa : 1;
295
+ int b : 12;
296
+ int ccc : 8;
297
+
298
+ int d : 2;
299
+ /* A comment. */
300
+ int ee : 3;
301
+
302
+ * ``ACS_AcrossEmptyLines `` (in configuration: ``AcrossEmptyLines ``)
303
+ Same as ACS_Consecutive, but also spans over empty lines, e.g.
304
+
305
+ .. code-block :: c++
306
+
307
+ int aaaa : 1;
308
+ int b : 12;
309
+ int ccc : 8;
310
+
311
+ int d : 2;
312
+ /* A comment. */
313
+ int ee : 3;
314
+
315
+ * ``ACS_AcrossComments `` (in configuration: ``AcrossComments ``)
316
+ Same as ACS_Consecutive, but also spans over lines only containing
317
+ comments, e.g.
318
+
319
+ .. code-block :: c++
320
+
321
+ int aaaa : 1;
322
+ int b : 12;
323
+ int ccc : 8;
324
+
325
+ int d : 2;
326
+ /* A comment. */
327
+ int ee : 3;
328
+
329
+ * ``ACS_AcrossEmptyLinesAndComments ``
330
+ (in configuration: ``AcrossEmptyLinesAndComments ``)
331
+
332
+ Same as ACS_Consecutive, but also spans over lines only containing
333
+ comments and empty lines, e.g.
334
+
335
+ .. code-block :: c++
336
+
337
+ int aaaa : 1;
338
+ int b : 12;
339
+ int ccc : 8;
340
+
341
+ int d : 2;
342
+ /* A comment. */
343
+ int ee : 3;
344
+
345
+ **AlignConsecutiveDeclarations ** (``AlignConsecutiveStyle ``)
346
+ Style of aligning consecutive declarations.
224
347
225
- This will align the declaration names of consecutive lines. This
226
- will result in formattings like
348
+ `` Consecutive `` will align the declaration names of consecutive lines.
349
+ This will result in formattings like:
227
350
228
351
.. code-block :: c++
229
352
230
353
int aaaa = 12;
231
354
float b = 23;
232
- std::string ccc = 23 ;
355
+ std::string ccc;
233
356
234
- **AlignConsecutiveMacros ** (``bool ``)
235
- If ``true ``, aligns consecutive C/C++ preprocessor macros.
357
+ Possible values:
358
+
359
+ * ``ACS_None `` (in configuration: ``None ``)
360
+ Do not align bit declarations on consecutive lines.
361
+
362
+ * ``ACS_Consecutive `` (in configuration: ``Consecutive ``)
363
+ Align declarations on consecutive lines. This will result in
364
+ formattings like:
365
+
366
+ .. code-block :: c++
367
+
368
+ int aaaa = 12;
369
+ float b = 23;
370
+ std::string ccc;
371
+
372
+ int a = 42;
373
+ /* A comment. */
374
+ bool c = false;
375
+
376
+ * ``ACS_AcrossEmptyLines `` (in configuration: ``AcrossEmptyLines ``)
377
+ Same as ACS_Consecutive, but also spans over empty lines, e.g.
378
+
379
+ .. code-block :: c++
380
+
381
+ int aaaa = 12;
382
+ float b = 23;
383
+ std::string ccc;
384
+
385
+ int a = 42;
386
+ /* A comment. */
387
+ bool c = false;
388
+
389
+ * ``ACS_AcrossComments `` (in configuration: ``AcrossComments ``)
390
+ Same as ACS_Consecutive, but also spans over lines only containing
391
+ comments, e.g.
392
+
393
+ .. code-block :: c++
394
+
395
+ int aaaa = 12;
396
+ float b = 23;
397
+ std::string ccc;
398
+
399
+ int a = 42;
400
+ /* A comment. */
401
+ bool c = false;
402
+
403
+ * ``ACS_AcrossEmptyLinesAndComments ``
404
+ (in configuration: ``AcrossEmptyLinesAndComments ``)
405
+
406
+ Same as ACS_Consecutive, but also spans over lines only containing
407
+ comments and empty lines, e.g.
408
+
409
+ .. code-block :: c++
410
+
411
+ int aaaa = 12;
412
+ float b = 23;
413
+ std::string ccc;
414
+
415
+ int a = 42;
416
+ /* A comment. */
417
+ bool c = false;
418
+
419
+ **AlignConsecutiveMacros ** (``AlignConsecutiveStyle ``)
420
+ Style of aligning consecutive macro definitions.
236
421
237
- This will align C/C++ preprocessor macros of consecutive lines.
238
- Will result in formattings like
422
+ ``Consecutive `` will result in formattings like:
239
423
240
424
.. code-block :: c++
241
425
@@ -245,6 +429,68 @@ the configuration (without a prefix: ``Auto``).
245
429
#define foo(x) (x * x)
246
430
#define bar(y, z) (y + z)
247
431
432
+ Possible values:
433
+
434
+ * ``ACS_None `` (in configuration: ``None ``)
435
+ Do not align macro definitions on consecutive lines.
436
+
437
+ * ``ACS_Consecutive `` (in configuration: ``Consecutive ``)
438
+ Align macro definitions on consecutive lines. This will result in
439
+ formattings like:
440
+
441
+ .. code-block :: c++
442
+
443
+ #define SHORT_NAME 42
444
+ #define LONGER_NAME 0x007f
445
+ #define EVEN_LONGER_NAME (2)
446
+
447
+ #define foo(x) (x * x)
448
+ /* some comment */
449
+ #define bar(y, z) (y + z)
450
+
451
+ * ``ACS_AcrossEmptyLines `` (in configuration: ``AcrossEmptyLines ``)
452
+ Same as ACS_Consecutive, but also spans over empty lines, e.g.
453
+
454
+ .. code-block :: c++
455
+
456
+ #define SHORT_NAME 42
457
+ #define LONGER_NAME 0x007f
458
+ #define EVEN_LONGER_NAME (2)
459
+
460
+ #define foo(x) (x * x)
461
+ /* some comment */
462
+ #define bar(y, z) (y + z)
463
+
464
+ * ``ACS_AcrossComments `` (in configuration: ``AcrossComments ``)
465
+ Same as ACS_Consecutive, but also spans over lines only containing
466
+ comments, e.g.
467
+
468
+ .. code-block :: c++
469
+
470
+ #define SHORT_NAME 42
471
+ #define LONGER_NAME 0x007f
472
+ #define EVEN_LONGER_NAME (2)
473
+
474
+ #define foo(x) (x * x)
475
+ /* some comment */
476
+ #define bar(y, z) (y + z)
477
+
478
+ * ``ACS_AcrossEmptyLinesAndComments ``
479
+ (in configuration: ``AcrossEmptyLinesAndComments ``)
480
+
481
+ Same as ACS_Consecutive, but also spans over lines only containing
482
+ comments and empty lines, e.g.
483
+
484
+ .. code-block :: c++
485
+
486
+ #define SHORT_NAME 42
487
+ #define LONGER_NAME 0x007f
488
+ #define EVEN_LONGER_NAME (2)
489
+
490
+ #define foo(x) (x * x)
491
+ /* some comment */
492
+ #define bar(y, z) (y + z)
493
+
248
494
**AlignEscapedNewlines ** (``EscapedNewlineAlignmentStyle ``)
249
495
Options for aligning backslashes in escaped newlines.
250
496
0 commit comments