[cfe-dev] pre-process and parsing, getting components of DeclStmt
sebastian.redl at getdesigned.at
Wed Oct 6 06:52:37 CDT 2010
On 06.10.2010 11:58, Ilya Mirsky wrote:
> In a DeclStmt of the form "int a = b + c", how can I access the
> assignment components (Binary Operator +, b, c)?Any help or direction
> will be appreciated.
There's no assignment, there's only initialization. Get the DeclGroup
for the DeclStmt, get its first (and only) decl, do a checked cast to
VarDecl, and get its initializer. That should give you the BinaryOperator.
More information about the cfe-dev