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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits