njames93 updated this revision to Diff 282890.
njames93 added a comment.
rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81923/new/
https://reviews.llvm.org/D81923
Files:
clang-tools-extra/clang-tidy/modernize/CMakeLists.txt
clang-tools-e
njames93 updated this revision to Diff 272033.
njames93 added a comment.
- Updated Docs and set HandleReverseRanges default to false
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81923/new/
https://reviews.llvm.org/D81923
Files:
clang-tools-extr
njames93 updated this revision to Diff 271855.
njames93 added a comment.
Added `IncludeInserter` to include the `` header.
Added support for reverse iteration controlled by config.
Added support for begin/end calls via pointers.
Made the begin/end call matcher more robust if other checks want to u
njames93 updated this revision to Diff 271191.
njames93 marked 4 inline comments as done.
njames93 added a comment.
Tweaked documentation
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81923/new/
https://reviews.llvm.org/D81923
Files:
clang-tools
Eugene.Zelenko added inline comments.
Comment at: clang-tools-extra/docs/ReleaseNotes.rst:149
+ Converts calls to std library algorithms that take a pair of iterators to use
+ the equivalent function in std::ranges.
+
Please highlight std::ranges with double ba
njames93 marked an inline comment as done.
njames93 added inline comments.
Comment at: clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp:77
+ MatchCallTo((ID + "Begin").str(), namedDecl().bind(Range),
+ hasAnyName("::std::begi
JonasToth added a comment.
great to see such a check!
Comment at: clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp:77
+ MatchCallTo((ID + "Begin").str(), namedDecl().bind(Range),
+ hasAnyName("::std::begin", "::std::cbegin"
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` al