From d5d949d6d31543b18319e19513d3296a498bfe1f Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 12 Oct 2017 08:07:53 +0000 Subject: [PATCH] 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 --- docs/ClangFormatStyleOptions.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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, -- 2.40.0