[PATCH] D96515: [OpenCL] Add builtin declarations by default.

Sven van Haastregt via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 12 03:23:50 PST 2021


svenvh added a comment.

It probably makes sense to update `clang/docs/UsersManual.rst` as part of this change.  In particular the following sentence is no longer true after this patch: "By default the OpenCL headers are not loaded and therefore certain builtin types and most of builtin functions are not declared."



================
Comment at: clang/include/clang/Driver/Options.td:822
+def cl_no_stdinc : Flag<["-"], "cl-no-stdinc">, Group<opencl_Group>,
+  HelpText<"OpenCL only. Disables all standard includes containing non-native to compiler types and functions from OpenCL C.">;
 def client__name : JoinedOrSeparate<["-"], "client_name">;
----------------
Typo.

Also, this suggests the option is limited to OpenCL C, is that your intent?


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

https://reviews.llvm.org/D96515



More information about the cfe-commits mailing list