[cfe-dev] how VisitBin## methods for binary operators are called

Rajendra rks at cse.iitb.ac.in
Sat Jan 5 21:34:20 PST 2013


Hi, 

Can someone help on how VisitBin## methods are called and how to walk up in
Visit methods? 

I want to understand in case of pre-order DFS traversal by clang, how to
walk up in the tree?
e.g. for expression x + y + z, I am creating an abstract expression whenever
I see an arithmetic operator, how to walk up in tree to get (x+y) as lhs and
z as rhs operand?
I need this for x = x + y + z; to get abstract expression for x+y+z  as rhs
of assignment operator.



--
View this message in context: http://clang-developers.42468.n3.nabble.com/how-VisitBin-methods-for-binary-operators-are-called-tp4029415p4029429.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list