[cfe-dev] ExprLoc of ArraySubscriptExpr wrong?
Alexei Svitkine
alexei.svitkine at gmail.com
Tue Jan 13 10:38:50 PST 2009
I have an ArraySubscriptExpr that looks like this:
argv[0];
Which becomes to:
(ArraySubscriptExpr 0x1c06d70 'char *'
(DeclRefExpr 0x1c06d30 'char **' ParmVar='argv' 0x1c06c50)
(IntegerLiteral 0x1c06d50 'int' 0))
When I call getExprLoc().getRawFilePos() on this, I get the location
that corresponds to the "]" in argv[0]; which seems inconsistent with
other Exprs which give the start the of the expression instead.
Is this a bug?
-Alexei
More information about the cfe-dev
mailing list