summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/docs/ReleaseNotes.rst12
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst6
2 files changed, 10 insertions, 8 deletions
diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst
index 853b1da03e0..1334625e06f 100644
--- a/clang-tools-extra/docs/ReleaseNotes.rst
+++ b/clang-tools-extra/docs/ReleaseNotes.rst
@@ -57,11 +57,6 @@ The improvements are...
Improvements to clang-tidy
--------------------------
-- New option `MinTypeNameLength` for `modernize-use-auto` to limit the minimal
- length of type names to be replaced with 'auto'. Use to skip replacing
- short type names like 'int'/'bool' -> 'auto'. Default value is 5 which means
- replace types with the name length >= 5 letters only (ex. double, unsigned).
-
- New module `abseil` for checks related to the `Abseil <https://abseil.io>`_
library.
@@ -151,6 +146,13 @@ Improvements to clang-tidy
Warns on construction of specific temporary objects in the Zircon kernel.
+- New option `MinTypeNameLength` for :doc:`modernize-use-auto
+ <clang-tidy/checks/modernize-use-auto>` check to limit the minimal length of
+ type names to be replaced with ``auto``. Use to skip replacing short type
+ names like ``int``/``bool`` with ``auto``. Default value is 5 which means
+ replace types with the name length >= 5 letters only (ex. ``double``,
+ ``unsigned``).
+
- New alias :doc:`hicpp-avoid-goto
<clang-tidy/checks/hicpp-avoid-goto>` to :doc:`cppcoreguidelines-avoid-goto
<clang-tidy/checks/cppcoreguidelines-avoid-goto>`
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 cb1a9cc313b..7067abe9ca3 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
@@ -197,9 +197,9 @@ Options
.. option:: MinTypeNameLength
- If the option is set to non-zero (default '5'), the check will ignore
- type names having a length less than the option value.
- The option affects expressions only, not iterators.
+ If the option is set to non-zero (default `5`), the check will ignore type
+ names having a length less than the option value. The option affects
+ expressions only, not iterators.
.. code-block:: c++
OpenPOWER on IntegriCloud