Re: Plugin, pragmas and braces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2013/4/22 Marco Lattuada <ml.lattuada@xxxxxxxxx>:
> Hi,
>
> I am trying to write a gcc plugin to manage c code included in braces and
> annotated with pragmas, like openmp pragmas.
> Something like this
> #pragma my_pragma
> {
>    /** Code */
>    ...
> }
>
> Is there any way to trigger a function/identify the end of the block annotated
> by the pragma (i.e., the closing brace)?


According to C99 6.10.6 Pragma directive,
it seems there is no such end-annotation for pragma.

So I would suggest defining your own '#pragma end_my_pragma'.


Best regards,
jasonwucj




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux