[NFC][clang-tidy] Fixup documentation file names for 'readability-container-data-pointer'

This commit is contained in:
Whisperity 2021-11-10 10:16:06 +01:00
parent f74f09128b
commit 164ee457a0
3 changed files with 14 additions and 11 deletions

View File

@ -95,20 +95,22 @@ New checks
Finds virtual classes whose destructor is neither public and virtual nor
protected and non-virtual.
- New :doc:`misc-misleading-identifier <clang-tidy/checks/misc-misleading-identifier>` check.
Reports identifier with unicode right-to-left characters.
- New :doc:`readability-container-data-pointer
<clang-tidy/checks/readability-container-data-pointer>` check.
Finds cases where code could use ``data()`` rather than the address of the
element at index 0 in a container.
- New :doc:`readability-identifier-length
<clang-tidy/checks/readability-identifier-length>` check.
Reports identifiers whose names are too short. Currently checks local
variables and function parameters only.
- New :doc:`readability-data-pointer <clang-tidy/checks/readability-data-pointer>` check.
Finds cases where code could use ``data()`` rather than the address of the
element at index 0 in a container.
- New :doc:`misc-misleading-identifier <clang-tidy/checks/misc-misleading-identifier>` check.
Reports identifier with unicode right-to-left characters.
New check aliases
^^^^^^^^^^^^^^^^^

View File

@ -288,6 +288,7 @@ Clang-Tidy Checks
`readability-avoid-const-params-in-decls <readability-avoid-const-params-in-decls.html>`_,
`readability-braces-around-statements <readability-braces-around-statements.html>`_, "Yes"
`readability-const-return-type <readability-const-return-type.html>`_, "Yes"
`readability-container-data-pointer <readability-container-data-pointer.html>`_, "Yes"
`readability-container-size-empty <readability-container-size-empty.html>`_, "Yes"
`readability-convert-member-functions-to-static <readability-convert-member-functions-to-static.html>`_,
`readability-delete-null-pointer <readability-delete-null-pointer.html>`_, "Yes"

View File

@ -1,7 +1,7 @@
.. title:: clang-tidy - readability-data-pointer
.. title:: clang-tidy - readability-container-data-pointer
readability-data-pointer
========================
readability-container-data-pointer
==================================
Finds cases where code could use ``data()`` rather than the address of the
element at index 0 in a container. This pattern is commonly used to materialize