diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2013-04-15 20:39:37 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2013-04-15 20:39:37 +0000 |
| commit | d02adbf03c994c5280c3641d16fce1169ad1ff4e (patch) | |
| tree | 6eed0482cabb992a622b4750797afa188b89a0de /clang/test/Analysis/Inputs/system-header-simulator.h | |
| parent | 6e221097ea02e790f6335f3cc60a3983bcfb6ce6 (diff) | |
| download | bcm5719-llvm-d02adbf03c994c5280c3641d16fce1169ad1ff4e.tar.gz bcm5719-llvm-d02adbf03c994c5280c3641d16fce1169ad1ff4e.zip | |
[analyzer] Tests: move system functions into system header simulator files.
Some checkers ascribe different behavior to functions declared in system
headers, so when working with standard library functions it's probably best
to always have them in a standard location.
Test change only (no functionality change), but necessary for the next commit.
llvm-svn: 179552
Diffstat (limited to 'clang/test/Analysis/Inputs/system-header-simulator.h')
| -rw-r--r-- | clang/test/Analysis/Inputs/system-header-simulator.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/Analysis/Inputs/system-header-simulator.h b/clang/test/Analysis/Inputs/system-header-simulator.h index 04688c782a0..e5efeb81f7d 100644 --- a/clang/test/Analysis/Inputs/system-header-simulator.h +++ b/clang/test/Analysis/Inputs/system-header-simulator.h @@ -14,8 +14,11 @@ extern FILE *__stdinp; extern FILE *__stdoutp; extern FILE *__stderrp; - +int scanf(const char *restrict format, ...); int fscanf(FILE *restrict, const char *restrict, ...); +int printf(const char *restrict format, ...); +int fprintf(FILE *restrict, const char *restrict, ...); +int getchar(void); // Note, on some platforms errno macro gets replaced with a function call. extern int errno; @@ -37,6 +40,8 @@ typedef __darwin_off_t fpos_t; void setbuf(FILE * restrict, char * restrict); int setvbuf(FILE * restrict, char * restrict, int, size_t); +FILE *fopen(const char * restrict, const char * restrict); +int fclose(FILE *); FILE *funopen(const void *, int (*)(void *, char *, int), int (*)(void *, const char *, int), |

