Re: How to get AST for C source in plugin?

2010-02-12 Thread Ilya Caramishev
On 12/02/10 19:51, Joern Rennecke wrote: Quoting Ilya Caramishev : I've tried registering my plugin for PLUGIN_FINISH_UNIT event. That event occurs way too late. Alternatively I've tried Kenji Koyanagi's patch (http://gcc.gnu.org/ml/gcc/2009-03/msg00136.html) and it worked j

How to get AST for C source in plugin?

2010-02-12 Thread Ilya Caramishev
Hi, I've posted this question to gcc-help list back in December and haven't got any reaction, so I decided to repost it here. I'm trying to do some static analysis of C source using GCC 4.5 and my plugin. I've tried registering my plugin for PLUGIN_FINISH_UNIT event. My plugin gets called,