You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[NFC][clang-tidy] Remove {{^}} clauses in some tests (1/N) (#134737)
`check_clang_tidy` now matches full lines only, so `{{^}}` clauses are
no longer necessary.
I am splitting those changes over multiple PRs to make review easier.
Numbering them but the actual order doesn't matter.
// CHECK-MESSAGES: [[@LINE-1]]:16: warning: the loop variable's type is not a reference type; this creates a copy in each iteration; consider making this a reference [performance-for-range-copy]
82
-
// CHECK-FIXES: {{^}} for (const S& S1 : View<Iterator<S>>()) {}
82
+
// CHECK-FIXES: for (const S& S1 : View<Iterator<S>>()) {}
83
83
84
84
// Don't warn on dependent types.
85
85
for (const T t1 : View<Iterator<T>>()) {
@@ -90,15 +90,15 @@ template <typename T>
90
90
voidinstantiated() {
91
91
for (const S S2 : View<Iterator<S>>()) {}
92
92
// CHECK-MESSAGES: [[@LINE-1]]:16: warning: the loop variable's type is {{.*}}
93
-
// CHECK-FIXES: {{^}} for (const S& S2 : View<Iterator<S>>()) {}
93
+
// CHECK-FIXES: for (const S& S2 : View<Iterator<S>>()) {}
94
94
95
95
for (constauto [X, Y] : View<Iterator<Point>>()) {}
96
96
// CHECK-MESSAGES: [[@LINE-1]]:19: warning: the loop variable's type is
for (const S SS : createView(*ValueReturningIterator<S>())) {
314
-
// CHECK-MESSAGES: [[@LINE-1]]:16: warning: the loop variable's type is not
315
-
// a reference type; this creates a copy in each iteration; consider making
316
-
// this a reference [performance-for-range-copy] CHECK-FIXES: for (const S&
317
-
// SS : createView(*ValueReturningIterator<S>())) {
314
+
// CHECK-MESSAGES: [[@LINE-1]]:16: warning: the loop variable's type is not a reference type; this creates a copy in each iteration; consider making this a reference [performance-for-range-copy]
315
+
// CHECK-FIXES: for (const S& SS : createView(*ValueReturningIterator<S>())) {
0 commit comments