<div dir="ltr">Here is an example of some code I would like to parse:<div><br></div><div>//test.hpp</div><div>enum Type</div><div>{</div><div>    TEST_TYPE = 0;</div><div>};</div><div><br></div><div>class Test</div><div>{</div><div>private:</div><div>   int type;</div><div>public:</div><div>    Test();</div><div>};</div><div><br></div><div>Test::Test()</div><div>{</div><div>    type = TEST_TYPE;</div><div>};</div><div><br></div><div>Is there a way to somehow get type = TEST_TYPE?</div><div><br></div><div>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;</div></div>