Commit Graph
2875 Commits
Author SHA1 Message Date
Victor Zverovich c36dd825ba Remove unnecessary forwarding 2023-05-12 06:45:49 -07:00
Victor Zverovich 130b8fcdb9 Reduce template instantiations 2023-05-11 20:18:34 -07:00
Victor Zverovich a47e8419be Cleanup the core API 2023-05-11 19:07:56 -07:00
Victor Zverovich ea49c91cd1 Cleanup argument construction 2023-05-11 18:43:39 -07:00
Patrick Geltinger d7592ad8bf Fix time_point formatting for durations with certain ratios (#3430)
* Fix time_point formatting

* Add timestamps_ratios tests
2023-05-11 15:25:21 -07:00
Victor Zverovich 5780269d57 Improve API safety 2023-05-11 10:19:56 -07:00
Victor Zverovich b471192160 Fix a comment 2023-05-11 09:39:53 -07:00
Victor Zverovich 8f18e72df5 Improve API safety 2023-05-11 06:32:58 -07:00
Victor Zverovich 93d7cb12f1 Fix formatting 2023-05-10 16:29:47 -07:00
Victor Zverovich 0e4278717b Remove unused macro 2023-05-10 16:27:16 -07:00
Victor Zverovich 93a30a0746 unicode_to_utf8 -> to_utf8 since both sides of conversion are Unicode 2023-05-10 16:26:02 -07:00
Victor Zverovich 5cf2342aa2 Bump version 2023-05-09 15:37:01 -07:00
Victor Zverovich c984df9815 Remove an unused function from internal class 2023-05-08 13:35:23 -07:00
Victor Zverovich 1e0ce567ef Fix formatting of paths containing invalid Unicode 2023-05-07 10:05:15 -07:00
Vladislav Shchapov dde8cf3bb7 Unification utf16/utf32 to utf8 conversion
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2023-05-06 08:32:51 -07:00
Victor Zverovich f61f15cc5b Suppress a false positive in gcc 2023-05-06 06:54:30 -07:00
Daniela Engert 192df93d7b modules missing pieces (#3399)
- don't export names from `detail`
- put more headers into the global module fragment
- support MSYS2 and Clang
2023-05-05 10:21:18 -07:00
Victor Zverovich 02cae7e48a Improve handling of Unicode in paths 2023-04-30 09:58:59 -07:00
Daniela Engert f449ca0525 Name vfprintf clashes with the identically named declaration in 'stdio.h' if that happens to be #included into the same TU. Fix this by using qualified name lookup instead of unqualified lookup that also enables ADL. (#3400) 2023-04-23 07:10:57 -07:00
Victor Zverovich 18154cc903 Simplify print 2023-04-22 14:03:40 -07:00
Daniela Engert c039389223 export names only once (#3392)
names declared to be exported at the point of introduction into a namespace *must not* be (re-)declared as exported later in the TU, e.g. when they are redeclared, defined, or specialized. [module.export]/6

Drive-by fix found during module testing: add a missing `detail::` name qualification
2023-04-22 06:21:06 -07:00
Louis Wilson 93e81bb5d8 Fix C4365 (signed/unsigned mismatch) warning on 32-bit Windows (#3398) 2023-04-20 17:36:05 -07:00
Daniela Engert 18e7a2532b Remove obsolete msvc workarounds (#3388)
This bug in the modules implementation is fixed since at least msvc 19.34, possibly even earlier like 19.32.
2023-04-19 17:09:51 -07:00
Daniela Engert 0489c19dcb fix and improve module (#3386)
* export public documented API
* don't export `namespace detail`
* add `std.h` into module
* add missing namespace qualification in `xchar.h`
* fix call to `detail::get_iterator` in `xchar.h`
* fix ambiguous overload of `detail::isfinite` in `chrono.h`
2023-04-18 06:47:01 -07:00
Victor Zverovich d8a2698e6c Fix compilation as a C++20 module with gcc 13 2023-04-14 09:49:07 -07:00
June Liu 33f7150778 Fix error C2668 on msvc (#3378) 2023-04-11 06:27:28 -07:00
Victor Zverovich c98e5a08a4 Fix modular build on clang 2023-04-10 12:07:25 -07:00
Victor Zverovich 77eeb71830 Remove unused headers 2023-04-10 09:08:19 -07:00
Victor Zverovich 1d0257e4c0 FMT_MODULE_EXPORT_* -> FMT_EXPORT_* 2023-04-10 08:33:39 -07:00
Victor Zverovich 4613d48fd3 FMT_EXPORT -> FMT_LIB_EXPORT 2023-04-10 08:24:23 -07:00
Victor Zverovich 4a4a2a2bd6 Fix diagnostics 2023-04-09 09:30:20 -07:00
Victor Zverovich fce74caa15 Disable problematic implicit conversions 2023-04-09 09:08:46 -07:00
Victor Zverovich 02bf4d1c1c Disable to_string_view ADL 2023-04-09 08:49:05 -07:00
Victor Zverovich 466e0650ec Remove problematic workaround 2023-04-09 08:04:11 -07:00
Björn Schäpers 7f46cb75b8 ranges: Fix extra semi (#3374) 2023-04-06 08:31:07 -07:00
Vladislav Shchapov 97aedeab48 Workaround a double-double hexfloat format (#3366)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2023-04-01 07:19:23 -07:00
Victor Zverovich bce8d4ed08 Remove stray comment 2023-03-27 11:04:00 -07:00
Victor Zverovich a91c7b286d Cleanup the core API 2023-03-26 21:07:26 -07:00
Victor Zverovich 19c074e477 Remove deprecated fallback formatter 2023-03-26 08:45:06 -07:00
Victor Zverovich 41cfc739fe Generalize format_as 2023-03-26 07:37:51 -07:00
Victor Zverovich 6002ddf825 Remove a deprecated option 2023-03-19 12:17:43 -07:00
Victor Zverovich 6549ffde8e Improve format_as safety 2023-03-19 12:09:54 -07:00
Alecto Irene Perez d9bc5f1320 Fix code causing spurious Wstringop-overflow warning
See #2989, #3054, and others
2023-03-18 09:29:54 -07:00
Victor Zverovich 9c5cd998d1 Remove unused functions 2023-03-18 08:40:16 -07:00
Barry Revzin 93bfa05382 %T is %H:%M:%S (#3349) 2023-03-18 07:16:22 -07:00
TheOmegaCarrotandtheomegacarrot d8e1c4265a fix case of variant which is valueless by exception (#3347)
Co-authored-by: theomegacarrot <theomegacarrot@gmail.com>
2023-03-18 07:07:06 -07:00
tmartin-gh e1720c0e51 Fix CUDA nvcc warning fmt/include/fmt/core.h(295): warning #1675-D: unrecognized GCC pragma (#3352) 2023-03-17 11:35:35 -07:00
Gleb Mazovetskiy 7f882918eb write_floating_seconds: Fall back to ::round (#3343)
On some toolchains, `std::round` is not available.

Fixes #3342
2023-03-12 09:34:19 -07:00
Shawn Zhong cbc7b8d5c1 Cleanup dead variable (#3338) 2023-03-10 09:17:43 -08:00
Vladislav Shchapov 050293646f Path is not escaped twice in the debug mode (#3321)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2023-03-05 08:01:06 -08:00