Some Clang diagnostics could only report OpenCL C version. Because
C++ for OpenCL can be used as an alternative to OpenCL C, the text
for diagnostics should reflect that.
Output text modified for these diagnostics:
warn_option_invalid_ocl_version
err_attribute_requires_opencl_version
warn_opencl_attr_deprecated_ignored
ext_opencl_ext_vector_type_rgba_selector
Since we have a number of diagnostics now that print the current lang version using this pattern do you think we could instead add a helper function that prints the full current OpenCL version spelling. We could add something similar to LangOptions::getOpenCLVersionTuple() so let's say LangOptions::getOpenCLVersionString() that could use a tuple-helper internally. Then we could change such diagnostics to something like:
%0 does not support the option '%1'
This could help us simplifying the source code and make sure the diagnostic wording is always consistent.