[cfe-dev] Get ArraySubcriptExpr

Zheng Wang jason.wangz at gmail.com
Sat May 7 04:53:14 PDT 2011


Hi,

Assume I have the following statment:

u[i][j+1][k][m] = a + b +c;

How can I get all the 4 array subscription expessions at the same time? I
have tried the implement a VisitArraySubscriptExpr() funciton, but I can
only get each subscription expression each time.
This means I can only get i, j + 1, k, and m one by one.

Is there any easy way to the all the subscription expressions at the same
time?

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


More information about the cfe-dev mailing list