diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst index 7709556fbace3b..6c8d297e618fc7 100644 --- a/clang/docs/UsersManual.rst +++ b/clang/docs/UsersManual.rst @@ -3237,6 +3237,18 @@ compiling ``.cl`` file ``-cl-std=clc++``, ``-cl-std=CLC++``, ``-std=clc++`` or clang -cl-std=clc++ test.cl +Alternatively, files with ``.clcpp`` extension are compiled with the C++ for OpenCL +mode. + + .. code-block:: console + + clang test.clcpp + +C++ for OpenCL kernel sources can also be compiled online in drivers supporting +`cl_ext_cxx_for_opencl +`_ +extension. + Constructing and destroying global objects ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^