[clang-tools-extra] 784d441 - Fix Sphinx failure on ReadabilityQualifiedAuto docs

Nathan James via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 10 18:03:54 PST 2020


Author: Nathan James
Date: 2020-02-11T02:03:37Z
New Revision: 784d4417453e2bb792e29f5dad462f7fcebab6d1

URL: https://github.com/llvm/llvm-project/commit/784d4417453e2bb792e29f5dad462f7fcebab6d1
DIFF: https://github.com/llvm/llvm-project/commit/784d4417453e2bb792e29f5dad462f7fcebab6d1.diff

LOG: Fix Sphinx failure on ReadabilityQualifiedAuto docs

Added: 
    

Modified: 
    clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst
index 351b333b6dce..413640fb7ca7 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst
@@ -36,19 +36,19 @@ Note ``const`` ``volatile`` qualified types will retain their ``const`` and
 
 .. code-block:: c++
 
-   const auto Foo = cast<int *>(Baz1);
-   const auto Bar = cast<const int *>(Baz2);
-   volatile auto FooBar = cast<int *>(Baz3);
-   auto BarFoo = cast<int **>(Baz4);
+  const auto Foo = cast<int *>(Baz1);
+  const auto Bar = cast<const int *>(Baz2);
+  volatile auto FooBar = cast<int *>(Baz3);
+  auto BarFoo = cast<int **>(Baz4);
 
 Would be transformed into:
 
 .. code-block:: c++
 
-   auto *const Foo = cast<int *>(Baz1);
-   const auto *const Bar = cast<const int *>(Baz2);
-   auto *volatile FooBar = cast<int *>(Baz3);
-   auto *BarFoo = cast<int **>(Baz4);
+  auto *const Foo = cast<int *>(Baz1);
+  const auto *const Bar = cast<const int *>(Baz2);
+  auto *volatile FooBar = cast<int *>(Baz3);
+  auto *BarFoo = cast<int **>(Baz4);
 
 Options
 -------
@@ -65,7 +65,7 @@ Options
    auto *Foo2 = cast<const int *>(Bar2);
    auto &Foo3 = cast<const int &>(Bar3);
 
-   If AddConstToQualified is set to `0`,  it will be transformed into:
+If AddConstToQualified is set to `0`,  it will be transformed into:
 
 .. code-block:: c++
 
@@ -73,7 +73,7 @@ Options
    auto *Foo2 = cast<const int *>(Bar2);
    auto &Foo3 = cast<const int &>(Bar3);
 
-   Otherwise it will be transformed into:
+Otherwise it will be transformed into:
 
 .. code-block:: c++
 
@@ -81,4 +81,4 @@ Options
    const auto *Foo2 = cast<const int *>(Bar2);
    const auto &Foo3 = cast<const int &>(Bar3);
 
-   Note in the LLVM alias, the default value is `0`.
+Note in the LLVM alias, the default value is `0`.


        


More information about the cfe-commits mailing list