[cfe-dev] DeclRefExpr: how to distinguish between variable ref and function ref?
jignesh vasoya
jigneshvasoya at gmail.com
Mon Mar 7 09:36:36 PST 2011
Hi,
I am traversing C source code using ASTConsumer.
bool Visit(Stmt *S)
{
.........
........
if( isa<DeclRefExpr>(S) )
ProcessDeclRefExpr(cast<DeclRefExpr>(S));
..........
........
}
Whenever any variable or function is referred if condition(given in above
code fragment ) evaluates to true
and it is processed by ProcessDeclRefExpr function.
I want to handle variable and functions ref differently.
How can i distinguish between variable and function ref??????/
*------------------------------------------------------------*
*Jignesh Vasoya*
248-Pampa Hostel,
IIT Madras,
India.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110307/05d2b002/attachment.html>
More information about the cfe-dev
mailing list