[PATCH] D46022: [OpenCL] Restrict various keywords in OpenCL C++ mode
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 25 10:53:36 PDT 2018
rjmccall added a comment.
Yeah, if there are actually differences in the set of keywords, that's a totally reasonable thing to handle in the lexer.
================
Comment at: include/clang/Basic/TokenKinds.def:255
+// KEYNOOPENCL - This is a keyword that is not supported in OpenCL C
+// nor in OpenCL C++.
// KEYALTIVEC - This is a keyword in AltiVec
----------------
`KEYNOOPENCL` is dead now, I think.
================
Comment at: lib/Sema/DeclSpec.cpp:621
+ // OpenCL C++ 1.0 s2.9: the thread_local storage qualifier is not
+ // supported.
+ case TSCS_thread_local:
----------------
Do you really care about the spelling of the specifier? Presumably `__thread` (the GNU extension) and `_Thread_local` (the C11 feature) are unsupported; where are those diagnosed?
https://reviews.llvm.org/D46022
More information about the cfe-commits
mailing list