Commit Graph

6250 Commits

Author SHA1 Message Date
Victor Zverovich
31c2c5679e Cleanup formatters 2023-07-20 15:57:43 -07:00
Victor Zverovich
b2728a3170 Improve path formatter 2023-07-20 15:25:35 -07:00
Victor Zverovich
77e0b0e228 Cleanup chrono formatter 2023-07-20 15:00:59 -07:00
Victor Zverovich
e475859042 Fix overspecified tests 2023-07-20 14:09:22 -07:00
Victor Zverovich
436c131d4c Optimize compiled format_to_n 2023-07-20 12:35:01 -07:00
Victor Zverovich
388bc296b7 Fix fixed formatting of small long doubles 2023-07-20 12:06:05 -07:00
Victor Zverovich
95e1ea5737 Clarify requirement on compiled formatter 2023-07-20 10:24:02 -07:00
Victor Zverovich
fb97cb2318 Suppress a bogus stringop-overflow warning 2023-07-20 09:53:54 -07:00
Victor Zverovich
dd5a9691f9 Clarify that data is not null-terminated 2023-07-20 07:36:30 -07:00
Kieran Clancy
72dc4491ea
Fix format_string_checker initialisation order (#3542)
Linter (clang-tidy) complains about uninitialised fields in
format_string_checker since types_ is passed to context_ before being
initialised. Fixes #3541.
2023-07-20 07:30:45 -07:00
Victor Zverovich
9bea6ec04a Don't use deprecated checked_array_iterator 2023-07-20 07:12:06 -07:00
Victor Zverovich
661b23edeb Call parse on empty specs at compile time 2023-07-15 22:20:29 -07:00
Victor Zverovich
8e87d3a8be
Fix include 2023-07-15 09:02:19 -07:00
Alta
a474916560
Update CMakeLists.txt (#3523) 2023-07-05 06:38:38 -07:00
Barry Revzin
de4705f84d
Trying to improve errors in the unformattable case (#3478) 2023-07-01 06:46:04 -07:00
Mike Crowe
e4c8cfe38e
README: Add link to merged clang-tidy check (#3515)
A much-improved version of the main clang-tidy-fmt check for converting
printf and fprintf has landed in upstream LLVM. It converts to
std::print by default, but can be configured to convert to fmt::print
instead. It makes more sense for the README to point to that version
instead now.
2023-06-30 15:49:36 -07:00
Victor Zverovich
606f85f8b2 Workaround brain-damaged conversions 2023-06-26 16:06:24 -07:00
Tobias Schlüter
a331dbfb65
Fix type in assert message. (#3508)
Reviewed all strings in the file and found no other typos.
2023-06-26 11:35:29 -07:00
Petr Mánek
13156e54bf
Revert "add ability to build Apple framework using CMAKE_FRAMEWORK" (#3496)
This reverts commit ae25f7968e.

Co-authored-by: Petr Manek <1252039-petrmanek@users.noreply.gitlab.com>
2023-06-18 20:41:07 -07:00
Victor Zverovich
9158bea1e1 Remove old grisu tests 2023-06-18 18:15:09 +03:00
Vladislav Shchapov
dd17f89a16
Fix for issue #3492 (#3493)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2023-06-16 02:20:40 -07:00
Victor Zverovich
1daae555b3 Optimize format string compilation 2023-06-15 10:28:23 +03:00
Victor Zverovich
6ad301235f Optimize code unit output in compiled format 2023-06-14 21:13:26 +03:00
Victor Zverovich
8732ad8773 Update docs 2023-06-13 19:24:18 +03:00
Victor Zverovich
5afb1821a9 Update docs 2023-06-13 18:58:15 +03:00
Victor Zverovich
a81135f2c8 Fix a link 2023-06-13 18:39:00 +03:00
Victor Zverovich
dfc34821ad Update docs 2023-06-13 18:33:36 +03:00
Victor Zverovich
0765e7284c Update docs 2023-06-13 18:12:27 +03:00
Victor Zverovich
977d887a4e Suppress a bogus warning 2023-06-13 14:01:46 +03:00
Minty-Meeo
c86fe0b8d3
Give basic_memory_buffer allocator [[no_unique_address]] (#3485)
This allows stateless allocators to take up no space while still avoiding the empty base class optimization.
2023-06-13 01:22:19 -07:00
dependabot[bot]
5dbe0ff954
Bump actions/checkout from 3.5.2 to 3.5.3 (#3486)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)

---
updated-dependencies:
- dependency-name: actions/checkout
  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-06-12 22:46:54 -07:00
Minty-Meeo
de0757b578
Use FMT_TRY and FMT_CATCH in std.h (#3482)
This naked try-catch block prevents compilation when exceptions are disabled.
2023-06-10 21:28:13 -07:00
Victor Zverovich
8fe893c0ac
Update README.rst 2023-06-06 19:56:53 -07:00
Victor Zverovich
0f823df46a Remove detail namespace hack 2023-06-04 15:19:50 -07:00
Hans-Martin B. Jensen
60fd9941c0
Use correct Char type in std::filesystem::path (#3476)
Godbolt repro:
https://godbolt.org/z/o4bjG6ddo

Co-authored-by: Hans-Martin B. Jensen <haje@eposaudio.com>
2023-06-02 14:12:57 -07:00
Hans-Martin B. Jensen
8abfc145be
Fix MSVC warning in std::chrono::time_point formatter (#3475)
* Fix MSVC warning in std::chrono::time_point formatter

The condition is constexpr causing MSVC level 4 warning:
warning C4127: conditional expression is constant

Changed the code to eliminate the warning

* Use detail::const_check

* Review: revert else condition

---------

Co-authored-by: Hans-Martin B. Jensen <haje@eposaudio.com>
2023-06-02 08:40:34 -07:00
Victor Zverovich
686b3353aa Simplify typeid check 2023-06-01 09:32:44 -07:00
Victor Zverovich
b2106f3639 Tweak comments 2023-05-31 09:52:44 -07:00
Dana Jansens
35547d6003 Use const_check to silence MSVC warning
The condition is constexpr, so the compiler warns if a runtime check
is used as there's no need to generate code for it.
2023-05-31 09:25:53 -07:00
Dana Jansens
179c7e5a66 Use typeid() only if it's available
On MSVC it is always available, otherwise it depends on whether
RTTI is enabled.
2023-05-31 09:25:53 -07:00
Bin Lan
61fb3a15ff
Add VxWorks7 user space and kernel space support (#3467) 2023-05-31 06:35:07 -07:00
Victor Zverovich
bd393456ed Remove FMT_*_DETAIL_NAMESPACE 2023-05-28 07:33:26 -07:00
Victor Zverovich
6be36af0d4 Remove udl_formatter 2023-05-27 17:16:36 -07:00
Victor Zverovich
2a35eeed8a Remove unused data 2023-05-27 10:47:17 -07:00
Victor Zverovich
256a826d63 Consolidate formatters 2023-05-27 09:19:50 -07:00
Victor Zverovich
6369af37d3 Simplify formatters 2023-05-27 09:19:50 -07:00
Victor Zverovich
0b8404918e Remove get_cached_power 2023-05-27 09:19:50 -07:00
Nico Rieck
171a020c82
Pass correct Char to base format_as formatter (#3457) 2023-05-24 14:50:47 -07:00
Victor Zverovich
d8f04e3995 Simplify ceil 2023-05-24 11:51:34 -07:00
Vladislav Shchapov
5e988f8dfa Remove is_constant_evaluated() check
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2023-05-24 09:07:12 -07:00