[PATCH] D65941: [OpenCL] Fix lang mode predefined macros for C++ mode
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 8 04:52:05 PDT 2019
Anastasia created this revision.
Anastasia added a reviewer: svenvh.
Herald added subscribers: ebevhan, yaxunl.
We should only avoid adding `__OPENCL_C_VERSION__`, all other predefined macros about the language mode are still valid.
This change also fixes the language version check in the headers.
https://reviews.llvm.org/D65941
Files:
lib/Frontend/InitPreprocessor.cpp
lib/Headers/opencl-c-base.h
lib/Headers/opencl-c.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65941.214114.patch
Type: text/x-patch
Size: 44937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190808/6c11aa44/attachment-0001.bin>
More information about the cfe-commits
mailing list