[cfe-dev] Question: Returning the function declaration by using a cursor in the body of that function

박마루한 via cfe-dev cfe-dev at lists.llvm.org
Mon Dec 4 23:53:29 PST 2017


Hello,

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() {
   b()
}

I'm wondering if I can use the cursor on "b()" as input to get the function
declaration cursor on "int a()".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20171205/7dd4babb/attachment.html>


More information about the cfe-dev mailing list