Commit Graph
90 Commits
Author SHA1 Message Date
Victor Zverovich c83a5d42bb FMT_MSC_VER -> FMT_MSC_VERSION 2022-05-29 15:39:08 -07:00
Victor Zverovich 395cf0f03e Fix detection of unformattable pointers 2022-04-12 06:45:46 -07:00
Victor Zverovich 15c2a3bacc int128_t -> int128_opt 2022-02-17 20:03:25 -08:00
Victor Zverovich ce93a66dfb Implement a fallback uint128_t 2022-02-17 07:37:09 -08:00
Victor Zverovich 8a21e328b8 Remove problematic constructibility check 2022-02-04 12:20:02 -08:00
Victor Zverovich 1557ab7644 Add format_as for enums 2022-01-28 06:38:02 -08:00
Victor Zverovich 8f8a1a02d5 Fix handling of formattable types implicitly convertible to pointers 2022-01-14 13:42:01 -08:00
Victor Zverovich 1b193e7b37 Deprecate more 2022-01-03 11:13:09 -08:00
Victor Zverovich fd62fba985 Don't convert scoped enums to integers 2021-12-09 12:09:33 -08:00
Florin Iucha 491ba2dda5 Annotate fmt::format and fmt::formatted_size as [[nodiscard]]
This prevents accidentally writing fmt::format when fmt::print was
intended. Other than running tests, there's not a good use case for
discarding the formatted output.
2021-11-25 07:30:30 -08:00
Alex Guteniev a3ab36c803 Formatting of function pointers, member function pointers, member object pointers... (#2610) 2021-11-23 12:55:22 -08:00
Victor Zverovich 5380ff4d88 Detect types convertible to unformattable pointers 2021-11-13 08:26:27 -08:00
Victor Zverovich 1266c2b600 Fix handling of exotic character types 2021-10-17 09:07:48 -07:00
Victor Zverovich 894faf3fed Refactor presentation types 2021-09-06 13:32:33 -07:00
Victor Zverovich 6b55c83252 is_const_formattable -> has_const_formatter 2021-09-05 08:35:08 -07:00
Victor Zverovich 043e3b3429 Remove static_assert from arg_mapper 2021-08-26 20:45:01 -07:00
Victor Zverovich 8b0cb944da Fix error reporting when mixing character types 2021-08-26 18:16:05 -07:00
Victor Zverovich f889e52a15 Improve error reporting 2021-08-26 15:47:44 -07:00
Victor Zverovich 5c222f0561 Add support for nonconst formattable types 2021-07-24 09:53:53 -07:00
mwinterb 3d53d1539d Warning removals in test code (#2399)
* Warning removals in test code.

Mostly 0 to nullptr and adding override to virtual function implementations.

* Fix module-test.
2021-07-09 08:05:02 -07:00
Victor Zverovich d551b88a6d Move is_char specializations to xchar.h 2021-06-06 15:32:30 -07:00
Victor Zverovich 34b8acaef7 More wchar_t-specific API to wchar.h 2021-05-21 18:24:39 -07:00
Victor Zverovich 63271a51c4 Fix ADL issues 2021-05-20 06:31:43 -07:00
Victor Zverovich 61b4c923d7 Reduce code bloat 2021-05-20 05:51:45 -07:00
Victor Zverovich 0dd91e20d5 Add wchar.h for wide char overloads 2021-05-17 21:59:10 -07:00
Victor Zverovich 9155e2de4c Cleanup tests 2021-05-01 17:11:45 -07:00
Alexey Ochapov 53ca0cbe75 gtest: move GTest/GMock files to separate directory, update GTest/GMock usages
* all GTest/GMock files moved to `test/gtest` directory
* `CMakeLists.txt` created in `test/gtest` from `CMakeLists.txt` in `test`
* GTest/GMock target in CMake renamed to `gtest` (was `gmock`)
* CMake `gtest` target updated to export includes as "gtest/gtest.h" or "gmock/gmock.h" only
* includes in tests updated: "gtest.h" -> "gtest/gtest.h", "gmock.h" -> "gmock/gmock.h"
* removed duplications of `target_include_directories` for GTest/GMock directories (CMake manages them)
2021-04-29 07:11:49 -07:00
Victor Zverovich 39818e7979 Cleanup core-test 2021-04-25 17:59:23 -07:00
Victor Zverovich bb006f9735 Replace TYPED_TEST_CASE with TYPED_TEST_SUITE 2021-04-24 17:46:49 -07:00
Victor Zverovich 8a040d187a Cleanup core-test 2021-04-23 20:07:48 -07:00
Victor Zverovich a6408a3b09 Add args-test 2021-03-18 09:04:17 -07:00
Victor Zverovich 1147782c79 Fix an ambiguous call to check caused by ADL (#2184) 2021-03-17 20:59:36 -07:00
Victor Zverovich 6151d0dc1e Fix the comment 2021-03-14 09:26:18 -07:00
Victor Zverovich 5a1127b726 Don't wrap named arg in cref and clarify docs 2021-03-14 09:08:08 -07:00
Victor Zverovich 835b910e7d Add an is_formattable trait 2021-02-28 15:25:33 -08:00
Victor Zverovich bcc20b29df Implement compile-time checks by default 2020-11-15 17:24:36 -08:00
Victor Zverovich e01d26e1a4 Optimize includes 2020-11-09 16:34:54 -08:00
Jonathan Gopel e904e891bd 🎨 🐛 Rename all shadowed types and variables 2020-11-03 07:30:27 -08:00
Bart SiwekandBart Siwek 271eff149f Make classes derived from buffer<T> final to silence the virtual destructor warning. (#1937)
Co-authored-by: Bart Siwek <bsiwek@cisco.com>
2020-10-15 17:41:56 -07:00
Victor Zverovich d870468159 Make append work with fixed-size buffer 2020-07-11 07:27:20 -07:00
Victor Zverovich e8ec09ae83 Cleanup core-test 2020-07-10 21:25:27 -07:00
Victor Zverovich a2c4fed981 Double buffering no more 2020-07-10 20:35:14 -07:00
Victor Zverovich 60c43e8703 Apply clang-format 2020-07-09 09:06:24 -07:00
Victor Zverovich b998e0f30b Reduce symbol sizes and simplify iterator use 2020-07-09 08:51:43 -07:00
Vladimir Solontsov 922ea924bf Make dynamic_format_arg_store reusable and add reserve() (#1677)
Implemented #1674: make dynamic_format_arg_store reusable and add
reserve() for better memory menagement.
2020-05-12 11:00:42 -07:00
Victor Zverovich 8069265373 internal -> detail (#1538) 2020-05-10 07:34:30 -07:00
Vladimir Solontsov 68201831a5 Support named args in dynamic_format_arg_store (#1655). (#1663)
Dynamic arguments storage. Implementation of enhancement from issue
#1170.
2020-05-09 06:25:03 -07:00
Victor Zverovich 7f723fbcb8 Consistently namespace qualify size_t 2020-05-07 15:59:46 -07:00
Victor Zverovich 5944fcad37 Remove remaining wchar_t instantiation 2020-04-19 16:48:15 -07:00
Victor Zverovich 8a4630686e Improve handling of named arguments 2020-04-14 11:56:55 -07:00