[PATCH] D58179: [OpenCL][PR40707] Allow OpenCL C types in C++ mode

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 13 07:22:46 PST 2019


Anastasia created this revision.
Anastasia added a reviewer: svenvh.
Herald added subscribers: ebevhan, yaxunl.

Allow all OpenCL types to be parsed in C++ mode.

I plan to enable more tests but they are currently failing for different reasons. This commit makes sure images can be used as they are reported in the bug.


https://reviews.llvm.org/D58179

Files:
  include/clang/Basic/DiagnosticParseKinds.td
  include/clang/Basic/TokenKinds.def
  lib/Parse/ParseDecl.cpp
  lib/Parse/ParseExprCXX.cpp
  lib/Parse/ParseTentative.cpp
  lib/Sema/SemaDeclAttr.cpp
  test/CodeGenOpenCL/images.cl
  test/SemaOpenCL/invalid-image.cl
  test/SemaOpenCLCXX/restricted.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58179.186655.patch
Type: text/x-patch
Size: 7841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190213/16a7373a/attachment.bin>


More information about the cfe-commits mailing list