]> granicus.if.org Git - clang/commitdiff
Correct documentation about the AfterClass clang-format option
authorEric Fiselier <eric@efcs.ca>
Thu, 15 Jun 2017 03:38:08 +0000 (03:38 +0000)
committerEric Fiselier <eric@efcs.ca>
Thu, 15 Jun 2017 03:38:08 +0000 (03:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305450 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ClangFormatStyleOptions.rst

index 9e0bacaf7c14aedea25aa19281ee4d6b756bd2a2..fb014241809cc7d20778a7cf7b31786894dae5d4 100644 (file)
@@ -521,12 +521,12 @@ the configuration (without a prefix: ``Auto``).
   .. code-block:: c++
 
     true:
-    class foo {};
-
-    false:
     class foo
     {};
 
+    false:
+    class foo {};
+
   * ``bool AfterControlStatement`` Wrap control statements (``if``/``for``/``while``/``switch``/..).
 
   .. code-block:: c++
@@ -603,12 +603,12 @@ the configuration (without a prefix: ``Auto``).
     struct foo
     {
       int x;
-    }
+    };
 
     false:
     struct foo {
       int x;
-    }
+    };
 
   * ``bool AfterUnion`` Wrap union definitions.