From a994172feb23c3d4a988035b80cb88e165f0ab52 Mon Sep 17 00:00:00 2001 From: Jonathan Roelofs <jonathan@codesourcery.com> Date: Mon, 11 May 2015 02:05:20 +0000 Subject: [PATCH] Fix formatting of a few code blocks. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236964 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ClangFormatStyleOptions.rst | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/ClangFormatStyleOptions.rst b/docs/ClangFormatStyleOptions.rst index c5ec13e5d83..33020d8f94d 100644 --- a/docs/ClangFormatStyleOptions.rst +++ b/docs/ClangFormatStyleOptions.rst @@ -155,21 +155,23 @@ the configuration (without a prefix: ``Auto``). This applies to round brackets (parentheses), angle brackets and square brackets. This will result in formattings like - \code + +.. code-block:: c++ + someLongFunction(argument1, argument2); - \endcode **AlignConsecutiveAssignments** (``bool``) If ``true``, aligns consecutive assignments. This will align the assignment operators of consecutive lines. This will result in formattings like - \code + +.. code-block:: c++ + int aaaa = 12; int b = 23; int ccc = 23; - \endcode **AlignEscapedNewlinesLeft** (``bool``) If ``true``, aligns escaped newlines as far left as possible. @@ -341,10 +343,11 @@ the configuration (without a prefix: ``Auto``). instead of as function calls. These are expected to be macros of the form: - \code + +.. code-block:: c++ + FOREACH(<variable-declaration>, ...) <loop-body> - \endcode For example: BOOST_FOREACH. -- GitLab