llvm-project/clang/test/SemaOpenCL
David Blaikie aee4925507 Recommit: Compress formatting of array type names (int [4] -> int[4])
Based on post-commit review discussion on
2bd8493847 with Richard Smith.

Other uses of forcing HasEmptyPlaceHolder to false seem OK to me -
they're all around pointer/reference types where the pointer/reference
token will appear at the rightmost side of the left side of the type
name, so they make nested types (eg: the "int" in "int *") behave as
though there is a non-empty placeholder (because the "*" is essentially
the placeholder as far as the "int" is concerned).

This was originally committed in 277623f4d5

Reverted in f9ad1d1c77 due to breakages
outside of clang - lldb seems to have some strange/strong dependence on
"char [N]" versus "char[N]" when printing strings (not due to that name
appearing in DWARF, but probably due to using clang to stringify type
names) that'll need to be addressed, plus a few other odds and ends in
other subprojects (clang-tools-extra, compiler-rt, etc).
2021-10-21 11:34:43 -07:00
..
access-qualifier.cl [OpenCL] Supports optional same image reads and writes in C++ for OpenCL 2021 2021-09-17 14:14:31 +01:00
address-spaces-conversions-cl2.0.cl [OpenCL] Supports optional generic address space semantics in C++ for OpenCL 2021 2021-09-06 10:20:38 +01:00
address-spaces.cl [OpenCL] Supports optional generic address space semantics in C++ for OpenCL 2021 2021-09-06 10:20:38 +01:00
amdgpu-attrs.cl
arithmetic-conversions.cl
arm-integer-dot-product.cl [OpenCL] Remove pragma requirement from Arm dot extension. 2021-05-12 16:25:33 +01:00
array-init.cl
array-parameters.cl
as_type.cl [OpenCL] Add as_size/ptrdiff/intptr/uintptr_t operators 2021-04-07 10:16:41 +01:00
atomic-init.cl
atomic-ops.cl [OpenCL] Add atomic_half type builtins 2021-10-12 10:45:30 +01:00
block-array-capturing.cl
bool-vectors.cl
builtin.cl
builtins-amdgcn-error-ci.cl
builtins-amdgcn-error-f16.cl
builtins-amdgcn-error-flat-address-space.cl
builtins-amdgcn-error-gfx9.cl
builtins-amdgcn-error-gfx10-param.cl
builtins-amdgcn-error-gfx10.cl
builtins-amdgcn-error-gfx90a-param.cl [AMDGPU] gfx90a support 2021-02-17 16:01:32 -08:00
builtins-amdgcn-error-gfx908-param.cl
builtins-amdgcn-error-vi.cl [AMDGPU] Expose __builtin_amdgcn_perm for v_perm_b32 2021-05-06 16:17:33 -07:00
builtins-amdgcn-error.cl [AMDGPU] Allow relaxed/consume memory order for atomic inc/dec 2021-04-09 09:23:41 -04:00
cl20-device-side-enqueue.cl [OpenCL] Remove subgroups pragma in enqueue kernel and pipe builtins. 2021-05-06 13:59:38 +01:00
clang-builtin-version.cl
clk_event_t.cl [C++4OpenCL] Add diagnostics for OpenCL types in templates. 2021-04-27 13:04:25 +01:00
cond.cl
convergent.cl
endian-attr.cl
event_t.cl [C++4OpenCL] Add diagnostics for OpenCL types in templates. 2021-04-27 13:04:25 +01:00
event_t_overload.cl
ext_vectors.cl [OpenCL] Enables .rgba vector extension in C++ for OpenCL 2021 2021-09-14 13:05:42 +01:00
extension-begin.cl [OpenCL] Drop pragma handling for extension types/decls. 2021-05-17 12:09:43 +01:00
extension-begin.h [OpenCL] Drop pragma handling for extension types/decls. 2021-05-17 12:09:43 +01:00
extension-version.cl [OpenCL] Fix parsing of opencl-c.h in CL 3.0 2021-03-30 16:17:46 +01:00
fdeclare-opencl-builtins.cl [OpenCL] Support cl_ext_float_atomics 2021-09-13 12:12:40 +01:00
features.cl [OpenCL] Define OpenCL 3.0 optional core features in C++ for OpenCL 2021 2021-09-01 10:15:17 +01:00
format-strings-fixit.cl
fp-options.cl [OpenCL] Use -fdeclare-opencl-builtins for some tests 2021-03-22 09:46:28 +00:00
fp64-fp16-options.cl [OpenCL] Supports optional 64-bit floating point types in C++ for OpenCL 2021 2021-09-03 10:58:05 +01:00
func.cl [OpenCL] Change default standard version to CL1.2 2021-07-26 15:04:34 +01:00
half.cl Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
images.cl
init.cl
intel-subgroup-avc-ext-types.cl [OpenCL] Refactor diagnostic for OpenCL extension/feature 2021-03-12 11:43:53 +03:00
invalid-assignment-constant-address-space.cl
invalid-block.cl
invalid-constant.cl
invalid-image.cl [OpenCL] Fix optional image types. 2021-05-07 13:29:28 +01:00
invalid-kernel-attrs.cl Correct some confused diagnostic terminology 2021-02-04 15:52:07 -05:00
invalid-kernel-parameters.cl Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
invalid-kernel.cl [OpenCL] Move kernel arg type tests into one file 2020-11-25 10:20:30 +00:00
invalid-pipe-builtin-cl2.0.cl
invalid-pipes-cl1.2.cl [OpenCL] Supports optional pipe types in C++ for OpenCL 2021 2021-09-17 09:56:20 +01:00
invalid-pipes-cl2.0.cl [OpenCL] Supports optional pipe types in C++ for OpenCL 2021 2021-09-17 09:56:20 +01:00
invalid-vector-literals.cl [OpenCL] Improve OpenCL operator tests 2021-01-13 14:50:49 +00:00
lit.local.cfg
multistep-explicit-cast.cl
nosvm.cl [OpenCL] Clang diagnostics allow reporting C++ for OpenCL version. 2021-08-13 13:55:22 +01:00
null_literal.cl [OpenCL] NULL redefined as nullptr in C++ mode. 2021-07-27 16:33:50 +01:00
null_queue.cl
numbered-address-space.cl
operators.cl [OpenCL] Improve OpenCL operator tests 2021-01-13 14:50:49 +00:00
predefined-expr.cl Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
printf-format-string-warnings.cl [OpenCL] Use -fdeclare-opencl-builtins for some tests 2021-03-22 09:46:28 +00:00
printf-format-strings.cl
queue_t_overload.cl
recovery-expr.cl [AST][RecoveryExpr] Fix a crash on opencl C++. 2020-07-20 15:15:30 +02:00
sampler_t.cl [C++4OpenCL] Add diagnostics for OpenCL types in templates. 2021-04-27 13:04:25 +01:00
sampler_t_overload.cl
shifts.cl
sizeof.cl
storageclass-cl20.cl [OpenCL] Disallows static kernel functions in C++ for OpenCL 2021-09-07 10:23:50 +01:00
storageclass.cl [OpenCL] Supports optional program scope global variables in C++ for OpenCL 2021 2021-09-16 12:48:01 +01:00
str_literals.cl
to_addr_builtin.cl [NFC] Sema: use checkArgCount instead of custom checking 2020-07-28 13:41:06 -07:00
types.cl
unroll-hint.cl
unsupported-image.cl [OpenCL] Supports optional writing to 3d images in C++ for OpenCL 2021 2021-09-20 10:07:38 +01:00
unsupported.cl [OpenCL] Fix test by adding SPIR triple 2021-05-24 13:03:50 +01:00
usm-address-spaces-conversions.cl [OpenCL] Add global_device and global_host address spaces 2020-07-29 17:24:53 +03:00
vec_compare.cl
vec_step.cl [OpenCL] Warn about side effects for unevaluated vec_step arg 2021-01-05 11:51:10 +00:00
vector-conv.cl [OpenCL][NFC] Improve OpenCL test file naming 2021-01-06 14:16:44 +00:00
vector_inc_dec_ops.cl [OpenCL] Improve OpenCL operator tests 2021-01-13 14:50:49 +00:00
vector_swizzle_length.cl
warn-missing-prototypes.cl