@cpp-linter/clang-tidy-win32-x64 12.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/LICENSE.TXT +279 -0
  2. package/README.md +7 -0
  3. package/bin/clang-tidy.exe +4 -0
  4. package/lib/clang/12.0.1/include/__clang_cuda_builtin_vars.h +121 -0
  5. package/lib/clang/12.0.1/include/__clang_cuda_cmath.h +512 -0
  6. package/lib/clang/12.0.1/include/__clang_cuda_complex_builtins.h +285 -0
  7. package/lib/clang/12.0.1/include/__clang_cuda_device_functions.h +1486 -0
  8. package/lib/clang/12.0.1/include/__clang_cuda_intrinsics.h +486 -0
  9. package/lib/clang/12.0.1/include/__clang_cuda_libdevice_declares.h +462 -0
  10. package/lib/clang/12.0.1/include/__clang_cuda_math.h +348 -0
  11. package/lib/clang/12.0.1/include/__clang_cuda_math_forward_declares.h +284 -0
  12. package/lib/clang/12.0.1/include/__clang_cuda_runtime_wrapper.h +443 -0
  13. package/lib/clang/12.0.1/include/__clang_hip_cmath.h +664 -0
  14. package/lib/clang/12.0.1/include/__clang_hip_libdevice_declares.h +334 -0
  15. package/lib/clang/12.0.1/include/__clang_hip_math.h +1275 -0
  16. package/lib/clang/12.0.1/include/__clang_hip_runtime_wrapper.h +69 -0
  17. package/lib/clang/12.0.1/include/__stddef_max_align_t.h +27 -0
  18. package/lib/clang/12.0.1/include/__wmmintrin_aes.h +140 -0
  19. package/lib/clang/12.0.1/include/__wmmintrin_pclmul.h +48 -0
  20. package/lib/clang/12.0.1/include/adxintrin.h +72 -0
  21. package/lib/clang/12.0.1/include/altivec.h +18239 -0
  22. package/lib/clang/12.0.1/include/ammintrin.h +179 -0
  23. package/lib/clang/12.0.1/include/amxintrin.h +278 -0
  24. package/lib/clang/12.0.1/include/arm64intr.h +35 -0
  25. package/lib/clang/12.0.1/include/arm_acle.h +716 -0
  26. package/lib/clang/12.0.1/include/arm_bf16.h +20 -0
  27. package/lib/clang/12.0.1/include/arm_cde.h +410 -0
  28. package/lib/clang/12.0.1/include/arm_cmse.h +217 -0
  29. package/lib/clang/12.0.1/include/arm_fp16.h +596 -0
  30. package/lib/clang/12.0.1/include/arm_mve.h +19187 -0
  31. package/lib/clang/12.0.1/include/arm_neon.h +68982 -0
  32. package/lib/clang/12.0.1/include/arm_sve.h +18148 -0
  33. package/lib/clang/12.0.1/include/armintr.h +31 -0
  34. package/lib/clang/12.0.1/include/avx2intrin.h +1148 -0
  35. package/lib/clang/12.0.1/include/avx512bf16intrin.h +279 -0
  36. package/lib/clang/12.0.1/include/avx512bitalgintrin.h +83 -0
  37. package/lib/clang/12.0.1/include/avx512bwintrin.h +2024 -0
  38. package/lib/clang/12.0.1/include/avx512cdintrin.h +123 -0
  39. package/lib/clang/12.0.1/include/avx512dqintrin.h +1377 -0
  40. package/lib/clang/12.0.1/include/avx512erintrin.h +271 -0
  41. package/lib/clang/12.0.1/include/avx512fintrin.h +9618 -0
  42. package/lib/clang/12.0.1/include/avx512ifmaintrin.h +68 -0
  43. package/lib/clang/12.0.1/include/avx512ifmavlintrin.h +119 -0
  44. package/lib/clang/12.0.1/include/avx512pfintrin.h +97 -0
  45. package/lib/clang/12.0.1/include/avx512vbmi2intrin.h +357 -0
  46. package/lib/clang/12.0.1/include/avx512vbmiintrin.h +105 -0
  47. package/lib/clang/12.0.1/include/avx512vbmivlintrin.h +188 -0
  48. package/lib/clang/12.0.1/include/avx512vlbf16intrin.h +474 -0
  49. package/lib/clang/12.0.1/include/avx512vlbitalgintrin.h +145 -0
  50. package/lib/clang/12.0.1/include/avx512vlbwintrin.h +2809 -0
  51. package/lib/clang/12.0.1/include/avx512vlcdintrin.h +225 -0
  52. package/lib/clang/12.0.1/include/avx512vldqintrin.h +1167 -0
  53. package/lib/clang/12.0.1/include/avx512vlintrin.h +8445 -0
  54. package/lib/clang/12.0.1/include/avx512vlvbmi2intrin.h +689 -0
  55. package/lib/clang/12.0.1/include/avx512vlvnniintrin.h +304 -0
  56. package/lib/clang/12.0.1/include/avx512vlvp2intersectintrin.h +121 -0
  57. package/lib/clang/12.0.1/include/avx512vnniintrin.h +115 -0
  58. package/lib/clang/12.0.1/include/avx512vp2intersectintrin.h +77 -0
  59. package/lib/clang/12.0.1/include/avx512vpopcntdqintrin.h +54 -0
  60. package/lib/clang/12.0.1/include/avx512vpopcntdqvlintrin.h +91 -0
  61. package/lib/clang/12.0.1/include/avxintrin.h +5053 -0
  62. package/lib/clang/12.0.1/include/avxvnniintrin.h +225 -0
  63. package/lib/clang/12.0.1/include/bmi2intrin.h +81 -0
  64. package/lib/clang/12.0.1/include/bmiintrin.h +427 -0
  65. package/lib/clang/12.0.1/include/cet.h +66 -0
  66. package/lib/clang/12.0.1/include/cetintrin.h +99 -0
  67. package/lib/clang/12.0.1/include/cldemoteintrin.h +36 -0
  68. package/lib/clang/12.0.1/include/clflushoptintrin.h +27 -0
  69. package/lib/clang/12.0.1/include/clwbintrin.h +38 -0
  70. package/lib/clang/12.0.1/include/clzerointrin.h +36 -0
  71. package/lib/clang/12.0.1/include/cpuid.h +319 -0
  72. package/lib/clang/12.0.1/include/cuda_wrappers/algorithm +116 -0
  73. package/lib/clang/12.0.1/include/cuda_wrappers/complex +82 -0
  74. package/lib/clang/12.0.1/include/cuda_wrappers/new +106 -0
  75. package/lib/clang/12.0.1/include/emmintrin.h +4981 -0
  76. package/lib/clang/12.0.1/include/enqcmdintrin.h +63 -0
  77. package/lib/clang/12.0.1/include/f16cintrin.h +162 -0
  78. package/lib/clang/12.0.1/include/float.h +152 -0
  79. package/lib/clang/12.0.1/include/fma4intrin.h +218 -0
  80. package/lib/clang/12.0.1/include/fmaintrin.h +216 -0
  81. package/lib/clang/12.0.1/include/fxsrintrin.h +91 -0
  82. package/lib/clang/12.0.1/include/gfniintrin.h +193 -0
  83. package/lib/clang/12.0.1/include/hresetintrin.h +49 -0
  84. package/lib/clang/12.0.1/include/htmintrin.h +212 -0
  85. package/lib/clang/12.0.1/include/htmxlintrin.h +345 -0
  86. package/lib/clang/12.0.1/include/ia32intrin.h +441 -0
  87. package/lib/clang/12.0.1/include/immintrin.h +600 -0
  88. package/lib/clang/12.0.1/include/intrin.h +585 -0
  89. package/lib/clang/12.0.1/include/inttypes.h +97 -0
  90. package/lib/clang/12.0.1/include/invpcidintrin.h +23 -0
  91. package/lib/clang/12.0.1/include/iso646.h +27 -0
  92. package/lib/clang/12.0.1/include/keylockerintrin.h +506 -0
  93. package/lib/clang/12.0.1/include/limits.h +102 -0
  94. package/lib/clang/12.0.1/include/lwpintrin.h +136 -0
  95. package/lib/clang/12.0.1/include/lzcntintrin.h +104 -0
  96. package/lib/clang/12.0.1/include/mm3dnow.h +157 -0
  97. package/lib/clang/12.0.1/include/mm_malloc.h +67 -0
  98. package/lib/clang/12.0.1/include/mmintrin.h +1558 -0
  99. package/lib/clang/12.0.1/include/module.modulemap +164 -0
  100. package/lib/clang/12.0.1/include/movdirintrin.h +49 -0
  101. package/lib/clang/12.0.1/include/msa.h +573 -0
  102. package/lib/clang/12.0.1/include/mwaitxintrin.h +33 -0
  103. package/lib/clang/12.0.1/include/nmmintrin.h +16 -0
  104. package/lib/clang/12.0.1/include/opencl-c-base.h +589 -0
  105. package/lib/clang/12.0.1/include/opencl-c.h +17162 -0
  106. package/lib/clang/12.0.1/include/openmp_wrappers/__clang_openmp_device_functions.h +42 -0
  107. package/lib/clang/12.0.1/include/openmp_wrappers/cmath +78 -0
  108. package/lib/clang/12.0.1/include/openmp_wrappers/complex +52 -0
  109. package/lib/clang/12.0.1/include/openmp_wrappers/complex.h +27 -0
  110. package/lib/clang/12.0.1/include/openmp_wrappers/complex_cmath.h +388 -0
  111. package/lib/clang/12.0.1/include/openmp_wrappers/math.h +51 -0
  112. package/lib/clang/12.0.1/include/openmp_wrappers/new +70 -0
  113. package/lib/clang/12.0.1/include/pconfigintrin.h +40 -0
  114. package/lib/clang/12.0.1/include/pkuintrin.h +34 -0
  115. package/lib/clang/12.0.1/include/pmmintrin.h +290 -0
  116. package/lib/clang/12.0.1/include/popcntintrin.h +59 -0
  117. package/lib/clang/12.0.1/include/ppc_wrappers/emmintrin.h +2324 -0
  118. package/lib/clang/12.0.1/include/ppc_wrappers/mm_malloc.h +50 -0
  119. package/lib/clang/12.0.1/include/ppc_wrappers/mmintrin.h +1450 -0
  120. package/lib/clang/12.0.1/include/ppc_wrappers/pmmintrin.h +150 -0
  121. package/lib/clang/12.0.1/include/ppc_wrappers/smmintrin.h +109 -0
  122. package/lib/clang/12.0.1/include/ppc_wrappers/tmmintrin.h +495 -0
  123. package/lib/clang/12.0.1/include/ppc_wrappers/xmmintrin.h +1843 -0
  124. package/lib/clang/12.0.1/include/prfchwintrin.h +55 -0
  125. package/lib/clang/12.0.1/include/ptwriteintrin.h +37 -0
  126. package/lib/clang/12.0.1/include/rdseedintrin.h +42 -0
  127. package/lib/clang/12.0.1/include/rtmintrin.h +45 -0
  128. package/lib/clang/12.0.1/include/s390intrin.h +25 -0
  129. package/lib/clang/12.0.1/include/serializeintrin.h +30 -0
  130. package/lib/clang/12.0.1/include/sgxintrin.h +60 -0
  131. package/lib/clang/12.0.1/include/shaintrin.h +61 -0
  132. package/lib/clang/12.0.1/include/smmintrin.h +2430 -0
  133. package/lib/clang/12.0.1/include/stdalign.h +21 -0
  134. package/lib/clang/12.0.1/include/stdarg.h +35 -0
  135. package/lib/clang/12.0.1/include/stdatomic.h +176 -0
  136. package/lib/clang/12.0.1/include/stdbool.h +31 -0
  137. package/lib/clang/12.0.1/include/stddef.h +121 -0
  138. package/lib/clang/12.0.1/include/stdint.h +693 -0
  139. package/lib/clang/12.0.1/include/stdnoreturn.h +16 -0
  140. package/lib/clang/12.0.1/include/tbmintrin.h +140 -0
  141. package/lib/clang/12.0.1/include/tgmath.h +1368 -0
  142. package/lib/clang/12.0.1/include/tmmintrin.h +771 -0
  143. package/lib/clang/12.0.1/include/tsxldtrkintrin.h +56 -0
  144. package/lib/clang/12.0.1/include/uintrintrin.h +150 -0
  145. package/lib/clang/12.0.1/include/unwind.h +327 -0
  146. package/lib/clang/12.0.1/include/vadefs.h +51 -0
  147. package/lib/clang/12.0.1/include/vaesintrin.h +84 -0
  148. package/lib/clang/12.0.1/include/varargs.h +12 -0
  149. package/lib/clang/12.0.1/include/vecintrin.h +10998 -0
  150. package/lib/clang/12.0.1/include/vpclmulqdqintrin.h +28 -0
  151. package/lib/clang/12.0.1/include/waitpkgintrin.h +42 -0
  152. package/lib/clang/12.0.1/include/wasm_simd128.h +1167 -0
  153. package/lib/clang/12.0.1/include/wbnoinvdintrin.h +24 -0
  154. package/lib/clang/12.0.1/include/wmmintrin.h +19 -0
  155. package/lib/clang/12.0.1/include/x86gprintrin.h +23 -0
  156. package/lib/clang/12.0.1/include/x86intrin.h +63 -0
  157. package/lib/clang/12.0.1/include/xmmintrin.h +3008 -0
  158. package/lib/clang/12.0.1/include/xopintrin.h +770 -0
  159. package/lib/clang/12.0.1/include/xsavecintrin.h +34 -0
  160. package/lib/clang/12.0.1/include/xsaveintrin.h +63 -0
  161. package/lib/clang/12.0.1/include/xsaveoptintrin.h +34 -0
  162. package/lib/clang/12.0.1/include/xsavesintrin.h +44 -0
  163. package/lib/clang/12.0.1/include/xtestintrin.h +27 -0
  164. package/package.json +32 -0
@@ -0,0 +1,21 @@
1
+ /*===---- stdalign.h - Standard header for alignment ------------------------===
2
+ *
3
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ * See https://llvm.org/LICENSE.txt for license information.
5
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ *
7
+ *===-----------------------------------------------------------------------===
8
+ */
9
+
10
+ #ifndef __STDALIGN_H
11
+ #define __STDALIGN_H
12
+
13
+ #ifndef __cplusplus
14
+ #define alignas _Alignas
15
+ #define alignof _Alignof
16
+ #endif
17
+
18
+ #define __alignas_is_defined 1
19
+ #define __alignof_is_defined 1
20
+
21
+ #endif /* __STDALIGN_H */
@@ -0,0 +1,35 @@
1
+ /*===---- stdarg.h - Variable argument handling ----------------------------===
2
+ *
3
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ * See https://llvm.org/LICENSE.txt for license information.
5
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ *
7
+ *===-----------------------------------------------------------------------===
8
+ */
9
+
10
+ #ifndef __STDARG_H
11
+ #define __STDARG_H
12
+
13
+ #ifndef _VA_LIST
14
+ typedef __builtin_va_list va_list;
15
+ #define _VA_LIST
16
+ #endif
17
+ #define va_start(ap, param) __builtin_va_start(ap, param)
18
+ #define va_end(ap) __builtin_va_end(ap)
19
+ #define va_arg(ap, type) __builtin_va_arg(ap, type)
20
+
21
+ /* GCC always defines __va_copy, but does not define va_copy unless in c99 mode
22
+ * or -ansi is not specified, since it was not part of C90.
23
+ */
24
+ #define __va_copy(d,s) __builtin_va_copy(d,s)
25
+
26
+ #if __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L || !defined(__STRICT_ANSI__)
27
+ #define va_copy(dest, src) __builtin_va_copy(dest, src)
28
+ #endif
29
+
30
+ #ifndef __GNUC_VA_LIST
31
+ #define __GNUC_VA_LIST 1
32
+ typedef __builtin_va_list __gnuc_va_list;
33
+ #endif
34
+
35
+ #endif /* __STDARG_H */
@@ -0,0 +1,176 @@
1
+ /*===---- stdatomic.h - Standard header for atomic types and operations -----===
2
+ *
3
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ * See https://llvm.org/LICENSE.txt for license information.
5
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ *
7
+ *===-----------------------------------------------------------------------===
8
+ */
9
+
10
+ #ifndef __CLANG_STDATOMIC_H
11
+ #define __CLANG_STDATOMIC_H
12
+
13
+ /* If we're hosted, fall back to the system's stdatomic.h. FreeBSD, for
14
+ * example, already has a Clang-compatible stdatomic.h header.
15
+ */
16
+ #if __STDC_HOSTED__ && __has_include_next(<stdatomic.h>)
17
+ # include_next <stdatomic.h>
18
+ #else
19
+
20
+ #include <stddef.h>
21
+ #include <stdint.h>
22
+
23
+ #ifdef __cplusplus
24
+ extern "C" {
25
+ #endif
26
+
27
+ /* 7.17.1 Introduction */
28
+
29
+ #define ATOMIC_BOOL_LOCK_FREE __CLANG_ATOMIC_BOOL_LOCK_FREE
30
+ #define ATOMIC_CHAR_LOCK_FREE __CLANG_ATOMIC_CHAR_LOCK_FREE
31
+ #define ATOMIC_CHAR16_T_LOCK_FREE __CLANG_ATOMIC_CHAR16_T_LOCK_FREE
32
+ #define ATOMIC_CHAR32_T_LOCK_FREE __CLANG_ATOMIC_CHAR32_T_LOCK_FREE
33
+ #define ATOMIC_WCHAR_T_LOCK_FREE __CLANG_ATOMIC_WCHAR_T_LOCK_FREE
34
+ #define ATOMIC_SHORT_LOCK_FREE __CLANG_ATOMIC_SHORT_LOCK_FREE
35
+ #define ATOMIC_INT_LOCK_FREE __CLANG_ATOMIC_INT_LOCK_FREE
36
+ #define ATOMIC_LONG_LOCK_FREE __CLANG_ATOMIC_LONG_LOCK_FREE
37
+ #define ATOMIC_LLONG_LOCK_FREE __CLANG_ATOMIC_LLONG_LOCK_FREE
38
+ #define ATOMIC_POINTER_LOCK_FREE __CLANG_ATOMIC_POINTER_LOCK_FREE
39
+
40
+ /* 7.17.2 Initialization */
41
+
42
+ #define ATOMIC_VAR_INIT(value) (value)
43
+ #define atomic_init __c11_atomic_init
44
+
45
+ /* 7.17.3 Order and consistency */
46
+
47
+ typedef enum memory_order {
48
+ memory_order_relaxed = __ATOMIC_RELAXED,
49
+ memory_order_consume = __ATOMIC_CONSUME,
50
+ memory_order_acquire = __ATOMIC_ACQUIRE,
51
+ memory_order_release = __ATOMIC_RELEASE,
52
+ memory_order_acq_rel = __ATOMIC_ACQ_REL,
53
+ memory_order_seq_cst = __ATOMIC_SEQ_CST
54
+ } memory_order;
55
+
56
+ #define kill_dependency(y) (y)
57
+
58
+ /* 7.17.4 Fences */
59
+
60
+ /* These should be provided by the libc implementation. */
61
+ void atomic_thread_fence(memory_order);
62
+ void atomic_signal_fence(memory_order);
63
+
64
+ #define atomic_thread_fence(order) __c11_atomic_thread_fence(order)
65
+ #define atomic_signal_fence(order) __c11_atomic_signal_fence(order)
66
+
67
+ /* 7.17.5 Lock-free property */
68
+
69
+ #define atomic_is_lock_free(obj) __c11_atomic_is_lock_free(sizeof(*(obj)))
70
+
71
+ /* 7.17.6 Atomic integer types */
72
+
73
+ #ifdef __cplusplus
74
+ typedef _Atomic(bool) atomic_bool;
75
+ #else
76
+ typedef _Atomic(_Bool) atomic_bool;
77
+ #endif
78
+ typedef _Atomic(char) atomic_char;
79
+ typedef _Atomic(signed char) atomic_schar;
80
+ typedef _Atomic(unsigned char) atomic_uchar;
81
+ typedef _Atomic(short) atomic_short;
82
+ typedef _Atomic(unsigned short) atomic_ushort;
83
+ typedef _Atomic(int) atomic_int;
84
+ typedef _Atomic(unsigned int) atomic_uint;
85
+ typedef _Atomic(long) atomic_long;
86
+ typedef _Atomic(unsigned long) atomic_ulong;
87
+ typedef _Atomic(long long) atomic_llong;
88
+ typedef _Atomic(unsigned long long) atomic_ullong;
89
+ typedef _Atomic(uint_least16_t) atomic_char16_t;
90
+ typedef _Atomic(uint_least32_t) atomic_char32_t;
91
+ typedef _Atomic(wchar_t) atomic_wchar_t;
92
+ typedef _Atomic(int_least8_t) atomic_int_least8_t;
93
+ typedef _Atomic(uint_least8_t) atomic_uint_least8_t;
94
+ typedef _Atomic(int_least16_t) atomic_int_least16_t;
95
+ typedef _Atomic(uint_least16_t) atomic_uint_least16_t;
96
+ typedef _Atomic(int_least32_t) atomic_int_least32_t;
97
+ typedef _Atomic(uint_least32_t) atomic_uint_least32_t;
98
+ typedef _Atomic(int_least64_t) atomic_int_least64_t;
99
+ typedef _Atomic(uint_least64_t) atomic_uint_least64_t;
100
+ typedef _Atomic(int_fast8_t) atomic_int_fast8_t;
101
+ typedef _Atomic(uint_fast8_t) atomic_uint_fast8_t;
102
+ typedef _Atomic(int_fast16_t) atomic_int_fast16_t;
103
+ typedef _Atomic(uint_fast16_t) atomic_uint_fast16_t;
104
+ typedef _Atomic(int_fast32_t) atomic_int_fast32_t;
105
+ typedef _Atomic(uint_fast32_t) atomic_uint_fast32_t;
106
+ typedef _Atomic(int_fast64_t) atomic_int_fast64_t;
107
+ typedef _Atomic(uint_fast64_t) atomic_uint_fast64_t;
108
+ typedef _Atomic(intptr_t) atomic_intptr_t;
109
+ typedef _Atomic(uintptr_t) atomic_uintptr_t;
110
+ typedef _Atomic(size_t) atomic_size_t;
111
+ typedef _Atomic(ptrdiff_t) atomic_ptrdiff_t;
112
+ typedef _Atomic(intmax_t) atomic_intmax_t;
113
+ typedef _Atomic(uintmax_t) atomic_uintmax_t;
114
+
115
+ /* 7.17.7 Operations on atomic types */
116
+
117
+ #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
118
+ #define atomic_store_explicit __c11_atomic_store
119
+
120
+ #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
121
+ #define atomic_load_explicit __c11_atomic_load
122
+
123
+ #define atomic_exchange(object, desired) __c11_atomic_exchange(object, desired, __ATOMIC_SEQ_CST)
124
+ #define atomic_exchange_explicit __c11_atomic_exchange
125
+
126
+ #define atomic_compare_exchange_strong(object, expected, desired) __c11_atomic_compare_exchange_strong(object, expected, desired, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
127
+ #define atomic_compare_exchange_strong_explicit __c11_atomic_compare_exchange_strong
128
+
129
+ #define atomic_compare_exchange_weak(object, expected, desired) __c11_atomic_compare_exchange_weak(object, expected, desired, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
130
+ #define atomic_compare_exchange_weak_explicit __c11_atomic_compare_exchange_weak
131
+
132
+ #define atomic_fetch_add(object, operand) __c11_atomic_fetch_add(object, operand, __ATOMIC_SEQ_CST)
133
+ #define atomic_fetch_add_explicit __c11_atomic_fetch_add
134
+
135
+ #define atomic_fetch_sub(object, operand) __c11_atomic_fetch_sub(object, operand, __ATOMIC_SEQ_CST)
136
+ #define atomic_fetch_sub_explicit __c11_atomic_fetch_sub
137
+
138
+ #define atomic_fetch_or(object, operand) __c11_atomic_fetch_or(object, operand, __ATOMIC_SEQ_CST)
139
+ #define atomic_fetch_or_explicit __c11_atomic_fetch_or
140
+
141
+ #define atomic_fetch_xor(object, operand) __c11_atomic_fetch_xor(object, operand, __ATOMIC_SEQ_CST)
142
+ #define atomic_fetch_xor_explicit __c11_atomic_fetch_xor
143
+
144
+ #define atomic_fetch_and(object, operand) __c11_atomic_fetch_and(object, operand, __ATOMIC_SEQ_CST)
145
+ #define atomic_fetch_and_explicit __c11_atomic_fetch_and
146
+
147
+ /* 7.17.8 Atomic flag type and operations */
148
+
149
+ typedef struct atomic_flag { atomic_bool _Value; } atomic_flag;
150
+
151
+ #define ATOMIC_FLAG_INIT { 0 }
152
+
153
+ /* These should be provided by the libc implementation. */
154
+ #ifdef __cplusplus
155
+ bool atomic_flag_test_and_set(volatile atomic_flag *);
156
+ bool atomic_flag_test_and_set_explicit(volatile atomic_flag *, memory_order);
157
+ #else
158
+ _Bool atomic_flag_test_and_set(volatile atomic_flag *);
159
+ _Bool atomic_flag_test_and_set_explicit(volatile atomic_flag *, memory_order);
160
+ #endif
161
+ void atomic_flag_clear(volatile atomic_flag *);
162
+ void atomic_flag_clear_explicit(volatile atomic_flag *, memory_order);
163
+
164
+ #define atomic_flag_test_and_set(object) __c11_atomic_exchange(&(object)->_Value, 1, __ATOMIC_SEQ_CST)
165
+ #define atomic_flag_test_and_set_explicit(object, order) __c11_atomic_exchange(&(object)->_Value, 1, order)
166
+
167
+ #define atomic_flag_clear(object) __c11_atomic_store(&(object)->_Value, 0, __ATOMIC_SEQ_CST)
168
+ #define atomic_flag_clear_explicit(object, order) __c11_atomic_store(&(object)->_Value, 0, order)
169
+
170
+ #ifdef __cplusplus
171
+ }
172
+ #endif
173
+
174
+ #endif /* __STDC_HOSTED__ */
175
+ #endif /* __CLANG_STDATOMIC_H */
176
+
@@ -0,0 +1,31 @@
1
+ /*===---- stdbool.h - Standard header for booleans -------------------------===
2
+ *
3
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ * See https://llvm.org/LICENSE.txt for license information.
5
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ *
7
+ *===-----------------------------------------------------------------------===
8
+ */
9
+
10
+ #ifndef __STDBOOL_H
11
+ #define __STDBOOL_H
12
+
13
+ /* Don't define bool, true, and false in C++, except as a GNU extension. */
14
+ #ifndef __cplusplus
15
+ #define bool _Bool
16
+ #define true 1
17
+ #define false 0
18
+ #elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
19
+ /* Define _Bool as a GNU extension. */
20
+ #define _Bool bool
21
+ #if __cplusplus < 201103L
22
+ /* For C++98, define bool, false, true as a GNU extension. */
23
+ #define bool bool
24
+ #define false false
25
+ #define true true
26
+ #endif
27
+ #endif
28
+
29
+ #define __bool_true_false_are_defined 1
30
+
31
+ #endif /* __STDBOOL_H */
@@ -0,0 +1,121 @@
1
+ /*===---- stddef.h - Basic type definitions --------------------------------===
2
+ *
3
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ * See https://llvm.org/LICENSE.txt for license information.
5
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ *
7
+ *===-----------------------------------------------------------------------===
8
+ */
9
+
10
+ #if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \
11
+ defined(__need_size_t) || defined(__need_wchar_t) || \
12
+ defined(__need_NULL) || defined(__need_wint_t)
13
+
14
+ #if !defined(__need_ptrdiff_t) && !defined(__need_size_t) && \
15
+ !defined(__need_wchar_t) && !defined(__need_NULL) && \
16
+ !defined(__need_wint_t)
17
+ /* Always define miscellaneous pieces when modules are available. */
18
+ #if !__has_feature(modules)
19
+ #define __STDDEF_H
20
+ #endif
21
+ #define __need_ptrdiff_t
22
+ #define __need_size_t
23
+ #define __need_wchar_t
24
+ #define __need_NULL
25
+ #define __need_STDDEF_H_misc
26
+ /* __need_wint_t is intentionally not defined here. */
27
+ #endif
28
+
29
+ #if defined(__need_ptrdiff_t)
30
+ #if !defined(_PTRDIFF_T) || __has_feature(modules)
31
+ /* Always define ptrdiff_t when modules are available. */
32
+ #if !__has_feature(modules)
33
+ #define _PTRDIFF_T
34
+ #endif
35
+ typedef __PTRDIFF_TYPE__ ptrdiff_t;
36
+ #endif
37
+ #undef __need_ptrdiff_t
38
+ #endif /* defined(__need_ptrdiff_t) */
39
+
40
+ #if defined(__need_size_t)
41
+ #if !defined(_SIZE_T) || __has_feature(modules)
42
+ /* Always define size_t when modules are available. */
43
+ #if !__has_feature(modules)
44
+ #define _SIZE_T
45
+ #endif
46
+ typedef __SIZE_TYPE__ size_t;
47
+ #endif
48
+ #undef __need_size_t
49
+ #endif /*defined(__need_size_t) */
50
+
51
+ #if defined(__need_STDDEF_H_misc)
52
+ /* ISO9899:2011 7.20 (C11 Annex K): Define rsize_t if __STDC_WANT_LIB_EXT1__ is
53
+ * enabled. */
54
+ #if (defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 && \
55
+ !defined(_RSIZE_T)) || __has_feature(modules)
56
+ /* Always define rsize_t when modules are available. */
57
+ #if !__has_feature(modules)
58
+ #define _RSIZE_T
59
+ #endif
60
+ typedef __SIZE_TYPE__ rsize_t;
61
+ #endif
62
+ #endif /* defined(__need_STDDEF_H_misc) */
63
+
64
+ #if defined(__need_wchar_t)
65
+ #ifndef __cplusplus
66
+ /* Always define wchar_t when modules are available. */
67
+ #if !defined(_WCHAR_T) || __has_feature(modules)
68
+ #if !__has_feature(modules)
69
+ #define _WCHAR_T
70
+ #if defined(_MSC_EXTENSIONS)
71
+ #define _WCHAR_T_DEFINED
72
+ #endif
73
+ #endif
74
+ typedef __WCHAR_TYPE__ wchar_t;
75
+ #endif
76
+ #endif
77
+ #undef __need_wchar_t
78
+ #endif /* defined(__need_wchar_t) */
79
+
80
+ #if defined(__need_NULL)
81
+ #undef NULL
82
+ #ifdef __cplusplus
83
+ # if !defined(__MINGW32__) && !defined(_MSC_VER)
84
+ # define NULL __null
85
+ # else
86
+ # define NULL 0
87
+ # endif
88
+ #else
89
+ # define NULL ((void*)0)
90
+ #endif
91
+ #ifdef __cplusplus
92
+ #if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED)
93
+ namespace std { typedef decltype(nullptr) nullptr_t; }
94
+ using ::std::nullptr_t;
95
+ #endif
96
+ #endif
97
+ #undef __need_NULL
98
+ #endif /* defined(__need_NULL) */
99
+
100
+ #if defined(__need_STDDEF_H_misc)
101
+ #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
102
+ #include "__stddef_max_align_t.h"
103
+ #endif
104
+ #define offsetof(t, d) __builtin_offsetof(t, d)
105
+ #undef __need_STDDEF_H_misc
106
+ #endif /* defined(__need_STDDEF_H_misc) */
107
+
108
+ /* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use
109
+ __WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */
110
+ #if defined(__need_wint_t)
111
+ /* Always define wint_t when modules are available. */
112
+ #if !defined(_WINT_T) || __has_feature(modules)
113
+ #if !__has_feature(modules)
114
+ #define _WINT_T
115
+ #endif
116
+ typedef __WINT_TYPE__ wint_t;
117
+ #endif
118
+ #undef __need_wint_t
119
+ #endif /* __need_wint_t */
120
+
121
+ #endif