diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst index 0019f574802fd..b73ea44a82bf7 100644 --- a/clang-tools-extra/docs/ReleaseNotes.rst +++ b/clang-tools-extra/docs/ReleaseNotes.rst @@ -95,20 +95,22 @@ New checks Finds virtual classes whose destructor is neither public and virtual nor protected and non-virtual. -- New :doc:`readability-identifier-length - ` check. +- New :doc:`misc-misleading-identifier ` check. - Reports identifiers whose names are too short. Currently checks local - variables and function parameters only. + Reports identifier with unicode right-to-left characters. -- New :doc:`readability-data-pointer ` check. +- New :doc:`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:`misc-misleading-identifier ` check. +- New :doc:`readability-identifier-length + ` check. + + Reports identifiers whose names are too short. Currently checks local + variables and function parameters only. - Reports identifier with unicode right-to-left characters. New check aliases ^^^^^^^^^^^^^^^^^ diff --git a/clang-tools-extra/docs/clang-tidy/checks/list.rst b/clang-tools-extra/docs/clang-tidy/checks/list.rst index 80a9639c2dddc..a99dd310bb012 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/list.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/list.rst @@ -288,6 +288,7 @@ Clang-Tidy Checks `readability-avoid-const-params-in-decls `_, `readability-braces-around-statements `_, "Yes" `readability-const-return-type `_, "Yes" + `readability-container-data-pointer `_, "Yes" `readability-container-size-empty `_, "Yes" `readability-convert-member-functions-to-static `_, `readability-delete-null-pointer `_, "Yes" diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-data-pointer.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-container-data-pointer.rst similarity index 77% rename from clang-tools-extra/docs/clang-tidy/checks/readability-data-pointer.rst rename to clang-tools-extra/docs/clang-tidy/checks/readability-container-data-pointer.rst index 4855e4b42b435..fc5d0a5ec7476 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/readability-data-pointer.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-container-data-pointer.rst @@ -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