[cfe-dev] getLHS() and getRHS()

Tim Northover t.p.northover at gmail.com
Mon Nov 19 05:49:14 PST 2012


Hi Rambo,

> Can you tell me How it return "A" by getBase() and return "4" by getIdx().

If I've understood the question properly, getBase() returns the
pointer operand and getIdx() returns the integral one regardless of
which is outside the brackets. So even if you'd written "4[A]" the
type of A must be a pointer and getBase can tell which it is.

Tim.



More information about the cfe-dev mailing list