r236964 - Fix formatting of a few code blocks. NFC

Jonathan Roelofs jonathan at codesourcery.com
Sun May 10 19:05:21 PDT 2015


Author: jroelofs
Date: Sun May 10 21:05:20 2015
New Revision: 236964

URL: http://llvm.org/viewvc/llvm-project?rev=236964&view=rev
Log:
Fix formatting of a few code blocks. NFC

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=236964&r1=236963&r2=236964&view=diff
==============================================================================
--- cfe/trunk/docs/ClangFormatStyleOptions.rst (original)
+++ cfe/trunk/docs/ClangFormatStyleOptions.rst Sun May 10 21:05:20 2015
@@ -155,21 +155,23 @@ the configuration (without a prefix: ``A
 
   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: ``A
   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.
 





More information about the cfe-commits mailing list