]> granicus.if.org Git - clang/commitdiff
Fix formatting of a few code blocks. NFC
authorJonathan Roelofs <jonathan@codesourcery.com>
Mon, 11 May 2015 02:05:20 +0000 (02:05 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Mon, 11 May 2015 02:05:20 +0000 (02:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236964 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ClangFormatStyleOptions.rst

index c5ec13e5d835628ada7d0ae783d4bdfae871c061..33020d8f94dce1f22052932c8d8271b84a642bbf 100644 (file)
@@ -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.