[PATCH] D69000: [clang-tidy] new check: modernize-deprecated-iterator-base

Nikita Kniazev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 15 16:50:09 PDT 2019


nick marked 2 inline comments as done.
nick added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/modernize/DeprecatedIteratorBaseCheck.cpp:218
+  // Requires C++.
+  if (!getLangOpts().CPlusPlus)
+    return;
----------------
Eugene.Zelenko wrote:
> Should it check for C++17 or newer?
I do not think so. It is a backward compatible change. The standard never required to inherit iterators from the `std::iterator`, and the standard library itself had not inheriting from `std::iterator` iterators.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69000





More information about the cfe-commits mailing list