[libcxx-commits] [PATCH] D121216: [libc++] Enable modernize-loop-convert
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Mar 8 07:28:25 PST 2022
philnik created this revision.
philnik added reviewers: ldionne, Quuxplusone, Mordante.
Herald added a project: All.
philnik requested review of this revision.
Herald added subscribers: libcxx-commits, aheejin.
Herald added a project: libc++.
Herald added a reviewer: libc++.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D121216
Files:
libcxx/.clang-tidy
libcxx/include/locale
Index: libcxx/include/locale
===================================================================
--- libcxx/include/locale
+++ libcxx/include/locale
@@ -3221,9 +3221,9 @@
int __fd)
{
__me = __mb;
- for (unsigned __p = 0; __p < 4; ++__p)
+ for (char __p : __pat.field)
{
- switch (__pat.field[__p])
+ switch (__p)
{
case money_base::none:
__mi = __me;
Index: libcxx/.clang-tidy
===================================================================
--- libcxx/.clang-tidy
+++ libcxx/.clang-tidy
@@ -10,6 +10,7 @@
-misc-unconventional-assign-operator,
+ modernize-loop-convert,
modernize-redundant-void-arg,
readability-duplicate-include,
@@ -33,7 +34,6 @@
# bugprone-branch-clone,
# bugprone-macro-parentheses,
# cppcoreguidelines-prefer-member-initializer,
-# modernize-loop-convert,
# modernize-use-bool-literals,
# modernize-use-default-member-init,
# modernize-use-equals-default,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121216.413801.patch
Type: text/x-patch
Size: 996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220308/efd0380d/attachment-0001.bin>
More information about the libcxx-commits
mailing list