search for: visitcxxconstructordecl

Displaying 1 result from an estimated 1 matches for "visitcxxconstructordecl".

2013 Feb 06
1
[LLVMdev] Process the initializers of a C++ class properly
...sA { }; classB :public A { float f; public: B(A& a) : A(a), f(3.14159) { } }; I wold like to get the initialization values for each member. In this example the values a and 3.14159 for the members A and f respectively. What I have done so far is this: I am using the method VisitCXXConstructorDecl and then getting the initalizers by means of iterator CXXConstructorDecl::init_iterator. I am able to get the members that are being initialized by means of getMember <http://clang.llvm.org/doxygen/classclang_1_1CXXCtorInitializer.html#a877f0bab49ff048f7e0faddf3f528977> () method for each...