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 = antUsrPtr->antennaFunction(y12ant,y23ant,mu1ant,mu2ant,mu3ant, //$
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.