Skip to content

Commit 7b571fb

Browse files
Manual cleanups.
- Remove `#include <stddef.h>` from files that no longer directly reference `size_t`. - Order of `#include`s, etc.
1 parent e4028e8 commit 7b571fb

40 files changed

+6
-55
lines changed

clang/test/3C/3d-allocation.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#include <stdio.h>
99
#include <stdlib.h>
1010

11-
#include <stdlib.h>
12-
1311
int ***malloc3d(int y, int x, int z) {
1412
//CHECK_NOALL: int ***malloc3d(int y, int x, int z) : itype(_Ptr<int **>) {
1513
//CHECK_ALL: _Array_ptr<_Array_ptr<_Array_ptr<int>>> malloc3d(int y, int x, int z) : count(y) {

clang/test/3C/add_bounds.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ void biz(){
3535
//CHECK_ALL: _Array_ptr<int> b : count(10) = a;
3636
}
3737

38-
#include<stddef.h>
3938
#include <stdlib.h>
4039
_Array_ptr<int> faz(void) {
4140
//CHECK_ALL: _Array_ptr<int> faz(void) : count(100) {

clang/test/3C/alloc_type_param.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// RUN: 3c -base-dir=%S -output-dir=%t.checked -alltypes %s --
66
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/alloc_type_param.c -- | diff %t.checked/alloc_type_param.c -
77

8-
#include <stddef.h>
98
#include <stdlib.h>
109

1110
/* Check basic behavior with the three alloc functions */

clang/test/3C/allocator.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// RUN: 3c -base-dir=%t.checked %t.checked/allocator.c -- | diff %t.checked/allocator.c -
1010
// expected-no-diagnostics
1111
//
12-
#include <stddef.h>
1312
#include <stdlib.h>
1413

1514
void dosomething(void) {

clang/test/3C/arrboundsbasic.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
Basic array bounds tests (without any data-flow analysis).
77
*/
88

9-
#include <stddef.h>
10-
119
#include <stdlib.h>
1210

1311
struct bar {

clang/test/3C/arrboundsbasicinfer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
Basic array bounds tests (without any data-flow analysis).
77
*/
88

9-
#include <stddef.h>
10-
119
#include <stdlib.h>
1210

1311
struct bar {

clang/test/3C/arrboundsbyte.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
Array bounds (byte_bound) tests with data-flow analysis.
77
*/
88

9-
#include <stddef.h>
109
#include <stdlib.h>
1110
// This test needs a custom version of memcpy where src and dest are `int *`.
1211
int *memcpy_int(int *restrict dest

clang/test/3C/arrboundsheuristics.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
int *glob;
1212
int lenplusone;
13-
#include <stddef.h>
1413
#include <stdlib.h>
1514
//CHECK_ALL: _Array_ptr<int> glob = ((void *)0);
1615
//CHECK_NOALL: int *glob;

clang/test/3C/arrboundsinfer2.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
Basic array bounds tests (without any data-flow analysis).
77
*/
88

9-
#include <stddef.h>
10-
119
#include <stdlib.h>
10+
1211
extern void ext_func(_Array_ptr<int> arr : count(len), unsigned len);
1312

1413
struct bar {

clang/test/3C/arrctxsenbounds.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
/*
66
Context-sensitive array-bounds inference.
77
*/
8-
#include <stddef.h>
98
#include <stdlib.h>
109
struct foo {
1110
int *x;

0 commit comments

Comments
 (0)