fmt/test
Tristan Brindle 2595bf57b3 Fix formatting of ranges with begin()&/end()&
C++20 allows ranges to have lvalue-qualified begin() and end() member functions. fmt correctly handles this if begin() and end() are additionally const-qualifed (i.e. begin() const&), but not in the non-const case. For example:

https://godbolt.org/z/YfxaYz5r7

This patch fixes fmt's range detection to handle this case by testing calls to detail::ranges_begin()/end() with an lvalue T&, matching the behaviour in the const case.
2024-01-10 12:22:53 -08:00
..
add-subdirectory-test Add base.h 2024-01-09 19:36:12 -08:00
compile-error-test Bump tested CMake version to 3.25 2022-11-30 08:09:32 -08:00
cuda-test Add base.h 2024-01-09 19:36:12 -08:00
find-package-test Bump tested CMake version to 3.25 2022-11-30 08:09:32 -08:00
fuzzing Add base.h 2024-01-09 19:36:12 -08:00
gtest Fix typo in gmock-gtest-all.cc (#3747) 2023-12-09 08:13:20 -08:00
static-export-test Bump tested CMake version to 3.25 2022-11-30 08:09:32 -08:00
args-test.cc Fix constness 2024-01-01 19:50:36 -08:00
assert-test.cc Add base.h 2024-01-09 19:36:12 -08:00
chrono-test.cc Apply coding conventions 2023-12-30 16:07:35 -08:00
CMakeLists.txt Avoid a space in the UDL definition (#3610) 2023-09-18 08:09:42 -07:00
color-test.cc Implement styled arguments (#2793) 2022-03-08 09:50:14 -08:00
compile-fp-test.cc Simplify ceil 2023-05-24 11:51:34 -07:00
compile-test.cc Fix buffer overflow if output iterator is std::back_insert_iterator and value is escaped (debug format) 2024-01-10 09:15:16 -08:00
core-test.cc Move fmt::format to fmt/format.h 2024-01-10 06:43:12 -08:00
detect-stdfs.cc Fix std::variant, std::filesystem::path tests on GCC-8, Clang-7,8. 2022-07-02 08:34:52 -07:00
enforce-checks-test.cc Workaround C complex.h idiocy 2022-09-03 06:35:55 -07:00
format-impl-test.cc Fix a libc++ warning and move the test to the right place 2023-11-25 08:20:53 -08:00
format-test.cc Fix write_uintptr_fallback 2024-01-10 09:09:57 -08:00
gtest-extra-test.cc Improve the pipe API 2024-01-01 15:55:37 -08:00
gtest-extra.cc Improve the pipe API 2024-01-01 15:55:37 -08:00
gtest-extra.h Make gtest-extra-test more portable 2023-11-24 10:09:21 -08:00
header-only-test.cc Add base.h 2024-01-09 19:36:12 -08:00
mock-allocator.h Update tests to use recommended MOCK_METHOD (#3395) 2023-04-20 13:16:21 -07:00
module-test.cc Improve module testing (#3397) 2023-05-03 07:56:24 -07:00
noexception-test.cc Add base.h 2024-01-09 19:36:12 -08:00
os-test.cc Move misplaced join overloads to fmt/ranges.h 2024-01-01 16:28:59 -08:00
ostream-test.cc Replace virtual dispatch with normal functions in buffers 2024-01-02 07:02:20 -08:00
posix-mock-test.cc Improve the pipe API 2024-01-01 15:55:37 -08:00
posix-mock.h Apply coding conventions 2023-12-30 16:07:35 -08:00
printf-test.cc Improve arg storage 2024-01-08 21:25:41 -08:00
ranges-odr-test.cc Reformat all source code; no functional changes 2021-11-25 09:15:25 -08:00
ranges-test.cc Fix formatting of ranges with begin()&/end()& 2024-01-10 12:22:53 -08:00
scan-test.cc Improve the pipe API 2024-01-01 15:55:37 -08:00
scan.h Fix spelling: othewise ==> otherwise (#3791) 2024-01-09 10:32:46 -08:00
std-test.cc Remove redundant specifier 2023-12-28 07:32:07 -08:00
test-assert.h Move is_char specializations to xchar.h 2021-06-06 15:32:30 -07:00
test-main.cc Fixed all clang -Wreserved-id-macro warnings (on macOS at least) 2022-03-24 07:33:43 -07:00
unicode-test.cc Fix locale name (thanks Mikhail Paulyshka) 2022-08-20 08:06:20 -07:00
util.cc Improve the pipe API 2024-01-01 15:55:37 -08:00
util.h Cleanup test 2023-12-19 13:46:48 -08:00
xchar-test.cc Improve arg storage 2024-01-08 21:25:41 -08:00