[PATCH] D53771: [clang-tidy] Avoid C arrays check

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 26 12:09:52 PDT 2018


Eugene.Zelenko added a comment.

May be this check belongs to modernize?



================
Comment at: docs/clang-tidy/checks/misc-avoid-c-arrays.rst:6
+
+Find C-style array delarations and recommend to use ``std::array<>``.
+All types of C arrays are diagnosed.
----------------
Finds.


================
Comment at: docs/clang-tidy/checks/misc-avoid-c-arrays.rst:9
+
+Hoever, no fix-its are provided. Such transform would need to be able to
+observe *all* the uses of said declaration in order to decide whether it is
----------------
However


================
Comment at: docs/clang-tidy/checks/misc-avoid-c-arrays.rst:30
+
+  ...
+
----------------
Please remove ellipsis. and newline.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D53771





More information about the cfe-commits mailing list