[cfe-dev] how to differentiate variable read and write

jignesh vasoya jigneshvasoya at gmail.com
Sun Mar 20 09:31:05 PDT 2011


Hi,
I want to differentiate variable references read and written
For example:
int i;
....
 x = i;  ( here i is read while x is written)
....
i = 10; ( here i is written)

every variable reference can be caught by DeclRefExpr but how to decide
modified variables in the statement?


*------------------------------------------------------------*
*Jignesh Vasoya*
248-Pampa Hostel,
IIT Madras,
India.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110320/8be84b2f/attachment.html>


More information about the cfe-dev mailing list