[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from <functional> header which are deprecated and removed in C++17

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 31 11:09:51 PST 2018


Eugene.Zelenko added inline comments.


================
Comment at: docs/ReleaseNotes.rst:60
 
+- New `modernize-avoid-functional
+  <http://clang.llvm.org/extra/clang-tidy/checks/modernize-avoid-functional.html>`_ check
----------------
Please move it to new checks section in alphabetical order.


================
Comment at: docs/ReleaseNotes.rst:63
+
+  Warns if types, classes and functions from <functional> header which are
+  deprecated in C++11 and removed in C++17 are used.
----------------
Please enclose <functional> in ``.


================
Comment at: docs/clang-tidy/checks/modernize-avoid-functional.rst:6
+
+In C++17, several classes, types, and functions from <functional> header are no longer available.
+In particular, this check warns if one of the following deprecated objects is
----------------
Please make this sentence same as in Release Notes.


================
Comment at: docs/clang-tidy/checks/modernize-avoid-functional.rst:10
+
+-  std::unary_function
+-  std::binary_function
----------------
Please enclose names in ``.


https://reviews.llvm.org/D42730





More information about the cfe-commits mailing list