Commit Graph

7260 Commits

Author SHA1 Message Date
Vladislav Shchapov
1f87b1c58d
Use fmt::formatter specialization for std::reference_wrapper to avoid undefined behavior (#4164)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2024-09-19 10:34:33 -07:00
Khanh H
ed8f8be70d
More chrono padding (#4161)
* Add padding modifier to day of year, duration's remains unpadded
* Add padding modifier for %m, %Y
2024-09-18 09:27:45 -07:00
Victor Zverovich
55a0a9cd62 Cleanup pragma detection 2024-09-17 19:46:30 -07:00
Victor Zverovich
5c926d9ff9 Remove FMT_UNCHECKED_ITERATOR 2024-09-17 19:40:29 -07:00
Victor Zverovich
8b024662d4 Remove unnecessary inheritance 2024-09-17 19:31:55 -07:00
Victor Zverovich
2f1424be90 Simplify handling of arrays 2024-09-17 19:05:43 -07:00
Victor Zverovich
239aa6911b Remove unwrap_named_arg 2024-09-16 20:46:47 -07:00
Victor Zverovich
497df6db61 Remove formattable 2024-09-16 20:32:27 -07:00
Victor Zverovich
a25e594f6a Remove range_mapper 2024-09-16 20:24:30 -07:00
Victor Zverovich
503dff93ec Simplify has_formatter 2024-09-16 20:15:54 -07:00
Victor Zverovich
3374a95b50 Simplify has_formatter 2024-09-16 20:08:52 -07:00
Victor Zverovich
0e62e5dc7c Simplify has_formatter 2024-09-16 19:53:31 -07:00
Victor Zverovich
7ce013971b Sync value ctors and type mapper 2024-09-16 19:23:08 -07:00
Yedidya Feldblum
07e70151d5 format std::reference_wrapper 2024-09-16 19:05:18 -07:00
Victor Zverovich
4197727712 Improve handling of unformattable args 2024-09-16 18:52:18 -07:00
Victor Zverovich
527e98e3f8 Remove unformattable 2024-09-15 17:28:27 -07:00
Victor Zverovich
8a19b2db77 arg_mapper -> type_mapper 2024-09-15 17:09:49 -07:00
Victor Zverovich
e97df46ae1 Cleanup type mapping 2024-09-15 16:18:21 -07:00
Victor Zverovich
39f1e0903a Remove FMT_MAP_API 2024-09-15 10:52:36 -07:00
Victor Zverovich
d832830f60 Cleanup type mapping 2024-09-15 09:58:09 -07:00
Victor Zverovich
b329ff194f Always detect encoding on Windows 2024-09-15 08:52:33 -07:00
Victor Zverovich
2af403ce64 Simplify type mapping 2024-09-14 21:21:49 -07:00
Victor Zverovich
b7513b1d00 Simplify type mapping 2024-09-14 20:23:42 -07:00
Victor Zverovich
761d35f763 Cleanup format_as handling 2024-09-14 19:34:58 -07:00
Victor Zverovich
545dc4148a Add value ctor taking name_arg 2024-09-14 10:33:15 -07:00
Victor Zverovich
3f5e45dd33 Simplify handling of _BitInt 2024-09-14 10:15:36 -07:00
Victor Zverovich
2e3b6fbd9f Remove redundant check 2024-09-14 09:48:33 -07:00
Victor Zverovich
a0328e1f9f Improve error reporting 2024-09-14 09:39:41 -07:00
Victor Zverovich
de28ef5f86 Remove make_arg 2024-09-14 09:18:47 -07:00
Victor Zverovich
2d5e561a6b Cleanup argument handling 2024-09-14 08:56:04 -07:00
Victor Zverovich
6537fb439c Update changelog 2024-09-14 08:14:22 -07:00
Victor Zverovich
50aac2ac92 Add reference to iterator_traits 2024-09-14 08:07:39 -07:00
Victor Zverovich
538d8777e5 Workaround a bug in libstdc++ 2024-09-14 07:49:10 -07:00
Victor Zverovich
0335312320 Demacrify UTF-8 check 2024-09-13 18:41:10 -07:00
Victor Zverovich
463fe65f17 Cleanup FMT_COMPILE_STRING 2024-09-12 19:57:50 -07:00
Victor Zverovich
1782a6eac0 Rename pragma macros 2024-09-12 19:20:32 -07:00
Victor Zverovich
b52fb98846 Fix no locale build 2024-09-11 20:37:44 -07:00
Victor Zverovich
b6a6ec7f1c FMT_EXCEPTIONS -> FMT_USE_EXCEPTIONS 2024-09-11 19:34:12 -07:00
Victor Zverovich
89999f1672 Simplify pragma 2024-09-11 18:52:56 -07:00
Victor Zverovich
b90b4bc981 Remove FMT_STATIC_THOUSANDS_SEPARATOR in favor of FMT_USE_LOCALE 2024-09-11 18:30:05 -07:00
Victor Zverovich
a1d6f9a973 Minor cleanup 2024-09-11 17:20:20 -07:00
Victor Zverovich
689ec7a087 Cleanup 2024-09-11 16:05:34 -07:00
Victor Zverovich
28143dc99d Cleanup chrono 2024-09-11 15:41:51 -07:00
Victor Zverovich
1bde49e545 Remove FMT_USE_USER_LITERALS 2024-09-11 11:27:27 -07:00
Amin Yahyaabadi
f924d16e47 fix: pass /utf-8 only if the compiler is MSVC at build time 2024-09-11 08:21:07 -07:00
Victor Zverovich
ab8f9d5b08 Cleanup format API 2024-09-11 07:52:19 -07:00
Victor Zverovich
6f62db098a Cleanup format API 2024-09-11 07:26:11 -07:00
Victor Zverovich
ab44ee7521 Avoid shadowing 2024-09-11 07:05:45 -07:00
Victor Zverovich
0d4e7e3fee Remove old workaround 2024-09-11 06:17:47 -07:00
Victor Zverovich
8ee89546ff Remove old workaround 2024-09-10 21:06:25 -07:00