[PATCH] D65102: [OpenCL] Rename lang mode flag for C++ mode
Sven van Haastregt via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 24 03:09:53 PDT 2019
svenvh accepted this revision.
svenvh added a comment.
This revision is now accepted and ready to land.
LGTM!
================
Comment at: include/clang/Frontend/LangStandards.def:177
LANGSTANDARD_ALIAS_DEPR(opencl20, "CL2.0")
+LANGSTANDARD_ALIAS_DEPR(openclcpp, "CLC++")
----------------
It surprised me that the capitalized aliases for the (non-C++) CL standards are considered deprecated, because the OpenCL spec only mentions the capitalized variants. The deprecation was introduced by 59456511f4 ("Improve diagnostics for bad -std= flag.", 2017-04-27). It doesn't seem to have any practical implications though.
The convention for non-OpenCL standards seems to be all lowercase though (e.g. `c99`, `c++14`, so it sounds reasonable to mark the capitalized `CLC++` as deprecated.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65102/new/
https://reviews.llvm.org/D65102
More information about the cfe-commits
mailing list