diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-08-29 23:44:34 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-08-29 23:44:34 +0000 |
commit | e72f132097fc8026981acf3f36d165734f3341dd (patch) | |
tree | d5ab0e33717908d3fa6a662e411be92129e613af /clang/lib/AST | |
parent | 976241362128b4e33fbf3b36a91acb6309edb205 (diff) | |
download | bcm5719-llvm-e72f132097fc8026981acf3f36d165734f3341dd.tar.gz bcm5719-llvm-e72f132097fc8026981acf3f36d165734f3341dd.zip |
Change default # of digits for APFloat::toString
This is a re-commit of r189442; I'll follow up with clang changes.
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: 189624
Diffstat (limited to 'clang/lib/AST')
0 files changed, 0 insertions, 0 deletions