[cfe-dev] VarDecl hasinit() method not returning true for "function" initializer

yjninja mailme.yjoshi at rediffmail.com
Wed May 22 00:50:43 PDT 2013


Hi
I have a declaration and initializer to  a variable of the form int x =
getval() - 5;
But, VarDecl->hasinit() returns a false for the above declaration.

Can anyone help me on this please?

Much appreciated.



--
View this message in context: http://clang-developers.42468.n3.nabble.com/VarDecl-hasinit-method-not-returning-true-for-function-initializer-tp4032249.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list