resolving call expressions with libclang

Hi,

How can I resolve a CXCursor of kind CXCursor_CallExpr to a function declaration or the function definition (if any)? Or, should the visitor wait for a CXCursor_DeclRefExpr cursor? If so, will the resolved cursor point to the correct overload when used with C++ code?

Regards,
Erik.