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

Rambo hunanlwm at sina.cn
Mon Nov 19 05:39:31 PST 2012


Hi,

Now I study this page,the link is 
http://clang.llvm.org/doxygen/classclang_1_1ArraySubscriptExpr.html
<http://clang.llvm.org/doxygen/classclang_1_1ArraySubscriptExpr.html>  and
be puzzled in this sentence "getBase() and getIdx() always present the
normalized view: A[4]. In this case getBase() returns "A" and getIdx()
returns "4"."The sentence can be found at "Expr * getLHS ()"
Can you tell me How it return "A" by getBase() and return "4" by getIdx().

Regards,
Rambo



--
View this message in context: http://clang-developers.42468.n3.nabble.com/getLHS-and-getRHS-tp4028364.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list