[cfe-dev] FW: StmtPrinter long double support.

Chris Lattner clattner at apple.com
Sat Jun 7 18:55:24 PDT 2008


On Jun 7, 2008, at 4:12 PM, Jean-Daniel Dupas wrote:
>> I implemented this, thanks Dale.  As a note, the preferred list for
>> clang discussion is on cfe-dev.  No harm in using llvmdev though.
>
> Sorry, I realised that this was not the best list afterward.
>
> An other question about long double printing, shouldn't the printer  
> append a 'L' suffix to long double literal ? As the printer does not  
> output an exact value (due to the convertion to double), it will at  
> least helps to defined that the value was correctly interpreted as a  
> long double.

Sure, the -ast-print output should do that.  The -ast-dump output is  
ok, because it includes the type in the dump.  Note that -ast-print is  
incorrect for other reasons. It doesn't print the value in full  
precision, just an approximation as double.

-Chris



More information about the cfe-dev mailing list