Hey
I am using the latest GCC head and i have noticed some quite different
behaviours when using the plugin than using gcc 4.6 which i think was
what i was using before. Say i take the example script from
http://gcc-python-plugin.readthedocs.org/en/latest/tree.html which
prints out all the function decl information this exact example will
not get any data what so ever. As it seems functions are not part of
the translation unit from what i can tell. To work around this i have
been getting functions from warn_unused_result which works.
But then i have the problem which i am not sure if it did in the older
gcc but gcc seems to not care about function prototypes at all. So if
i have:
t.h:
extern int foobar (void);
t.c
include t.h
int main ()
{
return foobar ();
}
The only function i can seem to get access to is int main. I wonder am
i missing something, but i cant seem to find a way to get access to
these a prototypes. I am 99% gcc is producing code for these cause it
makes sense, there is enough information to generate a function decl
such that a call_expr can call it.
--Phil