Dana Jansens
f6ca4ea199
Avoid a space in the UDL definition ( #3610 )
...
* Avoid a space in the UDL definition except on GCC before 4.9
Clang 18 has grown a warning about the space being deprecated which
is enabled by default in their nightly binaries. However GCC before 4.9
will reject the UDL definition unless there is a space there, so we need
to keep the space conditionally for it.
* Remove UDLs on GCC before 4.9 to simplify things
GCC before 4.9 rejects the syntax that is now
rejected on more modern compilers.
* Disable compile-error-test on GCC < 4.9
This avoids the UDL tests failing as GCC < 4.9 can not parse UDLs
without a space, but the space is malformed in modern compilers.
2023-09-18 08:09:42 -07:00
Gleb Mazovetskiy
a8a73da7e4
Add an option to avoid wchar APIs on Windows ( #3636 )
...
With this, fmt can be used on Windows 98 and the Original Xbox with:
set(FMT_OS OFF)
It is not exposed as a CMake option but one can define it manually
in the fmt subproject, e.g.:
target_compile_definitions(fmt PUBLIC FMT_WINDOWS_NO_WCHAR)
Fixes #3631
2023-09-17 08:49:51 -07:00
Victor Zverovich
aa3c5a4127
Clarify I/O error handling
2023-09-16 08:20:27 -07:00
Victor Zverovich
bfdf50d183
Minor cleanup
2023-09-16 08:16:59 -07:00
Chloe
571a9b7b26
Replace usage of C++17 library feature with C++11 ( #3638 )
2023-09-16 08:07:03 -07:00
Victor Zverovich
6c088be8ec
Cleanup handling of visibility
2023-09-16 07:40:08 -07:00
Vladislav Shchapov
016b1faede
Fix symbol leak ( #3627 )
...
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2023-09-16 07:26:36 -07:00
Dzmitry Ivaniuk
e25370093a
Remove unnecessary spaces ( #3642 )
2023-09-16 06:55:22 -07:00
Victor Zverovich
d4987546a4
Add an experimental nested formatter
2023-09-10 11:56:55 -07:00
Victor Zverovich
5bdce181f1
Mark styled_arg as a view to prevent lifetime issues
2023-09-09 08:16:45 -07:00
cyy
a4b7b24b7b
fix redundant redeclaration of ‘constexpr’ static data member ( #3630 )
2023-09-08 16:20:32 -07:00
Vinay Yadav
fac60bd4f5
Remove type cast as mxe(mingw32) compiler complains about useless-cast ( #3624 )
...
Remove type cast as mxe(mingw32) compiler complains about useless-cast
when FMT_PEDANTIC && FMT_WERROR options are enabled
"""
error: useless cast to type 'class fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender, char> >' [-Werror=useless-cast]
1449 | basic_format_args<buffer_context<char>>(args));
"""
2023-09-05 07:37:27 -07:00
dependabot[bot]
f5be4a8a9a
Bump actions/checkout from 3.5.3 to 4.0.0 ( #3623 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3.5.3 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](c85c95e3d7...3df4ab11eb
)
---
updated-dependencies:
- dependency-name: actions/checkout
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>
2023-09-04 11:24:28 -07:00
Victor Zverovich
84e6661517
Workaround a gcc 6.4 issue
2023-09-04 11:23:14 -07:00
Victor Zverovich
ac3240439c
Update dependabot.yml
2023-09-04 10:23:00 -07:00
dependabot[bot]
8894ae87fe
Bump github/codeql-action from 2.21.4 to 2.21.5 ( #3622 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.21.4 to 2.21.5.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](a09933a12a...00e563ead9
)
---
updated-dependencies:
- dependency-name: github/codeql-action
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>
2023-09-04 10:19:51 -07:00
Victor Zverovich
ca608547e5
Workaround a C++11 issue
2023-09-04 10:07:14 -07:00
Victor Zverovich
23cf4055a0
Simplify URLs
2023-09-04 10:00:13 -07:00
Victor Zverovich
46c8301ee9
Remove rst2md
2023-09-04 09:38:06 -07:00
Victor Zverovich
a79a979828
Cleanup ranges test
2023-09-04 09:19:40 -07:00
Victor Zverovich
457bb6a98f
Merge the copyright comment since there are many contributors
2023-09-04 09:09:01 -07:00
Victor Zverovich
61aef41110
Cleanup changelog
2023-09-04 09:05:07 -07:00
Victor Zverovich
2a45fd30fe
Drop the rst suffix from the license file
2023-09-04 08:18:03 -07:00
Victor Zverovich
24296cff1c
Update ChangeLog.md
2023-09-04 08:16:16 -07:00
Victor Zverovich
3d1d20a6ac
Update ChangeLog.md
2023-09-04 08:10:34 -07:00
Victor Zverovich
0302c527c6
Update ChangeLog.md
2023-09-04 07:59:30 -07:00
Victor Zverovich
154eccfeb1
Convert changelog to markdown for compatibility with release notes
2023-09-04 07:15:18 -07:00
Victor Zverovich
35dc5def30
Revert "Bump actions/checkout from 3.5.3 to 3.6.0 ( #3615 )"
...
This reverts commit e8259c5298
.
2023-09-04 07:12:32 -07:00
Victor Zverovich
e1fc481d65
Merge the copyright comment since there are many contributors
2023-09-04 06:54:07 -07:00
dependabot[bot]
e8259c5298
Bump actions/checkout from 3.5.3 to 3.6.0 ( #3615 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](c85c95e3d7...f43a0e5ff2
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-28 13:55:28 -07:00
Victor Zverovich
6379251554
Update version
2023-08-28 06:29:25 -07:00
Victor Zverovich
951fd9e66f
Update changelog
2023-08-28 06:28:15 -07:00
Victor Zverovich
be89b9a41e
Merge branch 'release' of github.com:fmtlib/fmt
2023-08-28 06:24:29 -07:00
Victor Zverovich
28e2d3b640
Bump version
2023-08-26 08:29:50 -07:00
Victor Zverovich
f5e54359df
Update version
2023-08-26 08:20:41 -07:00
Victor Zverovich
a003ab93cf
Update changelog
2023-08-26 08:18:55 -07:00
Alex Guteniev
9b74160817
atomic_flag
formatting (#3594 )
2023-08-25 08:06:10 -07:00
Victor Zverovich
a21690bdfa
Coding conventions
2023-08-25 07:46:32 -07:00
Victor Zverovich
c9efd8968c
Merge branch 'MathewBensonCode-master'
2023-08-25 07:44:44 -07:00
Mathew Benson
e786824053
Refactor Improvement on umul128 function
...
- Removal of direct access to members of uint128_fallback and instead
create the values at the callsite and pass them via the constructor of
uint128_fallback on the return statement.
2023-08-25 13:21:52 +03:00
Mathew Benson
2b20d7be6f
Refactor To remove friend function private access
...
- Remove umul128 friend function from uint128_fallback class using
non-const member access functions instead.
2023-08-24 00:55:43 +03:00
Mathew Benson
1f38ebbdb1
Add condition to include friend function in win32
2023-08-22 23:07:04 +03:00
Mathew Benson
e418179694
Fix for FMT_MODULE not compiling on GCC
2023-08-22 21:11:53 +03:00
dependabot[bot]
0bffed8957
Bump actions/checkout from 3.1.0 to 3.5.3 ( #3602 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3.1.0 to 3.5.3.
- [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/v3.1.0...c85c95e3d7251135ab7dc9ce3241c5835cc595a9 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 10:58:34 -07:00
lukester1975
cc077a5e3b
Fix FMT_NO_UNIQUE_ADDRESS
warning with clang-cl. ( #3600 )
...
See https://reviews.llvm.org/D110485 for info.
2023-08-20 10:21:50 -07:00
Mathew Benson
a992b3d1fc
Fix for Compilation Error When Using FMT_MODULE ( #3597 )
...
* FMT_EXPORT reorganization to fix compile error
- When compiling with FMT_MODULE, an error was being generated due to
use of FMT_EXPORT on a declaration within FMT_BEGIN_EXPORT and
FMT_END_EXPORT on `include/core.h`
- On `include/format.h` had to exclude the function vformat_to by ending
the export block just before it and beginning a new one after it.
2023-08-20 07:32:36 -07:00
Victor Zverovich
af1b768cc7
Update changelog
2023-08-19 08:22:50 -07:00
Victor Zverovich
2a7c45b54e
Update changelog
2023-08-19 08:19:01 -07:00
YuHuanTin
bd868f3a51
Improve compatibility with GBK #3598 ( #3599 )
2023-08-19 08:13:20 -07:00
Victor Zverovich
bbb784fb1b
Fix a gcc error about partial specialization after instantiation
2023-08-19 07:22:40 -07:00