[PATCH] D23712: [OpenCL] Override supported OpenCL extensions with -cl-ext option

Joey Gouly via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 24 03:54:03 PDT 2016


joey added a comment.

Two minor comments, but otherwise LGTM!



================
Comment at: include/clang/Basic/OpenCLOptions.h:33
 
   // Enable all options.
+  void setAll(bool Enable = true) {
----------------
This comment needs to be changed, to reflect that they are now all enabled or disabled.


================
Comment at: include/clang/Basic/TargetInfo.h:992
+  virtual void setOpenCLExtensionOpts() {
+    for (const auto &Ext:getTargetOpts().OpenCLExtensionsAsWritten) {
+      getTargetOpts().SupportedOpenCLOptions.set(Ext);
----------------
Can you put a space around the ':'.


https://reviews.llvm.org/D23712





More information about the cfe-commits mailing list