[cfe-dev] #pragmas in the AST.

steve naroff snaroff at apple.com
Tue Dec 9 02:59:32 PST 2008


Hi Paolo,

Pragma's are preprocessing directives. Since they aren't integrated  
with the C grammar (and aren't declarations in the language), they  
aren't represented in the AST.

snaroff

On Dec 9, 2008, at 5:35 AM, Paolo Bolzoni wrote:

>
> dear cfe-list,
> I'd like to know how the AST represents eventual pragmas of the  
> original
> source code. As far I understood the pragmas disappear, or at least  
> aren't
> global declarations.
>
>
> I am overall interested about the standard pragmas (#pragma STDC, for
> example C99 7.6.1).
>
> Thanks.
> pb
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list