Skip to content

Commit

Permalink
Fix Sphinx failure on ReadabilityQualifiedAuto docs
Browse files Browse the repository at this point in the history
  • Loading branch information
njames93 committed Feb 11, 2020
1 parent d024025 commit 784d441
Showing 1 changed file with 11 additions and 11 deletions.
Expand Up @@ -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
-------
Expand All @@ -65,20 +65,20 @@ 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++

const auto *Foo1 = cast<const int *>(Bar1);
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++

const auto *Foo1 = cast<const int *>(Bar1);
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`.

1 comment on commit 784d441

@njames93
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.