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.
Hi,
How can I resolve a CXCursor of kind CXCursor_CallExpr to a function declaration or the function definition (if any)?
Use clang_getCursorReferenced.
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?
Yes, it will point to the correct overload.