This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Plugin, pragmas and braces
- From: Marco Lattuada <ml dot lattuada at libero dot it>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 22 Apr 2013 16:45:32 +0200 (CEST)
- Subject: Plugin, pragmas and braces
- Reply-to: Marco Lattuada <ml dot lattuada at libero dot it>
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)?