r315568 - Split the AlignTrailingComments on several lines. The comments were applied to the right columns

Sylvestre Ledru via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 12 01:07:53 PDT 2017


Author: sylvestre
Date: Thu Oct 12 01:07:53 2017
New Revision: 315568

URL: http://llvm.org/viewvc/llvm-project?rev=315568&view=rev
Log:
Split the AlignTrailingComments on several lines. The comments were applied to the right columns

Modified:
    cfe/trunk/docs/ClangFormatStyleOptions.rst

Modified: cfe/trunk/docs/ClangFormatStyleOptions.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ClangFormatStyleOptions.rst?rev=315568&r1=315567&r2=315568&view=diff
==============================================================================
--- cfe/trunk/docs/ClangFormatStyleOptions.rst (original)
+++ cfe/trunk/docs/ClangFormatStyleOptions.rst Thu Oct 12 01:07:53 2017
@@ -266,9 +266,13 @@ the configuration (without a prefix: ``A
 
   .. 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,




More information about the cfe-commits mailing list