summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs
diff options
context:
space:
mode:
authorZinovy Nis <zinovy.nis@gmail.com>2018-04-12 05:45:16 +0000
committerZinovy Nis <zinovy.nis@gmail.com>2018-04-12 05:45:16 +0000
commit0b0b882356812d4908bc6ae11e4c0aac6718d6c8 (patch)
tree0fecaeb1457387230c5c141c30981418b5c96e13 /clang-tools-extra/docs
parent5d0dfa5e0e758fb075b70c4686e46abf45f3c3ba (diff)
downloadbcm5719-llvm-0b0b882356812d4908bc6ae11e4c0aac6718d6c8.tar.gz
bcm5719-llvm-0b0b882356812d4908bc6ae11e4c0aac6718d6c8.zip
[Documentation] Fix options order for Release Notes in modernize-use-auto.
llvm-svn: 329875
Diffstat (limited to 'clang-tools-extra/docs')
-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