[cfe-dev] Traversing Constructor Body

Laurence Herbert laurence.herbert1 at gmail.com
Tue Oct 11 12:06:04 PDT 2011


Hi,

I am currently on working on some analysis of C++ classes using Clang. I can
successfully traverse the constructor's Initialization list and a classes
member variables but I am stuck as to how to traverse the body of a
constructor, i.e.

Test(int val1, int val2){
        x = val1;
        y = val2;
 }

What method can I use to access the body of the constructor body (x = val1;
, y = val2;) ?


Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111011/2a14751c/attachment.html>


More information about the cfe-dev mailing list