[cfe-dev] get value of struct's member

huc1985 huc1985 at 163.com
Wed Mar 20 23:07:14 PDT 2013


I'm using a RecursiveASTVisitor and implementing its VisitCallExpr() method. 
How can I get the value of struct's member? 

bool VisitCallExpr(CallExpr *expr)
{
    for (int i=0;i<expr->getNumArgs();i++)
        {
            Expr* ex = expr->getArg(i);
            if (ex->getType()->isStructureType())
            {
                //get the value of struct's member 
            }
        }
}

Thanks!




--
View this message in context: http://clang-developers.42468.n3.nabble.com/get-value-of-struct-s-member-tp4031074.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list