Commit Graph

7609 Commits

Author SHA1 Message Date
Fatih BAKIR 18e160eb4c Add missing include for crtdbg.h (#4534)
This header uses _CRT_ASSERT, which is defined in crtdbg.h but does not
include it, causing a build error in format-test.cc

Fixes the issue by including the header
2025-09-08 09:37:43 -07:00
Victor Zverovich 53d006abfd Update changelog 2025-09-07 09:20:53 -07:00
Victor Zverovich 63bef33999 Update changelog 2025-09-07 08:36:07 -07:00
Victor Zverovich d7cbfef11c Update changelog 2025-09-07 08:29:03 -07:00
Victor Zverovich 26b033e239 Update changelog 2025-09-07 07:54:59 -07:00
Victor Zverovich 609188cb92 Cleanup macro definitions 2025-09-07 07:44:49 -07:00
Victor Zverovich 84b9c00711 Update changelog 2025-09-07 07:44:11 -07:00
Marcel 9908d00037 Delete Bazel support (#4530) 2025-09-05 15:53:13 -07:00
Anas 0a94e06750 Combined emphases into a single escape sequence (#4528) 2025-09-05 09:50:56 -07:00
Victor Zverovich 053d262944 Add .clang-tidy 2025-09-03 11:05:49 -07:00
Victor Zverovich e72e43af1c Apply clang-tidy 2025-09-03 11:05:41 -07:00
Victor Chernyakin 80549a630e Avoid repeated call to GetLastError in file::size (#4522) 2025-09-03 08:38:31 -07:00
dependabot[bot] f17b9aa44c Bump actions/checkout from 4.2.0 to 5.0.0 (#4523)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 5.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/d632683dd7b4114ad314bca15554477dd762a938...08c6903cd8c0fde910a37f88322edcfb5dd907a8)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-02 09:04:42 -07:00
Victor Zverovich 882702c219 Apply clang-tidy 2025-09-01 12:21:17 -07:00
Victor Zverovich 16d371b649 Apply clang-tidy 2025-09-01 12:00:35 -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 20e0d6d8dd Update docs 2025-09-01 10:15:54 -07:00
Victor Zverovich 8ba99c0f05 Update docs 2025-09-01 10:04:54 -07:00
Victor Zverovich 656228fbee Update docs 2025-09-01 09:50:45 -07:00
Victor Zverovich 02fb76d69b Add FMT_STATIC_FORMAT 2025-09-01 09:15:32 -07:00
Victor Zverovich a57f196cad Apply coding conventions 2025-09-01 07:24:08 -07:00
Victor Zverovich a75e8af487 Update docs 2025-08-31 10:51:29 -07:00
Victor Zverovich e129591f02 Update changelog 2025-08-31 10:24:40 -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
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 43c88d00ae Update changelog 2025-08-24 10:08:53 -07:00
Victor Zverovich 33a7d55c9b Update changelog 2025-08-24 10:04:00 -07:00
Victor Zverovich 8e4676e4a5 Remove deprecated template parameter 2025-08-24 09:52:17 -07:00
Victor Zverovich b5c4d25cd1 Rename is_char to is_code_unit 2025-08-24 09:30:50 -07:00
Victor Zverovich a77efa4b4a Move is_*char to detail 2025-08-24 09:16:18 -07:00
Victor Zverovich e7e71009c7 Make FP formatting compatible with exotic chars 2025-08-24 08:49:54 -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
Victor Zverovich 72c82296d6 Put FMT_END_* together 2025-08-17 12:25:40 -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 8a8ff6177c Remove deprecated and undocumented has_formatter 2025-08-17 10:52:45 -07:00
Victor Zverovich 5b99b334f0 Remove redundant else 2025-08-17 10:03:01 -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 f91dc80f4c Minor cleanup 2025-08-16 14:49:26 -07:00
Victor Zverovich 4120581167 Minor cleanup 2025-08-16 14:20:06 -07:00
Victor Zverovich 7ffc3ca15b Minor cleanup 2025-08-16 12:20:02 -07:00
Victor Zverovich e9ddc97b9a Remove unnecesary constexpr and inline more 2025-08-10 08:40:35 -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 Chernyakin 8f3a965186 Refactor ansi_color_escape to track size instead of using a null terminator (#4511) 2025-08-09 08:08:41 -07:00