[cfe-dev] get initial value from AST node

John McCall rjmccall at apple.com
Thu Nov 4 08:06:26 PDT 2010


On Nov 3, 2010, at 8:02 PM, Pisit Makpaisit wrote:
> If I have VarDecl object that is integer declaration, How can I get initial value from it?

VarDecl::getAnyInitializer()

> If It's array of integer declaration, How can I get initial value of each elements?

Also VarDecl::getAnyInitializer().

John.



More information about the cfe-dev mailing list