Added std option for OpenCL C++, see cfe-dev thread for more details:
http://lists.llvm.org/pipermail/cfe-dev/2018-April/057535.html
Examples:
clang -std=c++ test.cl
I am not sure if we need a separate language mode. Right now I am reusing OpenCL. We can discuss.
OpenCL C++ 1.0 specification defines only 'c++' value for -cl-std option.
Assuming that OpenCL C++ 1.0 might be supported by multiple OpenCL version, wouldn't 'CL2.2' confuse people?
As we have separate kernel language specification with independent version numbering, I think we should avoid using OpenCL API numbering for language version.
What is the naming scheme for next versions of OpenCL C++ specification? 'clc++N.M'?