summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst36
1 files changed, 18 insertions, 18 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst
index 7067abe9ca3..658de9a9ca8 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst
@@ -177,24 +177,6 @@ Known Limitations
Options
-------
-.. option:: RemoveStars
-
- If the option is set to non-zero (default is `0`), the check will remove
- stars from the non-typedef pointer types when replacing type names with
- ``auto``. Otherwise, the check will leave stars. For example:
-
-.. code-block:: c++
-
- TypeName *my_first_pointer = new TypeName, *my_second_pointer = new TypeName;
-
- // RemoveStars = 0
-
- auto *my_first_pointer = new TypeName, *my_second_pointer = new TypeName;
-
- // RemoveStars = 1
-
- auto my_first_pointer = new TypeName, my_second_pointer = new TypeName;
-
.. option:: MinTypeNameLength
If the option is set to non-zero (default `5`), the check will ignore type
@@ -214,3 +196,21 @@ Options
int a = static_cast<int>(foo()); // ---> int a = ...
bool b = new bool; // ---> bool b = ...
unsigned c = static_cast<unsigned>(foo()); // ---> auto c = ...
+
+.. option:: RemoveStars
+
+ If the option is set to non-zero (default is `0`), the check will remove
+ stars from the non-typedef pointer types when replacing type names with
+ ``auto``. Otherwise, the check will leave stars. For example:
+
+.. code-block:: c++
+
+ TypeName *my_first_pointer = new TypeName, *my_second_pointer = new TypeName;
+
+ // RemoveStars = 0
+
+ auto *my_first_pointer = new TypeName, *my_second_pointer = new TypeName;
+
+ // RemoveStars = 1
+
+ auto my_first_pointer = new TypeName, my_second_pointer = new TypeName;
OpenPOWER on IntegriCloud