[PATCH] D77572: [clang-tidy] add new check readability-use-anyofallof
Matthias Gehre via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 6 10:51:34 PDT 2020
mgehre created this revision.
mgehre added reviewers: aaron.ballman, alexfh, hokein.
Herald added subscribers: xazax.hun, mgorny.
Herald added a project: clang.
Finds range-based for loops that can be replaced by a call to ``std::any_of`` or
``std::all_of``. In C++ 20 mode, suggests ``std::ranges::any_of`` or
``std::ranges::all_of``.
For now, no fixits are produced.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77572
Files:
clang-tools-extra/clang-tidy/readability/CMakeLists.txt
clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
clang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.cpp
clang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/readability-use-anyofallof.rst
clang-tools-extra/test/clang-tidy/checkers/readability-use-anyofallof-cpp20.cpp
clang-tools-extra/test/clang-tidy/checkers/readability-use-anyofallof.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77572.255402.patch
Type: text/x-patch
Size: 14537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200406/ad091d8f/attachment.bin>
More information about the cfe-commits
mailing list