Andrew Parker
2015-11-03 09:38:22 UTC
Is there any detailed documentation on this? I'm trying to decypher the
tree but it's pretty hard to guess what a lot of things are for without
looking at the source.
For example, if I defined a trivial struct in the input file two different
ways:
struct my_struct
{};
vs
struct my_struct
{
my_struct();
~my_struct();
};
Then I can see that the class node corresponding to this changes from (I've
ignored attributes which aren't relevant to ctrs/dtrs):
| allocate:default_constructor - "1"
| allocate:default_destructor - "1"
| has_constructor - "1"
| has_destructor - "1"
| allocate:copy_constructor - "1"
| has_default_constructor - "1"
| allocate:destructor - "1"
to
| allocate:default_constructor - "1"
| allocate:default_destructor - "1"
| has_constructor - "1"
| has_destructor - "1"
| allocate:copy_constructor - "1"
| allocate:has_constructor - "1"
| allocate:public_constructor - "1"
| allocate:has_destructor - "1"
This doesn't seem to be in any way consistent. Am I missing something?
FYI I'm looking at adapting and extending SWIG for some internal tooling so
being able to decypher the whole tree is vital.
Thanks
tree but it's pretty hard to guess what a lot of things are for without
looking at the source.
For example, if I defined a trivial struct in the input file two different
ways:
struct my_struct
{};
vs
struct my_struct
{
my_struct();
~my_struct();
};
Then I can see that the class node corresponding to this changes from (I've
ignored attributes which aren't relevant to ctrs/dtrs):
| allocate:default_constructor - "1"
| allocate:default_destructor - "1"
| has_constructor - "1"
| has_destructor - "1"
| allocate:copy_constructor - "1"
| has_default_constructor - "1"
| allocate:destructor - "1"
to
| allocate:default_constructor - "1"
| allocate:default_destructor - "1"
| has_constructor - "1"
| has_destructor - "1"
| allocate:copy_constructor - "1"
| allocate:has_constructor - "1"
| allocate:public_constructor - "1"
| allocate:has_destructor - "1"
This doesn't seem to be in any way consistent. Am I missing something?
FYI I'm looking at adapting and extending SWIG for some internal tooling so
being able to decypher the whole tree is vital.
Thanks