[cfe-dev] [RFC] New file extension for compiling C++ for OpenCL sources

Anastasia Stulova via cfe-dev cfe-dev at lists.llvm.org
Tue Feb 16 07:41:27 PST 2021


Hello,

Up to now, we have used the same file extension for OpenCL C and C++ for OpenCL
(https://clang.llvm.org/docs/UsersManual.html#cxx-for-opencl). But to keep
consistency with the clang driver interface, it makes more sense that C++ for OpenCL
has a different extension from OpenCL C. Mirroring C and C++ it would be logical to
support the following:

.cl - OpenCL C source file
.clcpp - C++ for OpenCL source file

I would like to share the review that adds a new file extension for C++ for OpenCL with
a wider audience https://reviews.llvm.org/D96771. Feel free to provide us any feedback
regarding the direction or implementation details.

Kind regards,
Anastasia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210216/d26fca79/attachment.html>


More information about the cfe-dev mailing list