r360297 - Try to restore some clang test headers lost in r360291
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Wed May 8 15:30:46 PDT 2019
Author: rnk
Date: Wed May 8 15:30:46 2019
New Revision: 360297
URL: http://llvm.org/viewvc/llvm-project?rev=360297&view=rev
Log:
Try to restore some clang test headers lost in r360291
I'm not sure why 'git llvm revert' removed them.
Added:
cfe/trunk/test/Headers/Inputs/
cfe/trunk/test/Headers/Inputs/include/
cfe/trunk/test/Headers/Inputs/include/cmath
cfe/trunk/test/Headers/Inputs/include/complex.h
cfe/trunk/test/Headers/Inputs/include/limits
cfe/trunk/test/Headers/Inputs/include/math.h
cfe/trunk/test/Headers/Inputs/include/setjmp.h
cfe/trunk/test/Headers/Inputs/include/stdint.h
cfe/trunk/test/Headers/Inputs/include/stdlib.h
cfe/trunk/test/Headers/Inputs/usr/
cfe/trunk/test/Headers/Inputs/usr/include/
cfe/trunk/test/Headers/Inputs/usr/include/float.h
cfe/trunk/test/Headers/Inputs/usr/include/math.h
cfe/trunk/test/Headers/Inputs/usr/include/tgmath.h
Added: cfe/trunk/test/Headers/Inputs/include/cmath
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/include/cmath?rev=360297&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/include/cmath (added)
+++ cfe/trunk/test/Headers/Inputs/include/cmath Wed May 8 15:30:46 2019
@@ -0,0 +1,5 @@
+#pragma once
+
+double sqrt(double);
+double pow(double, double);
+double modf(double, double*);
Added: cfe/trunk/test/Headers/Inputs/include/complex.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/include/complex.h?rev=360297&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/include/complex.h (added)
+++ cfe/trunk/test/Headers/Inputs/include/complex.h Wed May 8 15:30:46 2019
@@ -0,0 +1,3 @@
+#pragma once
+
+#define complex _Complex
Added: cfe/trunk/test/Headers/Inputs/include/limits
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/include/limits?rev=360297&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/include/limits (added)
+++ cfe/trunk/test/Headers/Inputs/include/limits Wed May 8 15:30:46 2019
@@ -0,0 +1,10 @@
+#pragma once
+
+namespace std
+{
+struct __numeric_limits_base
+ {};
+template<typename _Tp>
+ struct numeric_limits : public __numeric_limits_base
+ {};
+}
Added: cfe/trunk/test/Headers/Inputs/include/math.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/include/math.h?rev=360297&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/include/math.h (added)
+++ cfe/trunk/test/Headers/Inputs/include/math.h Wed May 8 15:30:46 2019
@@ -0,0 +1,5 @@
+#pragma once
+
+double sqrt(double);
+double pow(double, double);
+double modf(double, double*);
Added: cfe/trunk/test/Headers/Inputs/include/setjmp.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/include/setjmp.h?rev=360297&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/include/setjmp.h (added)
+++ cfe/trunk/test/Headers/Inputs/include/setjmp.h Wed May 8 15:30:46 2019
@@ -0,0 +1,8 @@
+#ifndef SETJMP_H
+#define SETJMP_H
+
+typedef struct {
+ int x[42];
+} jmp_buf;
+
+#endif
Added: cfe/trunk/test/Headers/Inputs/include/stdint.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/include/stdint.h?rev=360297&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/include/stdint.h (added)
+++ cfe/trunk/test/Headers/Inputs/include/stdint.h Wed May 8 15:30:46 2019
@@ -0,0 +1,19 @@
+#ifndef STDINT_H
+#define STDINT_H
+
+#ifdef __INT32_TYPE__
+typedef unsigned __INT32_TYPE__ uint32_t;
+#endif
+
+#ifdef __INT64_TYPE__
+typedef unsigned __INT64_TYPE__ uint64_t;
+#endif
+
+#ifdef __INTPTR_TYPE__
+typedef __INTPTR_TYPE__ intptr_t;
+typedef unsigned __INTPTR_TYPE__ uintptr_t;
+#else
+#error Every target should have __INTPTR_TYPE__
+#endif
+
+#endif /* STDINT_H */
Added: cfe/trunk/test/Headers/Inputs/include/stdlib.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/include/stdlib.h?rev=360297&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/include/stdlib.h (added)
+++ cfe/trunk/test/Headers/Inputs/include/stdlib.h Wed May 8 15:30:46 2019
@@ -0,0 +1,2 @@
+#pragma once
+typedef __SIZE_TYPE__ size_t;
Added: cfe/trunk/test/Headers/Inputs/usr/include/float.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/usr/include/float.h?rev=360297&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/usr/include/float.h (added)
+++ cfe/trunk/test/Headers/Inputs/usr/include/float.h Wed May 8 15:30:46 2019
@@ -0,0 +1,6 @@
+#ifndef SYSFLOAT_H
+#define SYSFLOAT_H
+
+#define FLT_HAS_SUBNORM 1
+
+#endif /* SYSFLOAT_H */
Added: cfe/trunk/test/Headers/Inputs/usr/include/math.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/usr/include/math.h?rev=360297&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/usr/include/math.h (added)
+++ cfe/trunk/test/Headers/Inputs/usr/include/math.h Wed May 8 15:30:46 2019
@@ -0,0 +1 @@
+// math.h
Added: cfe/trunk/test/Headers/Inputs/usr/include/tgmath.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/usr/include/tgmath.h?rev=360297&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/usr/include/tgmath.h (added)
+++ cfe/trunk/test/Headers/Inputs/usr/include/tgmath.h Wed May 8 15:30:46 2019
@@ -0,0 +1,4 @@
+#ifndef SYS_TGMATH_H
+#define SYS_TGMATH_H
+
+#endif /* SYS_TGMATH_H */
More information about the cfe-commits
mailing list