llvm-project/clang/test/SemaOpenCL
Benjamin Kramer 1adc8c3391 Print detailed vector type information on diagnostics.
We never aka vector types because our attributed syntax for it is less
comprehensible than the typedefs. This leaves the user in the dark when
the typedef isn't named that well.

Example:
  v2s v; v4f w;
  w = v;

The naming in this cases isn't even that bad, but the error we give is
useless without looking up the actual typedefs.
t.c:6:5: error: assigning to 'v4f' from incompatible type 'v2s'

Now:
t.c:6:5: error: assigning to 'v4f' (vector of 4 'float' values) from
    incompatible type 'v2s' (vector of 2 'int' values)

We do this for all diagnostics that print a vector type.

llvm-svn: 207267
2014-04-25 20:41:38 +00:00
..
address-spaces.cl [OpenCL] Disallow casts between address spaces. 2014-01-14 12:47:29 +00:00
array-parameters.cl Allow address space qualifiers on OpenCL array parameters 2014-04-15 11:38:29 +00:00
cond.cl Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
endian-attr.cl Removing the endian attribute and updating associated test cases. This functionality was never completely implemented, and this is an improvement over silently eating the attribute. 2013-09-09 12:57:20 +00:00
event_t.cl [OpenCL] Variables in the constant address space must be initialized. 2014-01-03 14:16:55 +00:00
event_t_overload.cl Enable overloading of OpenCL events - this is needed for the overloaded OpenCL builtin functions. 2013-02-07 16:05:33 +00:00
extension-fp64.cl
extern.cl Allow clang to compile the "extern" storage class in OpenCL 1.2. 2014-01-23 16:36:09 +00:00
func_ptr.cl OpenCL: fix for the restriction on pointers to functions. 2014-02-20 13:52:08 +00:00
half.cl Diagnose loads of 'half' l-values in OpenCL. 2013-02-12 01:29:43 +00:00
init.cl Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
invalid-constant.cl [OpenCL] Add test case for previous commit. 2014-01-03 15:11:57 +00:00
invalid-kernel-attrs.cl Simplifying the OpenCL image attribute. It does not need a semantic integer parameter because the required information is encoded in the spelling. Added an appropriate subject to the attribute, and simplified the semantic checking (which will likely be expanded upon in a future patch). Also, removed the GNU spelling since it was unsupported in the first place. 2014-01-14 17:41:53 +00:00
invalid-kernel-parameters.cl Error on more illegal kernel argument types for OpenCL 2013-07-23 01:23:36 +00:00
invalid-kernel.cl Allow address space qualifiers on OpenCL array parameters 2014-04-15 11:38:29 +00:00
invalid-logical-ops-1.1.cl Add a 64-bit triple to these tests, to fix 32-bit bots. 2013-02-21 13:42:33 +00:00
invalid-logical-ops-1.2.cl Add a 64-bit triple to these tests, to fix 32-bit bots. 2013-02-21 13:42:33 +00:00
lit.local.cfg Disallow driver use in more Sema tests 2014-04-19 19:07:31 +00:00
sampler_t.cl Add OpenCL samplers as Clang builtin types and check sampler related restrictions. 2013-02-07 10:55:47 +00:00
sampler_t_overload.cl Add OpenCL samplers as Clang builtin types and check sampler related restrictions. 2013-02-07 10:55:47 +00:00
shifts.cl Fix a crash in OpenCL code by using the proper (RHS) bit-width. 2013-01-29 15:09:40 +00:00
sizeof.cl [OpenCL] Produce an error, instead of a warning, for sizeof(void) in OpenCL. 2013-12-31 15:47:49 +00:00
storageclass.cl Add an error to check that all program scope variables are in the constant address space in OpenCL. 2013-04-05 20:14:50 +00:00
str_literals.cl [OpenCL] Make sure we put string literals in the constant address space. 2013-11-14 18:26:10 +00:00
unsupported.cl Add some semantic checks for OpenCL. Variadic macros, VLAs and bitfields are not supported. 2013-01-17 17:35:00 +00:00
vec_compare.cl Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
vec_step.cl
vector_conv_invalid.cl Print detailed vector type information on diagnostics. 2014-04-25 20:41:38 +00:00
vector_inc_dec_ops.cl OpenCL allows the (pre/post)-(increment/decrement) operator on integer vector types, 2013-09-06 09:58:08 +00:00
vector_literals_const.cl Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
vector_literals_invalid.cl
warn-missing-prototypes.cl