Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] CPPAstLiteralExpression.getKind() returning eUnspecified for int literals and eVoid for all other literals which are not char

void fn2(float x) {
x = 3.0;
int y;
y = 2;
char* yy;
yy = "zzzz";
double d;
d = 3.6;
}

In the above code, when I try to call getKind of the literals,

I get 
 
Name of kind eVoid  1 (for 3.0)
Type of kind org.eclipse.cdt.internal.core.dom.parser.cpp.CPPBasicType
Name of kind eWChar  3 (for "zzz")
Type of kind org.eclipse.cdt.internal.core.dom.parser.cpp.CPPArrayType
Name of kind eUnspecified  0  (for 2)
Type of kind org.eclipse.cdt.internal.core.dom.parser.cpp.CPPBasicType
Name of kind eVoid  1 (for 3.6)
Type of kind org.eclipse.cdt.internal.core.dom.parser.cpp.CPPBasicType



Anybody knows what the issue is here?

Regards
       Krishna

Back to the top