[cfe-dev] OpenCL parsing / type support
sebastian.redl at getdesigned.at
Thu Mar 11 08:34:19 CST 2010
On Thu, 11 Mar 2010 11:17:32 -0000, "Anton Lokhmotov"
<Anton.Lokhmotov at arm.com> wrote:
> Right now I'm staring into TokenKinds.def. One issue there is the use
> KEYALL for
> a) non-C99 (and hence automatically non-OpenCL) keywords (e.g. __func__)
> b) GNU extensions (e.g. _Decimal32, __builtin_choose_expr)
> c) MS extensions (e.g. __forceinline and __declspec).
> This means that a Clang-based OpenCL front-end may not accept these as
> identifiers, although the standard does not list them as keywords!
This shouldn't matter. Identifiers containing double underscores or
starting with an underscore and an uppercase letter are not valid
identifiers for user code under any circumstances.
More information about the cfe-dev