hanchenye-llvm-project/clang/test/SemaOpenCL
Anastasia Stulova 6f7c536e08 [Sema] Change addr space diagnostics in casts to follow C++ style.
This change adds a new diagnostic for mismatching address spaces
to be used for C++ casts (only enabled in C style cast for now,
the rest will follow!).

The change extends C-style cast rules to account for address spaces.
It also adds a separate function for address space cast checking that
can be used to map from a separate address space cast operator
addrspace_cast (to be added as a follow up patch).

Note, that after this change clang will no longer allows arbitrary
address space conversions in reinterpret_casts because they can lead
to accidental errors. The implicit safe conversions would still be
allowed.

Differential Revision: https://reviews.llvm.org/D58346

llvm-svn: 355609
2019-03-07 17:06:30 +00:00
..
access-qualifier.cl [OpenCL] Relax diagnostics on OpenCL access qualifiers 2018-09-06 15:10:26 +00:00
address-spaces-conversions-cl2.0.cl [Sema] Change addr space diagnostics in casts to follow C++ style. 2019-03-07 17:06:30 +00:00
address-spaces.cl [Sema] Change addr space diagnostics in casts to follow C++ style. 2019-03-07 17:06:30 +00:00
amdgpu-attrs.cl [AMDGPU] Allow using integral non-type template parameters 2019-02-26 18:49:36 +00:00
arithmetic-conversions.cl
array-init.cl
array-parameters.cl
as_type.cl
atomic-init.cl
atomic-ops.cl __c11_atomic_load's _Atomic can be const 2018-08-02 17:35:46 +00:00
block-array-capturing.cl Revert r326937 "[OpenCL] Remove block invoke function from emitted block literal struct" 2018-10-02 13:02:24 +00:00
bool-vectors.cl
builtin.cl
builtins-amdgcn-error-ci.cl AMDGPU: Add another missing builtin 2018-08-09 22:18:37 +00:00
builtins-amdgcn-error-f16.cl
builtins-amdgcn-error-gfx9.cl
builtins-amdgcn-error-vi.cl AMDGPU: Add builtin for s_dcache_wb 2018-08-07 07:49:13 +00:00
builtins-amdgcn-error.cl AMDGPU: add __builtin_amdgcn_update_dpp 2018-10-17 02:32:26 +00:00
cl20-device-side-enqueue.cl [OpenCL] Remove unwanted signedness conversion from tests 2018-10-19 09:01:37 +00:00
clang-builtin-version.cl Revert "We allow implicit function declarations as an extension in all C dialects. Remove OpenCL special case." 2018-09-24 14:21:56 +00:00
clk_event_t.cl Allow clk_event_t comparisons 2018-11-01 12:43:00 +00:00
cond.cl
convergent.cl
endian-attr.cl
event_t.cl
event_t_overload.cl
ext_vectors.cl
extension-begin.cl [OpenCL] Fix diagnostic message about overload candidates 2018-11-07 13:07:18 +00:00
extension-begin.h [OpenCL] Fix serialization of OpenCLExtensionDecls 2018-10-29 11:14:01 +00:00
extension-version.cl [OpenCL][PR40603] In C++ preserve compatibility with OpenCL C v2.0 2019-02-07 17:32:37 +00:00
extensions.cl [OpenCL][PR40603] In C++ preserve compatibility with OpenCL C v2.0 2019-02-07 17:32:37 +00:00
format-strings-fixit.cl [OpenGL] Fix test on PPC after r352540 2019-01-30 11:24:04 +00:00
func.cl
half.cl
images.cl
init.cl
intel-subgroup-avc-ext-types.cl [OpenCL] Add support of cl_intel_device_side_avc_motion_estimation extension 2018-11-08 11:25:41 +00:00
invalid-assignment-constant-address-space.cl
invalid-block.cl
invalid-constant.cl
invalid-image.cl [OpenCL][PR40707] Allow OpenCL C types in C++ mode. 2019-02-15 12:07:57 +00:00
invalid-kernel-attrs.cl Merge two attribute diagnostics into one 2018-09-17 10:39:46 +00:00
invalid-kernel-parameters.cl [OpenCL] Forbid size dependent types used as kernel arguments 2018-07-31 20:26:43 +00:00
invalid-kernel.cl
invalid-pipe-builtin-cl2.0.cl
invalid-pipes-cl2.0.cl
lit.local.cfg
logical-ops.cl DR1687: When overload resolution selects a built-in operator, implicit 2018-06-27 20:30:34 +00:00
multistep-explicit-cast.cl [Sema] Mark implicitly-inserted ICE's as being part of explicit cast (PR38166) 2018-07-24 08:16:50 +00:00
nosvm.cl
null_literal.cl
null_queue.cl [OpenCL] Allow zero assignment and comparisons between queue_t type variables 2018-09-25 12:59:34 +00:00
numbered-address-space.cl Try to make builtin address space declarations not useless 2018-08-02 12:14:28 +00:00
pipes-1.2-negative.cl
predefined-expr.cl
printf-format-string-warnings.cl OpenCL: Use length modifier for warning on vector printf arguments 2019-01-29 20:49:54 +00:00
printf-format-strings.cl OpenCL: Use length modifier for warning on vector printf arguments 2019-01-29 20:49:54 +00:00
queue_t_overload.cl
sampler_t.cl [OpenCL] Add test for constant sampler argument 2018-08-14 13:56:52 +00:00
sampler_t_overload.cl
shifts.cl
sizeof.cl
storageclass-cl20.cl
storageclass.cl
str_literals.cl
to_addr_builtin.cl [OpenCL] Improve extension-version.cl and to_addr_builtin.cl tests 2018-09-27 13:20:29 +00:00
types.cl
unroll-hint.cl
unsupported.cl
vec_compare.cl
vec_step.cl
vector_conv_invalid.cl
vector_inc_dec_ops.cl
vector_literals_const.cl
vector_literals_invalid.cl
vector_swizzle_length.cl
warn-missing-prototypes.cl