Skip to content

Commit afb68c4

Browse files
committed
Use built-in type to avoid include
1 parent 47b6fc1 commit afb68c4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang-tools-extra/test/clang-tidy/checkers/modernize/loop-convert-basic.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// RUN: %check_clang_tidy %s modernize-loop-convert %t -- -- -I %S/Inputs/loop-convert -isystem %clang_tidy_headers
2-
3-
#include <cstddef>
1+
// RUN: %check_clang_tidy %s modernize-loop-convert %t -- -- -I %S/Inputs/loop-convert
42

53
#include "structures.h"
64

@@ -91,7 +89,7 @@ void f() {
9189
// CHECK-FIXES-NEXT: Sum += I + 2;
9290

9391
int Matrix[N][12];
94-
size_t size = 0;
92+
unsigned size = 0;
9593
for (int I = 0; I < N; ++I) {
9694
size += sizeof(Matrix[I]);
9795
size += sizeof Matrix[I];

0 commit comments

Comments
 (0)