[cfe-commits] [cfe-dev] [PATCH] rewrite floats more precisely

Benjamin Kramer benny.kra at gmail.com
Thu Sep 20 07:10:02 PDT 2012


On 09.08.2012, at 12:39, Olaf Krzikalla <Olaf.Krzikalla at tu-dresden.de> wrote:

> Hi @clang,
> 
> attached there is a patch fixing some issues regarding rewriting of
> floats. First, if APFloat::toString yields a string which could be an
> integer, a trailing point is added. This fixes the rewriting of
> expressions like "1./3.".
> Second the proper suffixes are appended. Maybe someone can add the
> proper suffix for half-floats too.

Your patch broke several tests and didn't account for the implicit long double suffix in C++11 user defined literals. I fixed those and committed them along with your patch in r164303.

- Ben



More information about the cfe-commits mailing list