Accessing c++11 in class initializer AST nodes from lib clang

I am working on some code generation tools that use lib clang.
All my code is now c++11 based.
I was hoping to be able to access the class initializer nodes for member variables such as here:

class Foo
{
   float x = 3.1415; // want to access the 3.1415 attached to the FieldDecl node for x
};

I can’t seem to find anything in libclang that will allow that.

I believe the C++ method in clang that I want access to is

   Expr* clang::FieldDecl::getInClassInitializer() const

but do not see a way of getting that in libclang. Any way I can do this or is this just a limitation I cannot get around.
Thanks, -Derek

There is a libclang that is a C interface to the full clang and the
full clang lib. Which one are you intending to use?

Without giving you a precise answer, kind of advice from my experince:
print the ast with -dump-ast, see the type of node, and try to
identify functions that brings you from FieldDecl to the initialiazer.

I tried to identify such methods in my tool, it may help you:
https://github.com/mobiphil/cmatch

I am using libclang (the C api to clang).
-Derek

cmatch is C interface with callbacks, not finished though. It wants to
be an extension to c api. Have a look, feedback is wellcome