@@ -538,158 +538,158 @@ the configuration (without a prefix: ``Auto``).
538
538
539
539
* ``bool AfterClass `` Wrap class definitions.
540
540
541
- .. code-block :: c++
541
+ .. code-block :: c++
542
542
543
- true:
544
- class foo {};
543
+ true:
544
+ class foo {};
545
545
546
- false:
547
- class foo
548
- {};
546
+ false:
547
+ class foo
548
+ {};
549
549
550
550
* ``bool AfterControlStatement `` Wrap control statements (``if ``/``for ``/``while ``/``switch ``/..).
551
551
552
- .. code-block :: c++
552
+ .. code-block :: c++
553
553
554
- true:
555
- if (foo())
556
- {
557
- } else
558
- {}
559
- for (int i = 0; i < 10; ++i)
560
- {}
554
+ true:
555
+ if (foo())
556
+ {
557
+ } else
558
+ {}
559
+ for (int i = 0; i < 10; ++i)
560
+ {}
561
561
562
- false:
563
- if (foo()) {
564
- } else {
565
- }
566
- for (int i = 0; i < 10; ++i) {
567
- }
562
+ false:
563
+ if (foo()) {
564
+ } else {
565
+ }
566
+ for (int i = 0; i < 10; ++i) {
567
+ }
568
568
569
569
* ``bool AfterEnum `` Wrap enum definitions.
570
570
571
- .. code-block :: c++
571
+ .. code-block :: c++
572
572
573
- true:
574
- enum X : int
575
- {
576
- B
577
- };
573
+ true:
574
+ enum X : int
575
+ {
576
+ B
577
+ };
578
578
579
- false:
580
- enum X : int { B };
579
+ false:
580
+ enum X : int { B };
581
581
582
582
* ``bool AfterFunction `` Wrap function definitions.
583
583
584
- .. code-block :: c++
584
+ .. code-block :: c++
585
585
586
- true:
587
- void foo()
588
- {
589
- bar();
590
- bar2();
591
- }
586
+ true:
587
+ void foo()
588
+ {
589
+ bar();
590
+ bar2();
591
+ }
592
592
593
- false:
594
- void foo() {
595
- bar();
596
- bar2();
597
- }
593
+ false:
594
+ void foo() {
595
+ bar();
596
+ bar2();
597
+ }
598
598
599
599
* ``bool AfterNamespace `` Wrap namespace definitions.
600
600
601
- .. code-block :: c++
601
+ .. code-block :: c++
602
602
603
- true:
604
- namespace
605
- {
606
- int foo();
607
- int bar();
608
- }
603
+ true:
604
+ namespace
605
+ {
606
+ int foo();
607
+ int bar();
608
+ }
609
609
610
- false:
611
- namespace {
612
- int foo();
613
- int bar();
614
- }
610
+ false:
611
+ namespace {
612
+ int foo();
613
+ int bar();
614
+ }
615
615
616
616
* ``bool AfterObjCDeclaration `` Wrap ObjC definitions (``@autoreleasepool ``, interfaces, ..).
617
617
618
618
* ``bool AfterStruct `` Wrap struct definitions.
619
619
620
- .. code-block :: c++
620
+ .. code-block :: c++
621
621
622
- true:
623
- struct foo
624
- {
625
- int x;
626
- };
622
+ true:
623
+ struct foo
624
+ {
625
+ int x;
626
+ };
627
627
628
- false:
629
- struct foo {
630
- int x;
631
- };
628
+ false:
629
+ struct foo {
630
+ int x;
631
+ };
632
632
633
633
* ``bool AfterUnion `` Wrap union definitions.
634
634
635
- .. code-block :: c++
635
+ .. code-block :: c++
636
636
637
- true:
638
- union foo
639
- {
640
- int x;
641
- }
637
+ true:
638
+ union foo
639
+ {
640
+ int x;
641
+ }
642
642
643
- false:
644
- union foo {
645
- int x;
646
- }
643
+ false:
644
+ union foo {
645
+ int x;
646
+ }
647
647
648
648
* ``bool BeforeCatch `` Wrap before ``catch ``.
649
649
650
- .. code-block :: c++
650
+ .. code-block :: c++
651
651
652
- true:
653
- try {
654
- foo();
655
- }
656
- catch () {
657
- }
652
+ true:
653
+ try {
654
+ foo();
655
+ }
656
+ catch () {
657
+ }
658
658
659
- false:
660
- try {
661
- foo();
662
- } catch () {
663
- }
659
+ false:
660
+ try {
661
+ foo();
662
+ } catch () {
663
+ }
664
664
665
665
* ``bool BeforeElse `` Wrap before ``else ``.
666
666
667
- .. code-block :: c++
667
+ .. code-block :: c++
668
668
669
- true:
670
- if (foo()) {
671
- }
672
- else {
673
- }
669
+ true:
670
+ if (foo()) {
671
+ }
672
+ else {
673
+ }
674
674
675
- false:
676
- if (foo()) {
677
- } else {
678
- }
675
+ false:
676
+ if (foo()) {
677
+ } else {
678
+ }
679
679
680
680
* ``bool IndentBraces `` Indent the wrapped braces themselves.
681
681
682
682
* ``bool SplitEmptyFunctionBody `` If ``false ``, empty function body can be put on a single line.
683
- This option is used only if the opening brace of the function has
684
- already been wrapped, i.e. the `AfterFunction ` brace wrapping mode is
685
- set, and the function could/should not be put on a single line (as per
686
- `AllowShortFunctionsOnASingleLine ` and constructor formatting options).
683
+ This option is used only if the opening brace of the function has
684
+ already been wrapped, i.e. the `AfterFunction ` brace wrapping mode is
685
+ set, and the function could/should not be put on a single line (as per
686
+ `AllowShortFunctionsOnASingleLine ` and constructor formatting options).
687
687
688
- .. code-block :: c++
688
+ .. code-block :: c++
689
689
690
- int f() vs. inf f()
691
- {} {
692
- }
690
+ int f() vs. inf f()
691
+ {} {
692
+ }
693
693
694
694
695
695
**BreakAfterJavaFieldAnnotations ** (``bool ``)
0 commit comments