Question: Returning the function declaration by using a cursor in the body of that function


I’m wondering if there is a function in libclang where the use-case is as below.

Input: A cursor that’s inside a function body
Out: The function declaration cursor of the function containing that function body

For example, for a code such as below,

int a() {

I’m wondering if I can use the cursor on “b()” as input to get the function declaration cursor on “int a()”.