[PATCH] D96771: [OpenCL] Add distinct file extension for C++ for OpenCL

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 16 05:20:30 PST 2021


Anastasia created this revision.
Anastasia added reviewers: svenvh, mantognini.
Herald added subscribers: dexonsmith, ebevhan, yaxunl.
Herald added a reviewer: jansvoboda11.
Anastasia requested review of this revision.

Files compiled with C++ for OpenCL can have a distinct file extension - `clcpp`, then clang driver will pick the compilation mode automatically without the use of `-cl-std=clc++`


https://reviews.llvm.org/D96771

Files:
  clang/include/clang/Basic/LangStandard.h
  clang/include/clang/Driver/Types.def
  clang/lib/Driver/Types.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/lib/Frontend/FrontendActions.cpp
  clang/test/Driver/cxx_for_opencl.clcpp
  clang/test/Driver/lit.local.cfg
  clang/test/lit.cfg.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96771.323958.patch
Type: text/x-patch
Size: 7960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210216/d6812690/attachment-0001.bin>


More information about the cfe-commits mailing list