hanchenye-llvm-project/clang/test/CodeGenOpenCLCXX
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
..
address-space-castoperators.cpp [Sema] Change addr space diagnostics in casts to follow C++ style. 2019-03-07 17:06:30 +00:00
address-space-deduction.cl
address-space-deduction2.cl [OpenCL] Fix for TBAA information of pointer after addresspacecast 2018-12-12 09:51:23 +00:00
addrspace-derived-base.cl [PR40778] Preserve addr space in Derived to Base cast. 2019-03-07 16:23:15 +00:00
addrspace-of-this.cl [OpenCL] Add generic addr space to the return of implicit assignment. 2019-01-30 11:18:08 +00:00
addrspace-operators.cl [PR40778][Sema] Adjust addr space of operands in builtin operators. 2019-03-07 16:43:41 +00:00
addrspace-references.cl [PR40778] Add addr space conversion when binding reference to a temporary. 2019-03-06 13:02:41 +00:00
method-overload-address-space.cl [OpenCL] Allow address spaces as method qualifiers. 2019-01-21 16:01:38 +00:00
template-address-spaces.cl [OpenCL] Add generic AS to 'this' pointer 2018-12-13 10:15:27 +00:00