Victor Zverovich
a2289b8593
Fix the build
2025-10-19 10:30:42 -07:00
Nikita Tsarev
e28c371c0f
Fix ambiguous call to fprintf when compiling as a C++20 module ( #4548 )
2025-09-22 11:58:59 -07:00
Victor Zverovich
bfdef8b15d
Remove deprecated functions
2025-09-13 09:25:53 -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
489fd7ca4b
Simplify locale handling
2025-08-31 09:33:43 -07:00
Victor Zverovich
69324379f2
Mark detail::assert_fail as deprecated
2025-08-31 08:11:57 -07:00
Björn Schäpers
ff1caa58c9
Use FMT_THROW in report_error ( #4521 )
...
With exceptions: No change (if FMT_THROW is not user provided)
Without exceptions: Now also states where it comes from (report_error)
and uses fprintf instead of fputs.
My motivation is, now that I have my own fmt::assert_failed, also to get
rid of fputs for my embedded build.
2025-08-31 08:05:54 -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
b7b261977e
Simplify report_error
2025-08-24 08:30:17 -07:00
Victor Zverovich
61e0503daf
Merge workarounds for bogus MSVC warnings
2025-08-24 08:18:47 -07:00
Mattias Ljungström
9588458917
Silence unreachable code warnings in MSVC when FMT_USE_EXCEPTIONS are disabled. ( #4515 )
2025-08-17 09:35:28 -07:00
Victor Zverovich
e9ddc97b9a
Remove unnecesary constexpr and inline more
2025-08-10 08:40:35 -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
300ce75ca6
Handle invalid glibc FILE buffer
2025-07-06 11:17:16 -07:00
Andreas Reischuck
f7033da09e
Avoid include locale inline if C++20 modules are enabled ( #4451 )
...
MSVC hints with:
```
fmt\include\fmt\format-inl.h(26): warning C5244: '#include <locale>' in the purview of module 'fmt' appears erroneous. Consider moving that directive before the module declaration, or replace the textual inclusion with 'import <locale>;'.
```
Then fails the build with `type redefinition`.
2025-05-21 17:18:18 -07:00
Victor Chernyakin
b5266fd3b9
Remove some redundant consts ( #4445 )
...
`constexpr` variables are implicitly `const`.
2025-05-12 10:41:58 -07:00
Victor Zverovich
448929d491
Update and apply clang-format
2025-05-03 07:29:31 -07:00
Victor Zverovich
5199e0f885
Fix a flush issue on libstdc++
2025-03-30 10:54:14 -07:00
Thomas Khyn
577fd3be88
Fix TU-local entity exposition error in GCC 15
2025-02-26 11:14:15 -08:00
Victor Zverovich
21aa0956d4
Restore ABI compatibility
2025-01-10 17:36:09 -08:00
Victor Zverovich
fc1b0f3486
Clarify use of FMT_THROW in a comment
2025-01-05 07:31:19 -10:00
GamesTrap
1d066890c7
Resolve C4702 unreachable code warnings
2025-01-03 16:39:11 -08:00
Victor Zverovich
891c9a73ae
Cleanup format API
2024-09-22 15:52:55 -07:00
Victor Zverovich
ff92223549
Simplify locale handling
2024-09-22 10:21:19 -07:00
Victor Zverovich
80c4d42c66
Cleanup format.h
2024-09-22 08:20:26 -07:00
Victor Zverovich
b6a6ec7f1c
FMT_EXCEPTIONS -> FMT_USE_EXCEPTIONS
2024-09-11 19:34:12 -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
70643b2511
Don't use format_error if exceptions disabled
2024-09-08 15:56:36 -07:00
Victor Zverovich
967e2d177d
Cleanup
2024-09-08 15:43:11 -07:00
Victor Zverovich
c3344e21e2
Cleanup base API
2024-09-04 15:50:53 -07:00
Victor Zverovich
6aaf7f4b79
Suppress a gcc 13 warning
2024-09-04 11:43:12 -07:00
Victor Zverovich
b446cc9e67
fwrite_fully -> fwrite_all
2024-08-30 18:43:56 -07:00
Victor Zverovich
f213d83306
Disable locale more
2024-08-29 16:35:15 -07:00
Victor Zverovich
b3ccc2d210
Disable locale more
2024-08-29 15:08:43 -07:00
Victor Zverovich
e582d377c2
Simplify locale handling
2024-08-29 14:19:33 -07:00
Victor Zverovich
439b6d7212
Reenable print optimization
2024-07-21 08:05:07 -07:00
Victor Zverovich
92227c77a4
Improve support for non-POSIX platforms more
2024-07-08 14:00:00 -07:00
Victor Zverovich
486838f26f
Improve support for non-POSIX platforms
2024-07-08 11:18:44 -07:00
Matt Stafford
2c0d9e9409
Add a define to force the use of fallback_file
2024-06-21 09:42:02 -07:00
LoveSy
8687315e86
Guard more system headers by FMT_MODULE ( #4006 )
...
* Guard more system headers by `FMT_MODULE`
* Merge FMT_MODULE and FMT_IMPORT_STD
2024-06-14 10:53:51 -07:00
Victor Zverovich
1f436c646e
Cleanup locking/buffering
2024-05-12 09:34:17 -07:00
Matthias Moulin
116a9ce488
Added FMT_IMPORT_STD feature macro ( #3928 )
2024-04-10 11:48:32 -07:00
mtillmann0
13cfaa2ab0
Guard against usage of _isatty when header was not included ( #3880 )
...
* Guard against usage of _isatty when header was not included
* Rename FMT_WINDOWS_NO_WCHAR macro to FMT_USE_WRITE_CONSOLE
2024-03-08 13:34:46 -08:00
Victor Zverovich
3bc6cc1e63
Protect against locking formatters
2024-03-02 17:23:02 -08:00
Victor Zverovich
44c3fe1ebb
Fix handling of static separator
2024-02-09 15:58:56 -08:00
Victor Zverovich
28afff363c
Improve buffering
2024-01-27 16:20:34 -08:00