[cfe-dev] OpenCL parsing / type support

Sebastian Redl sebastian.redl at getdesigned.at
Thu Mar 11 06:34:19 PST 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
of
> 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
> valid
> 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.

Sebastian




More information about the cfe-dev mailing list