diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2013-08-28 05:23:51 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2013-08-28 05:23:51 +0000 |
| commit | 14cede282958c4f6162239b58ff7395223435cfb (patch) | |
| tree | b934dd88c2b0794dfdf842efc8974cca0334fdf2 /clang/unittests/Format/FormatTest.cpp | |
| parent | 108c46a7bf92342aa1661c36e4b85cd2b24d7f4e (diff) | |
| download | bcm5719-llvm-14cede282958c4f6162239b58ff7395223435cfb.tar.gz bcm5719-llvm-14cede282958c4f6162239b58ff7395223435cfb.zip | |
Change default # of digits for APFloat::toString
The previous default was almost, but not quite enough digits to
represent a floating-point value in a manner which preserves the
representation when it's read back in. The larger default is much
less confusing.
I spent some time looking into printing exactly the right number of
digits if a precision isn't specified, but it's kind of complicated,
and I'm not really sure I understand what APFloat::toString is supposed
to output for FormatPrecision != 0 (or maybe the current API specification
is just silly, not sure which). I have a WIP patch if anyone is interested.
llvm-svn: 189442
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
0 files changed, 0 insertions, 0 deletions

