[PATCH] D23728: [Clang-tidy] Fix style in some checks documentation

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 22 10:28:05 PDT 2016


alexfh added a comment.

Please rebase your patch, I've made some changes to some of these files.


================
Comment at: docs/clang-tidy/checks/misc-misplaced-widening-cast.rst:39
@@ -34,3 +38,3 @@
 Forgetting to place the cast at all is at least as dangerous and at least as
-common as misplacing it. If option ``CheckImplicitCasts`` is enabled (default)
-the checker also detects these cases, for instance::
+common as misplacing it. If :option:`CheckImplicitCasts` is enabled (default)
+the check also detects these cases, for instance:
----------------
The `.. option:: CheckImplicitCasts` block should be added in this document to prevent Sphinx warnings. In order to verify this, you should install Sphinx 1.4.5 (on linux this can be done using `pip install -u Sphinx`, not sure about Windows).

================
Comment at: docs/clang-tidy/checks/misc-misplaced-widening-cast.rst:57
@@ -48,3 +56,3 @@
     double f(float x) {
-        return (double)(x * 10.0f);
+        return (double) (x * 10.0f);
     }
----------------
No space after the closing parenthesis is needed. Same above.


Repository:
  rL LLVM

https://reviews.llvm.org/D23728





More information about the cfe-commits mailing list