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

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 16 04:58:17 PDT 2020


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"),
+                              hasAnyName("begin", "cbegin"))),
----------------
i would at `rbegin()` and the likes, too.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81923





More information about the cfe-commits mailing list