from source code to a specific AST cursor with libclang.

Hello,

I’d like to get the AST cursor of a function/method call from a line of code, with libclang (or better, with the python bindings).

These are two sample lines of C++ code:

helSum[0] = antUsrPtr->antennaFunction(y12ant,y23ant,mu1ant,mu2ant,mu3ant, //$
9,9,9,9,9);

The first line has a special-format comment ‘//$’ that indicates to me that in that code line there is a relevant call: antennaFunction( , , , , , , , , …). I want to pick it up usign libclang (the AST node / cursor of that precise call). This is the general problem. More precisions follow.