From b7fe7dfad16787cc356176891f87acb95f537776 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 7 May 2016 07:50:56 -0700 Subject: [PATCH] Update changelog --- ChangeLog.rst | 82 +++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 76 insertions(+), 6 deletions(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index f97cc82e..6b2c2d81 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -13,6 +13,52 @@ Including ``format.h`` from the ``cppformat`` directory is deprecated but works via a proxy header which will be removed in the next major version. +* Added support for `strftime `_-like + `date and time formatting `_ + (`#283 `_): + + .. code:: c++ + + #include "fmt/time.h" + + std::time_t t = std::time(nullptr); + // Prints "The date is 2016-04-29." (with the current date) + fmt::print("The date is {:%Y-%m-%d}.", *std::localtime(&t)); + +* Added support for `custom argument formatters + `_ + (`#235 `_). + +* Added support for locale-specific integer formatting with the ``n`` specifier + (`#305 `_): + + .. code:: c++ + + std::setlocale(LC_ALL, "en_US.utf8"); + fmt::print("cppformat: {:n}\n", 1234567); // prints 1,234,567 + +* Sign is now preserved when formatting an integer with an incorrect ``printf`` + format specifier (`#265 `_): + + .. code:: c++ + + fmt::printf("%lld", -42); // prints -42 + + Note that it would be an undefined behavior in ``std::printf``. + +* Length modifiers such as `ll` are now optional in printf formatting + functions and the correct type is determined automatically + (`#255 `_): + + .. code:: c++ + + fmt::printf("%d", std::numeric_limits::max()); + + Note that it would be an undefined behavior in ``std::printf``. + +* Added initial support for custom formatters + (`#231 `_). + * Fixed detection of user-defined literal support on Intel C++ compiler (`#311 `_, `#312 `_). @@ -27,17 +73,28 @@ * Compile test fixes (`#313 `_). Thanks to `@dean0x7d (Dean Moldovan) `_. -* Documentation fixes (`239 `_, - `258 `_, +* Documentation fixes (`#239 `_, + `#248 `_, + `#252 `_, + `#258 `_, + `#260 `_, + `#301 `_, `#309 `_). Thanks to `@ReadmeCritic `_ `@Gachapen (Magnus Bjerke Vik) `_ and `@jwilk (Jakub Wilk) `_. -* Fixed compiler warnings (`#256 `_, +* Fixed compiler and sanitizer warnings ( + `#244 `_, + `#256 `_, `#259 `_, + `#263 `_, + `#274 `_, `#277 `_, - `#286 `_). + `#286 `_, + `#291 `_, + `#296 `_, + `#308 `_) Thanks to `@mwinterb `_, `@pweiskircher (Patrik Weiskircher) `_, `@Naios `_. @@ -55,7 +112,8 @@ Thanks to `@newnon `_. * Changed ``ArgMap`` to be backed by a vector instead of a map. - (`#262 `_). + (`#261 `_, + `#262 `_). Thanks to `@mwinterb `_. * Added ``fprintf`` overload that writes to a ``std::ostream`` @@ -66,6 +124,16 @@ (`#245 `_). Thanks to `macdems (Maciek Dems) `_. +* Fixed compilation on Cygwin (`#304 `_). + +* Implemented a workaround for a bug in Apple LLVM version 4.2 of clang + (`#276 `_). + +* Implemented a workaround for Google Test bug + `#705 `_ on gcc 6 + (`#268 `_). + Thanks to `octoploid `_. + 2.1.1 - 2016-04-11 ------------------ @@ -417,7 +485,9 @@ Fixes `#229 `_, `#233 `_, `#234 `_, - `#236 `_). + `#236 `_, + `#281 `_, + `#289 `_). Thanks to `@seanmiddleditch (Sean Middleditch) `_, `@dixlorenz (Dix Lorenz) `_, `@CarterLi (李通洲) `_,