[PATCH] D108893: clang-tidy: introduce readability-containter-data-pointer check

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 29 20:09:15 PDT 2021


Eugene.Zelenko added inline comments.


================
Comment at: clang-tools-extra/docs/ReleaseNotes.rst:87
+
+  Finds cases where code could use ``data`` rather than the address of an element.
+
----------------
It'll be good idea to mention containers and that `data` is method.


================
Comment at: clang-tools-extra/docs/clang-tidy/checks/readability-data-pointer.rst:6
+
+Finds instances of the data pointer being materialized by taking the address of
+the element at index 0 of a container. In particular, ``std::vector`` and
----------------
Please make first statement same as in Release Notes.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108893/new/

https://reviews.llvm.org/D108893



More information about the cfe-commits mailing list