kpet added a comment.

Something I should probably have explained in the commit message is that the 
functionality provided by `restrict` is already present in C++, where it is 
already exposed using different keywords. If you look at 
`clang/include/clang/Basic/TokenKinds.def`, there are `__restrict__` and 
`__restrict` aliases that end up producing `tok::kw_restrict`. The only thing 
this patch does is enabling the `restrict` keyword in C++ for OpenCL for 
compatibility with OpenCL C (see more on that on the bug). I don't expect any 
special handling will be required since the functionality is already supported 
both in C++ and OpenCL C.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68388/new/

https://reviews.llvm.org/D68388



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to