[cfe-dev] Efficient way to print ForStmt Header?

Madhur Amilkanthwar madhur13490 at gmail.com
Mon Sep 30 04:59:40 PDT 2013


Hi,
How can print ForStmt header to a file quickly? Is there any simple
function to do that.
e.g
for(int i=0;i<10;i++)
a[i]=a[i]+1;

I want
for(int i=0;i<10;i++)

line in a separate file. As of now, I am reconstructing "ForStmt" first
line with getInit(),getCond() and getInc().



-- 
Thank You.
Madhur D. Amilkanthwar
RISE lab,
IIT Madras.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130930/a739bda9/attachment.html>


More information about the cfe-dev mailing list