Skip to content

Commit 5c83813

Browse files
Update testgenerator to generate #includes instead of hard-coded
declarations. Its output now matches the managed tests that were updated by the other script.
1 parent af31659 commit 5c83813

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

clang/test/3C/testgenerator.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,9 @@
5151
# header that should top every file
5252
header = """\
5353
#include <stddef.h>
54-
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size)
55-
: itype(_Array_ptr<T>) byte_count(nmemb * size);
56-
extern _Itype_for_any(T) void free(void *pointer
57-
: itype(_Array_ptr<T>) byte_count(0));
58-
extern _Itype_for_any(T) void *malloc(size_t size)
59-
: itype(_Array_ptr<T>) byte_count(size);
60-
extern _Itype_for_any(T) void *realloc(void *pointer
61-
: itype(_Array_ptr<T>) byte_count(1),
62-
size_t size)
63-
: itype(_Array_ptr<T>) byte_count(size);
64-
extern _Unchecked int printf(const char *restrict format
65-
: itype(restrict _Nt_array_ptr<const char>), ...);
66-
extern _Unchecked char *strcpy(char *restrict dest, const char *restrict src
67-
: itype(restrict _Nt_array_ptr<const char>));
54+
#include <stdlib.h>
55+
#include <stdio.h>
56+
#include <string.h>
6857
"""
6958

7059
# miscallaneous struct definitions that may or may not be used by the files

0 commit comments

Comments
 (0)