[C++4OpenCL] Add diagnostics for OpenCL types in templates.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Tue, 27 Apr 2021 10:03:26 +0000 (11:03 +0100)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Tue, 27 Apr 2021 12:04:25 +0000 (13:04 +0100)
commit6a92c19f3bbc47827b8844a2b527f6c6fba63afd
treeec780d815246bc08cef8c7cc053e3ddea2c84b75
parent160e729cf0011da9eacea60cb325a2b506dc7b39
[C++4OpenCL] Add diagnostics for OpenCL types in templates.

Refactored diagnostics for OpenCL types to allow their
reuse for templates.

Patch by olestrohm (Ole Strohm)!

Differential Revision: https://reviews.llvm.org/D100860
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaOpenCL/clk_event_t.cl
clang/test/SemaOpenCL/event_t.cl
clang/test/SemaOpenCL/sampler_t.cl
clang/test/SemaOpenCLCXX/template-opencl-types.clcpp [new file with mode: 0644]