[CastXML] Can I get the value of a member variable in a constructor?
Seshu Yamajala
syamajala at gmail.com
Mon Aug 15 09:48:26 EDT 2016
Here is an example of some code I would like to parse:
//test.hpp
enum Type
{
TEST_TYPE = 0;
};
class Test
{
private:
int type;
public:
Test();
};
Test::Test()
{
type = TEST_TYPE;
};
Is there a way to somehow get type = TEST_TYPE?
The way I am currently doing it is to use pygccxml to get the line numbers
of the constructor, read those lines in as a string and just look for type
= something;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/castxml/attachments/20160815/20d2ceb1/attachment.html>
More information about the CastXML
mailing list