On Mon, Jul 28, 2008 at 11:36 PM, P. J. Reed <pr...@sw...> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Let's say that I have a class definition and implementation that look
> something like this:
>
> class Test {
> Test();
> int a, b;
> };
>
> Test::Test():
> a( 1 ),
> b( 2 )
> {}
>
> I'd like to use pygccxml to get the values in the intialization list in
> the constructor -- that is, I want to find out that it's setting "a" to
> 1 and "b" to 2. I can't quite figure out how to do this. I would
> assume that there would be some member method of constructor_t that I
> could use to read it, but I don't see it.
>
> Is there some way to do this that I'm missing?
No.
> If it's not currently possible, would it be difficult to add that in?
Yes. GCCXML is not able to dump arbitrary C++ expression it is
toooooooooo difficult.
There are few projects out-there, that tries to add dumping functions
body to GCCXML. I don't know their status.
Mozilla has some project based on gcc, which is used for refactoring,
I guess you can find such functionality there.
Another valid option is clang project, but it doesn't support C++ well
right know.
HTH
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|