[clang-tools-extra] r280095 - [clang-tidy docs] Fix build errors on Sphinx 1.4.6

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 30 07:29:36 PDT 2016


Author: hokein
Date: Tue Aug 30 09:29:36 2016
New Revision: 280095

URL: http://llvm.org/viewvc/llvm-project?rev=280095&view=rev
Log:
[clang-tidy docs] Fix build errors on Sphinx 1.4.6

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

Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/misc-suspicious-string-compare.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/misc-suspicious-string-compare.rst?rev=280095&r1=280094&r2=280095&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/misc-suspicious-string-compare.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/misc-suspicious-string-compare.rst Tue Aug 30 09:29:36 2016
@@ -17,7 +17,7 @@ Checks for calls with implicit comparato
 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,

Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/readability-implicit-bool-cast.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/readability-implicit-bool-cast.rst?rev=280095&r1=280094&r2=280095&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/readability-implicit-bool-cast.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/readability-implicit-bool-cast.rst Tue Aug 30 09:29:36 2016
@@ -82,10 +82,10 @@ The rules for generating fix-it hints ar
   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 ar
   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:




More information about the cfe-commits mailing list