From: Sylvestre Ledru Date: Thu, 12 Oct 2017 08:07:53 +0000 (+0000) Subject: Split the AlignTrailingComments on several lines. The comments were applied to the... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5d949d6d31543b18319e19513d3296a498bfe1f;p=clang Split the AlignTrailingComments on several lines. The comments were applied to the right columns git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315568 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ClangFormatStyleOptions.rst b/docs/ClangFormatStyleOptions.rst index 48accc753a..0c03c77656 100644 --- a/docs/ClangFormatStyleOptions.rst +++ b/docs/ClangFormatStyleOptions.rst @@ -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,