[PATCH] D46022: [OpenCL] Restrict various keywords in OpenCL C++ mode

Sven van Haastregt via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 1 10:12:48 PDT 2018


svenvh updated this revision to Diff 144745.
svenvh edited the summary of this revision.
svenvh added a comment.

Dropped the `asm` and `goto` restrictions from this patch for now until we have clarification from Khronos.

Applied the `thread_local` restrictions to OpenCL C too.


https://reviews.llvm.org/D46022

Files:
  include/clang/Basic/DiagnosticCommonKinds.td
  include/clang/Basic/DiagnosticParseKinds.td
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Basic/TokenKinds.def
  lib/Basic/IdentifierTable.cpp
  lib/Frontend/CompilerInvocation.cpp
  lib/Parse/ParseDecl.cpp
  lib/Sema/SemaCast.cpp
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaExprCXX.cpp
  test/Parser/opencl-cl20.cl
  test/Parser/opencl-cxx-keywords.cl
  test/Parser/opencl-storage-class.cl
  test/SemaOpenCL/storageclass.cl
  test/SemaOpenCLCXX/restricted.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46022.144745.patch
Type: text/x-patch
Size: 24403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180501/a625b359/attachment-0001.bin>


More information about the cfe-commits mailing list