Victor Zverovich
71c63792dd
Move _BitInt to format.h
2026-01-29 21:54:47 -08:00
Victor Zverovich
26c6b1c23d
Move copy to format.h
2026-01-29 21:30:20 -08:00
Victor Zverovich
45f230b9b2
Remove const_check
2026-01-29 20:18:18 -08:00
Victor Zverovich
99803085d4
Start phasing out const_check
2026-01-29 17:02:40 -08:00
Victor Zverovich
483eddc851
Merge workarounds for MSVC bugs
2026-01-29 16:42:57 -08:00
Victor Zverovich
9237a45439
Add an alias for unsigned long long
2026-01-29 09:47:49 -08:00
Victor Zverovich
8eec491424
Early exit
2026-01-26 06:30:00 -08:00
Victor Zverovich
8ee3a56d12
Move <new> include to the implementation
2026-01-25 18:28:19 -08:00
Victor Zverovich
25df8ccd96
Fix usage of memset
2026-01-25 17:47:40 -08:00
Victor Zverovich
a6eb4a511c
Use memcpy consistently
2026-01-25 17:38:54 -08:00
Kağan Can Şit
d58e3f08d0
Use std::move ( #4656 )
2026-01-20 10:42:23 -08:00
Victor Zverovich
0e078f6ed0
Use _M_AMD64 instead of legacy _M_X64
2026-01-06 12:46:02 -08:00
Aaron Gokaslan
605dd2a1d9
Make digits2_i noexcept to match digits2 function ( #4639 )
...
Add noexcept specifier to digits2_i too make it match 3269c1cea5
2025-12-30 11:34:08 -08:00
user202729
7ad8004d57
Speed up do_format_decimal ( #4630 )
2025-12-25 08:21:20 -08:00
user202729
2e819a11f2
Some documentation improvements ( #4631 )
2025-12-17 06:53:01 -08:00
Victor Zverovich
3269c1cea5
Minor improvement to digits2
2025-12-09 18:27:06 -08:00
Victor Zverovich
5bc56e24a9
Update clang-format to version 21
2025-11-28 20:05:18 -08:00
bigmoonbit
2727215c11
chore: minor improvement for docs ( #4616 )
...
Signed-off-by: bigmoonbit <bigmoonbit@outlook.com >
2025-11-28 12:55:25 -08:00
Victor Zverovich
a731c73fd5
Make FMT_USE_FULL_CACHE_DRAGONBOX depend on __OPTIMIZE_SIZE__ by default
...
Thanks to Matthias Kretz for the idea.
2025-11-23 09:03:02 -08:00
friedkeenan
9f197b22ae
Make FMT_STRING redundant when FMT_USE_CONSTEVAL is enabled ( #4612 )
2025-11-22 14:36:29 -08:00
Victor Zverovich
f20b16617e
Fix formatting
2025-11-22 13:48:03 -08:00
Victor Zverovich
706fecea30
Apply clang-format
2025-11-22 06:45:50 -08:00
Victor Zverovich
1122268510
Make path formatting lossless with WTF-8
2025-11-05 10:59:06 -10:00
J. Berger
c3be070b7e
When using MSVC x86 to compile v12.0.0 or v12.1.0, conversions from __int64 to a 32bit unsigned int trigger warnings. ( #4594 )
...
This is a follow-up for PR #4572 .
2025-11-01 09:38:30 -07:00
Vladislav Shchapov
85f6ecc7a0
Add format_as support for std::variant and std::expected formatters ( #4575 )
...
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru >
2025-10-18 14:05:21 -07:00
Justin Riddell
31bed1bb65
Fix module fmt::join<string_view> ( #4577 )
...
FMT_USE_STRING_VIEW define was incorrectly not being defined when using
modules, so there was no appropriate formatter specialization for
std::string_view
Fixes #4379
2025-10-16 11:25:19 -07:00
LiangHu
8eebb4334b
[fix] #4565 When using MSVC to compile v12.0.0, many compilation warn… ( #4572 )
2025-10-12 10:56:13 -07:00
rohitsutreja
b77a751625
Revert std::malloc/std::free to global malloc/free ( #4569 ) ( #4570 )
2025-10-10 09:37:05 -07:00
Victor Zverovich
a3b3d7ed46
Simplify duration cast
2025-09-13 11:32:03 -07:00
Victor Zverovich
83189189a1
Remove get_dynamic_spec
2025-09-13 10:38:50 -07:00
Victor Zverovich
619b3a5aa0
Suppress a false positive in clang-tidy
2025-09-01 11:42:00 -07:00
Victor Zverovich
79c7f8a70b
Apply clang-tidy
2025-09-01 10:49:49 -07:00
Victor Zverovich
13d4f8469e
Remove deprecated vformat_to
2025-08-31 10:02:36 -07:00
Victor Zverovich
e2f89e6d21
Remove deprecated aliases
2025-08-31 09:40:11 -07:00
Victor Zverovich
489fd7ca4b
Simplify locale handling
2025-08-31 09:33:43 -07:00
Björn Schäpers
e181e94140
Add FMT_CUSTOM_ASSERT_FAIL ( #4505 )
...
That way one can provide ones own implementation for assert_fail, which
is moved out of the detail namespace. For binary compatibility the
detail version stays to call the outer version.
2025-08-25 09:02:00 -07:00
Victor Zverovich
e7e71009c7
Make FP formatting compatible with exotic chars
2025-08-24 08:49:54 -07:00
Victor Zverovich
61e0503daf
Merge workarounds for bogus MSVC warnings
2025-08-24 08:18:47 -07:00
Victor Zverovich
a402614e8c
Remove deprecated aliases
2025-08-17 11:52:00 -07:00
Victor Zverovich
e719c43cc6
Apply coding conventions
2025-08-17 10:59:16 -07:00
Victor Zverovich
5b99b334f0
Remove redundant else
2025-08-17 10:03:01 -07:00
Victor Zverovich
7ffc3ca15b
Minor cleanup
2025-08-16 12:20:02 -07:00
Murat Toprak
0d145936ec
Handle allocator propagation in basic_memory_buffer::move, Fix #4487 ( #4490 )
...
* Handle allocator propagation in basic_memory_buffer::move
Update `basic_memory_buffer::move` to respect `propagate_on_container_move_assignment`allocator trait.
If the allocator should not propagate and differs from the target's allocator,
fallback to copying the buffer instead of transferring ownership.
This avoids potential allocator mismatch issues and ensures exception safety.
* Add test cases for the updated move ctor
- Added two test cases `move_ctor_inline_buffer_non_propagating` and `move_ctor_dynamic_buffer_non_propagating`
- Added `PropageteOnMove` template parameter to `allocator_ref` class to be compatible with the old test cases
- `allocator_ref` now implements `!=` and `==` operators
2025-08-09 08:14:15 -07:00
Victor Zverovich
add164f6b3
Optimize the default FP formatting
2025-08-03 12:46:38 -07:00
Victor Zverovich
23059d558e
Fix exponent size computation
2025-08-03 10:00:24 -07:00
Victor Zverovich
505cc3d0c2
Simplify remove_trailing_zeros
2025-08-03 08:45:48 -07:00
Victor Zverovich
b8a502615d
Revert "Optimize the default FP formatting"
...
This reverts commit 93f03953af .
2025-08-03 07:40:13 -07:00
Victor Zverovich
93f03953af
Optimize the default FP formatting
2025-07-27 08:56:07 -07:00
Victor Zverovich
7d29ebe4af
Minor cleanup
2025-07-12 07:09:38 -07:00
Victor Chernyakin
2fa3e1a1bb
Fix interaction between debug presentation, precision, and width for strings ( #4478 )
2025-07-04 07:33:47 -07:00