[PATCH] D81923: [clang-tidy] Add modernize-use-ranges check.

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 16 04:24:08 PDT 2020


njames93 created this revision.
njames93 added reviewers: aaron.ballman, alexfh, gribozavr2.
Herald added subscribers: cfe-commits, mgrang, xazax.hun, mgorny.
Herald added a project: clang.

Flags and replaces calls to standard library algorithms that could be converted to use the `std::ranges` algorithms introduced in c++20.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81923

Files:
  clang-tools-extra/clang-tidy/modernize/CMakeLists.txt
  clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
  clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp
  clang-tools-extra/clang-tidy/modernize/UseRangesCheck.h
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/list.rst
  clang-tools-extra/docs/clang-tidy/checks/modernize-use-ranges.rst
  clang-tools-extra/test/clang-tidy/checkers/modernize-use-ranges.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81923.271035.patch
Type: text/x-patch
Size: 19441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200616/d8874117/attachment-0001.bin>


More information about the cfe-commits mailing list