llvm-project/clang/test/Headers
Reid Kleckner db3d029fbe Effectively revert 33c3d8a916 / D33782
This change would treat the token `or` in system headers as an
identifier, and elsewhere as an operator. As reported in
llvm.org/pr42427, many users classify their third party library headers
as "system" headers to suppress warnings. There's no clean way to
separate Windows SDK headers from user headers.

Clang is still able to parse old Windows SDK headers if C++ operator
names are disabled. Traditionally this was controlled by
`-fno-operator-names`, but is now also enabled with `/permissive` since
D103773. This change will prevent `clang-cl` from parsing <query.h> from
the Windows SDK out of the box, but there are multiple ways to work
around that:
- Pass `/clang:-fno-operator-names`
- Pass `/permissive`
- Pass `-DQUERY_H_RESTRICTION_PERMISSIVE`

In all of these modes, the operator names will consistently be available
or not available, instead of depending on whether the code is in a
system header.

I added a release note for this, since it may break straightforward
users of the Windows SDK.

Fixes PR42427

Differential Revision: https://reviews.llvm.org/D108720
2021-08-25 14:41:26 -07:00
..
Inputs [openmp] Annotate tmp variables with omp_thread_mem_alloc 2021-08-19 02:22:11 +01:00
altivec-header.c Revert "PR17164: Change clang's default behavior from -flax-vector-conversions=all to -flax-vector-conversions=integer." 2020-01-20 16:34:09 -08:00
altivec-intrin.c
amdgcn-openmp-device-math-complex.c [OpenMP][AMDGCN] Enable complex functions 2021-08-24 12:40:41 +05:30
amdgcn_openmp_device_math.c [OpenMP][AMDGCN] Initial math headers support 2021-08-02 14:38:52 +00:00
arm-acle-header.c [clang][Headers] Use __has_builtin instead of _MSC_VER. 2020-03-06 13:48:09 -08:00
arm-cde-header.c [ARM] Replace arm vendor with none. NFC 2020-04-22 18:19:35 +01:00
arm-cmse-header-ns.c
arm-cmse-header.c
arm-fp16-header.c
arm-neon-header.c [ARM] Add missing target for Arm neon test case. 2020-10-01 00:32:33 +01:00
arm64-apple-ios-types.cpp
builtins-header.c [Clang] Add an empty builtins.h file. 2021-07-16 12:50:04 -05:00
c11.c
c89.c
cpuid.c [clang] Add missing header guard in <cpuid.h> 2020-11-10 19:34:25 -08:00
cuda_with_openmp.cu [NFC][OpenMP][CUDA] Add test for using `-x cuda -fopenmp` 2021-07-02 19:03:15 +02:00
cxx11.cpp
float-darwin.c
float.c
float16.c
hexagon-audio-headers.c [hexagon] Add {hvx,}hexagon_{protos,circ_brev...} 2021-06-30 22:58:56 -05:00
hexagon-headers.c [hexagon] Add {hvx,}hexagon_{protos,circ_brev...} 2021-06-30 22:58:56 -05:00
hexagon-hvx-headers.c [hexagon] Add {hvx,}hexagon_{protos,circ_brev...} 2021-06-30 22:58:56 -05:00
hip-header.hip [HIP] Move std headers after device malloc/free 2021-07-09 21:20:16 +00:00
htm-header.c
int64-type.c
limits.cpp
lit.local.cfg [OpenCL] Add builtin header test 2021-06-10 10:05:53 +01:00
mm3dnow.c
ms-arm64-intrin.cpp
ms-intrin.cpp
ms-null-ms-header-vs-stddef.cpp
ms-wchar.c
nvptx_device_cmath_functions.c [OpenMP] Provide math functions in OpenMP device code via OpenMP variants 2020-04-07 23:33:24 -05:00
nvptx_device_cmath_functions.cpp [OpenMP] Provide math functions in OpenMP device code via OpenMP variants 2020-04-07 23:33:24 -05:00
nvptx_device_cmath_functions_cxx17.cpp [OpenMP] Provide math functions in OpenMP device code via OpenMP variants 2020-04-07 23:33:24 -05:00
nvptx_device_math_complex.c [OpenMP] Overhaul `declare target` handling 2021-05-06 02:10:41 -05:00
nvptx_device_math_complex.cpp [OpenMP] Support `std::complex` math functions in target regions 2020-09-16 13:37:10 -05:00
nvptx_device_math_functions.c [OpenMP] Provide math functions in OpenMP device code via OpenMP variants 2020-04-07 23:33:24 -05:00
nvptx_device_math_functions.cpp [OpenMP] Provide math functions in OpenMP device code via OpenMP variants 2020-04-07 23:33:24 -05:00
nvptx_device_math_functions_cxx17.cpp [OpenMP] Provide math functions in OpenMP device code via OpenMP variants 2020-04-07 23:33:24 -05:00
nvptx_device_math_macro.cpp Prevent test from failing in my home directory 2020-05-28 16:14:49 +02:00
nvptx_device_math_modf.cpp [OpenMP] Provide math functions in OpenMP device code via OpenMP variants 2020-04-07 23:33:24 -05:00
nvptx_device_math_sin.c [OpenMP][SYCL] Improve diagnosing of unsupported types usage 2020-05-29 18:00:48 +03:00
nvptx_device_math_sin.cpp [OpenMP][SYCL] Improve diagnosing of unsupported types usage 2020-05-29 18:00:48 +03:00
nvptx_device_math_sin_cos.cpp [OpenMP] Provide math functions in OpenMP device code via OpenMP variants 2020-04-07 23:33:24 -05:00
nvptx_device_math_sincos.cpp [OpenMP] Allow <math.h> to go first in C++-mode in target regions 2020-04-09 22:10:31 -05:00
opencl-builtins.cl [OpenCL] Add builtin header test 2021-06-10 10:05:53 +01:00
opencl-c-header.cl [OpenCL] Add cl_khr_integer_dot_product 2021-07-23 10:10:16 +01:00
openmp_device_math_isnan.cpp [OpenMP][AMDGCN] Initial math headers support 2021-08-02 14:38:52 +00:00
pconfigintin.c
pmmintrin.c
ppc-intrinsics.c
riscv-vector-header.c [Clang][RISCV] Add custom TableGen backend for riscv-vector intrinsics. 2021-03-10 18:43:43 -08:00
sgxintrin.c
stdarg-gnuc_va_list.c
stdarg.cpp AST: Create __va_list in the std namespace even in C. 2021-06-23 18:59:10 -07:00
stdatomic.c
stdbool.cpp
stddefneeds.cpp
stdint-typeof-MINMAX.cpp
target_include_new.cpp [OpenMP] Make sure classes work on the device as they do on the host 2021-05-06 02:10:30 -05:00
tgmath-darwin.c
tgmath.c
thumbv7-apple-ios-types.cpp
typedef_guards.c
unwind.c
wasm.c [WebAssembly] Restore builtins and intrinsics for pmin/pmax 2021-08-20 09:21:31 -07:00
wasm.cpp [WebAssembly] Fix types in wasm_simd128.h and add tests 2020-08-05 14:00:01 -07:00
wchar_limits.cpp
wmmintrin.c
x86-header-warnings.c [X86] Fix x86-header-warnings.c test not detecting regressions as intended. 2020-04-08 15:22:44 +01:00
x86-intrinsics-headers-clean.cpp
x86-intrinsics-headers.c Revert "PR17164: Change clang's default behavior from -flax-vector-conversions=all to -flax-vector-conversions=integer." 2020-01-20 16:34:09 -08:00
x86_64-apple-macosx-types.cpp
x86intrin-2.c Add header guards for header files that should not be included on the PS4 platform. 2020-04-30 16:17:34 -07:00
x86intrin.c Revert "PR17164: Change clang's default behavior from -flax-vector-conversions=all to -flax-vector-conversions=integer." 2020-01-20 16:34:09 -08:00
x86intrin.cpp
xmmintrin.c [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00