[clang-tidy docs] Fix build errors on Sphinx 1.4.6
authorHaojian Wu <hokein@google.com>
Tue, 30 Aug 2016 14:29:36 +0000 (14:29 +0000)
committerHaojian Wu <hokein@google.com>
Tue, 30 Aug 2016 14:29:36 +0000 (14:29 +0000)
llvm-svn: 280095

clang-tools-extra/docs/clang-tidy/checks/misc-suspicious-string-compare.rst
clang-tools-extra/docs/clang-tidy/checks/readability-implicit-bool-cast.rst

index bb95436..510e4c4 100644 (file)
@@ -17,7 +17,7 @@ Checks for calls with implicit comparator and proposed to explicitly add it.
 Checks that compare function results (i,e, ``strcmp``) are compared to valid
 constant. The resulting value is
 
-.. code-block::
+.. code::
 
     <  0    when lower than,
     >  0    when greater than,
index 887ac0d..0d195e9 100644 (file)
@@ -82,10 +82,10 @@ The rules for generating fix-it hints are:
   is proposed to make it clear what exaclty is being compared:
 
   - ``bool boolean = floating;`` is changed to
-  ``bool boolean = floating == 0.0f;``,
+    ``bool boolean = floating == 0.0f;``,
 
   - for other types, appropriate literals are used (``0``, ``0u``, ``0.0f``,
-  ``0.0``, ``nullptr``),
+    ``0.0``, ``nullptr``),
 
 - in case of negated expressions cast to bool, the proposed replacement with
   comparison is simplified:
@@ -96,7 +96,7 @@ The rules for generating fix-it hints are:
   is proposed to make it clear that a cast is taking place:
 
   - ``int integer = boolean;`` is changed to
-  ``int integer = static_cast<int>(boolean);``,
+    ``int integer = static_cast<int>(boolean);``,
 
 - if the cast is performed on type literals, an equivalent literal is proposed,
   according to what type is actually expected, for example: