From 2f04f1843ca0ffca13b8b0d4dadd1f50dffb38b8 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 2 Feb 2012 18:42:48 +0000 Subject: Back out my heinous hack that tricked the module generation mechanism into using non-absolute system includes ()... ... and introduce another hack that is simultaneously more heineous and more effective. We whitelist Clang-supplied headers that augment or override system headers (such as float.h, stdarg.h, and tgmath.h). For these headers, Clang does not provide a module mapping. Instead, a system-supplied module map can refer to these headers in a system module, and Clang will look both in its own include directory and wherever the system-supplied module map suggests, then adds either or both headers. The end result is that Clang-supplied headers get merged into the system-supplied module for the C standard library. As a drive-by, fix up a few dependencies in the _Builtin_instrinsics module. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149611 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Modules/Inputs/System/usr/include/stdio.h | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/Modules/Inputs/System/usr/include/stdio.h (limited to 'test/Modules/Inputs/System/usr/include/stdio.h') diff --git a/test/Modules/Inputs/System/usr/include/stdio.h b/test/Modules/Inputs/System/usr/include/stdio.h new file mode 100644 index 0000000000..9a7b106303 --- /dev/null +++ b/test/Modules/Inputs/System/usr/include/stdio.h @@ -0,0 +1,3 @@ +typedef struct { int id; } FILE; +int fprintf(FILE*restrict, const char* restrict format, ...); + -- cgit v1.2.3-70-g09d2