]> granicus.if.org Git - clang/commitdiff
Split the AlignTrailingComments on several lines. The comments were applied to the...
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 12 Oct 2017 08:07:53 +0000 (08:07 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 12 Oct 2017 08:07:53 +0000 (08:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315568 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ClangFormatStyleOptions.rst

index 48accc753a3c6d095c913f50219cb8b8834d12eb..0c03c776566dcf4cff97cc16f9cfed157bc3cd18 100644 (file)
@@ -266,9 +266,13 @@ the configuration (without a prefix: ``Auto``).
 
   .. code-block:: c++
 
-    true:                                   false:
-    int a;     // My comment a      vs.     int a; // My comment a
-    int b = 2; // comment  b                int b = 2; // comment about b
+    true:
+    int a;     // My comment a
+    int b = 2; // comment  b
+
+    false:
+    int a; // My comment a
+    int b = 2; // comment about b
 
 **AllowAllParametersOfDeclarationOnNextLine** (``bool``)
   If the function declaration doesn't fit on a line,