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

2021-04-09 Thread Nikita Kniazev via Phabricator via cfe-commits
nick updated this revision to Diff 336533. nick edited the summary of this revision. nick added reviewers: njames93, steveire. nick added a comment. Rebased. Now using native `cxxBaseSpecifier` and `hasDirectBase`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://review

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

2020-05-27 Thread Nathan James via Phabricator via cfe-commits
njames93 added a comment. First of all I'd definitely wait until a patch to include ASTMatcher support for CXXBaseSpecifier lands before progressing with this. Secondly this issue should be warned on by clang when compiling with c++17 with some stdlib support, libc++ should mark iterator as dep

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

2019-10-15 Thread Nikita Kniazev via Phabricator via cfe-commits
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 fo

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

2019-10-15 Thread Nikita Kniazev via Phabricator via cfe-commits
nick updated this revision to Diff 225133. nick added a comment. Addressed comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D69000/new/ https://reviews.llvm.org/D69000 Files: clang-tools-extra/clang-tidy/modernize/CMakeLists.txt clang-to

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

2019-10-15 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: clang-tools-extra/clang-tidy/modernize/DeprecatedIteratorBaseCheck.cpp:93 +// TODO: Is there a way to get the location without lexer gymnastics? +auto Colon = findPreviousTokenKind(R.getBegin(), SM, LangOpts, tok::colon);

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

2019-10-15 Thread Nikita Kniazev via Phabricator via cfe-commits
nick created this revision. nick added a reviewer: alexfh. nick added a project: clang-tools-extra. Herald added subscribers: cfe-commits, kristof.beyls, xazax.hun, mgorny. Herald added a project: clang. Finds deprecated in C++17 inheritance from `std::iterator` and replaces it with type aliases.