[cfe-dev] How do I know which function a ForStmt belongs to?

Zheng Wang jason.wangz at gmail.com
Fri Apr 15 04:01:32 PDT 2011


Hello,


I am implementing a VisitForStmt(ForStmt *Node) to print for loops. I want
to know the name of the function that the loop belongs to.
Is there any where to get this information? The class has a copy of
ASTContext.


Cheers,
Zheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110415/dd86ed2a/attachment.html>


More information about the cfe-dev mailing list