7538 Commits

Author SHA1 Message Date
953cffa701 Replace memset with constexpr fill_n in bigint::align (#4471)
Use fill_n in place of memset in bigint::align to respect constexpr.
2025-06-23 16:18:16 -07:00
571c02d475 Add xchar support for std::byte formatter (#4480)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2025-06-23 14:02:11 -07:00
f4345467fc Fix compilation on clang-21 / libc++-21 (#4477)
`<cstdlib>` was not being included, so malloc and free were only declared
via transitive includes. Some includes changed in the latest libc++-21
build which broke fmt.

Also changed `malloc`/`free` to `std::malloc` and `std::free`, as
putting those symbols in the global namespace is optional for the
implementation when including `<cstdlib>`.
2025-06-21 07:28:14 -07:00
1ef8348070 Properly constrain detail::copy optimization (#4474) 2025-06-21 06:59:35 -07:00
a5dccffa56 Add double and float support to scan test
- Add double_type and float_type to scan_type enum
- Add double* and float* pointers to scan_arg union
- Add constructors for double and float scan arguments
- Add switch cases for double and float types in visit()
- Implement basic read() functions for floating-point parsing

This partially resolves the TODO comment 'more types' in scan.h by adding
support for the two most commonly needed floating-point types.
2025-06-21 06:57:20 -07:00
4a149f513f Test non-SSO constexpr string formatting 2025-06-20 07:10:12 -07:00
067bc479b4 Avoid redundant work when processing UTF-8 strings (#4475) 2025-06-20 06:39:06 -07:00
730fd4d9a7 Remove redundant tests 2025-06-08 08:46:22 -07:00
5860688d7e Enable constexpr support for fmt::format (fmtlib#3403) (#4456) 2025-06-07 07:16:49 -07:00
46be88bc1e Cleanup FP formatting 2025-06-01 09:15:20 -07:00
cc88914904 Export fmt::dynamic_format_arg_store in fmt module (#4459) 2025-06-01 08:50:14 -07:00
fc0c76a075 Handle large precision 2025-06-01 08:49:41 -07:00
6332a38529 Bump ossf/scorecard-action from 2.4.0 to 2.4.2 (#4462)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.0 to 2.4.2.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](62b2cac7ed...05b42c6244)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-version: 2.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-01 08:48:36 -07:00
02de29e003 Remove a reference to a compromised account 2025-05-30 18:24:56 -07:00
6d51c78c1e Cleanup FP formatting 2025-05-30 16:45:21 -07:00
0f4e9d0bde Cleanup FP formatting 2025-05-30 16:05:57 -07:00
d9d50495ac Optimize the default FP formatting 2025-05-30 13:45:04 -07:00
befbc5fdb8 Fix ADL lookup for memory_buffer 2025-05-26 09:44:35 -07:00
8aa1d6a9fb Minor cleanup 2025-05-25 10:14:24 -07:00
6d79757a38 Interpret precision as display width (#4443) 2025-05-25 08:42:47 -07:00
1ff0b7f5e1 Cleanup warning suppression 2025-05-24 09:37:01 -07:00
ea985e84f8 Remove some implicit conversions (#4447)
* fix: avoid an implicit cast

The "1" used for the bitshift is treated as int, and this causes an
implicit conversion to `UInt` when performing the logical and.
Explicitly casting the number to `UInt` avoids the warning.

* fix: avoid implicit conversions for indices

Some indices in `include/fmt/base.h` are expressed as `int` types, which
causes an implicit conversion to a `size_t` when they are actually used
as index. Explicitly casting the value avoids the warning.

* fix: avoid an implicit conversion using size_t

The number of bits is used to express the size of a buffer. Using an
`int` causes an implicit conversion warning, let's use a `size_t` which
is the right type for the job.
2025-05-24 09:22:03 -07:00
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
b723c021df Give useful error when misusing fmt::ptr. (#4453)
static_assert(bla, "") prints an empty message but not the condition with at least MSVC. Add an informative message.
2025-05-20 12:21:06 -07:00
3ba3c390fb Clarify that formatting of pointers is disallowed 2025-05-17 10:16:58 -07:00
ab161a71c6 Fix some typos in comments (#4448)
- s/instantion/instantiation/
- s/uninitalized/uninitialized/
- s/costexpr/constexpr/

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2025-05-15 06:28:14 -07:00
b5266fd3b9 Remove some redundant consts (#4445)
`constexpr` variables are implicitly `const`.
2025-05-12 10:41:58 -07:00
9b0ebd4435 Cleanup base-test 2025-05-11 15:42:08 -07:00
7af94e5597 Remove old gcc workaround 2025-05-11 12:35:28 -07:00
2924fcf8f6 Cleanup base-test 2025-05-11 10:36:42 -07:00
102752ad45 Update docs 2025-05-11 09:13:12 -07:00
a6cd72c9eb Cleanup base-test 2025-05-11 09:01:28 -07:00
07885271a1 Minor cleanup 2025-05-11 07:54:23 -07:00
4999416e5c Fix reference_wrapper ambiguity with format_as (#4434) 2025-05-10 11:15:45 -07:00
55a8f6a4be Change component prefix for NSIS compatibility (#4442) 2025-05-09 12:09:18 -07:00
eb9a95d426 Clarify that formatting of pointers is disallowed 2025-05-05 10:55:59 -07:00
d5c33e4f45 Make template parameter order consistent 2025-05-04 15:23:48 -07:00
a2225f2887 Remove unused include 2025-05-04 15:16:38 -07:00
b43b2f9537 Cleanup standard formatters 2025-05-04 13:04:06 -07:00
1312b4a162 Cleanup standard formatters 2025-05-04 12:37:28 -07:00
4404dc05dd Consolidate implementation details 2025-05-04 10:48:47 -07:00
7bb6fcb325 Bump version 2025-05-04 09:36:07 -07:00
59259a5fde Make a doc directory if it doesn't exist 2025-05-03 10:29:35 -07:00
542ea7c40b Clarify that Formatter parameter is deprecated 2025-05-03 10:28:46 -07:00
40626af88b Update version 11.2.0 2025-05-03 09:36:27 -07:00
7fdd6846ba Bump version 2025-05-03 09:02:35 -07:00
6caff7ed9c Cleanup test 2025-05-03 08:36:42 -07:00
71a5483875 Update changelog 2025-05-03 07:29:31 -07:00
448929d491 Update and apply clang-format 2025-05-03 07:29:31 -07:00
26d87edab1 Bump github/codeql-action from 3.28.13 to 3.28.16 (#4432)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.13 to 3.28.16.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](1b549b9259...28deaeda66)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 3.28.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-03 06:59:36 -07:00