[PATCH] Code cleanup in <locale>

Marshall Clow mclow.lists at gmail.com
Mon Nov 4 08:35:59 PST 2013


While looking into http://llvm.org/bugs/show_bug.cgi?id=17782, I noticed that there was a chunk of code in <locale> for dealing with floating point numbers.
This code was duplicated three times, once for float, double, and long double.  Hoist this into a template, and make the original call sites use the template.

No functionality change intended.

-- Marshall

Marshall Clow     Idio Software   <mailto:mclow.lists at gmail.com>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: do_get_floating_point.patch
Type: application/octet-stream
Size: 5900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131104/1b2a6b2d/attachment.obj>


More information about the cfe-commits mailing list