[cfe-dev] Type cast in clang
rjmccall at apple.com
Tue Jan 11 21:52:45 PST 2011
On Jan 11, 2011, at 9:30 PM, Pisit Makpaisit wrote:
> Are there easy way to cast type from IntegerLiteral to FloatingLiteral and vice versa? How?
I'm not sure what you mean. An IntegerLiteral is never a FloatingLiteral. You can make an implicit conversion node which does a CK_IntegralToFloating conversion, and then you'll have a constant expression of floating-point type; but it still won't actually be a FloatingLiteral.
More information about the cfe-dev