Gabi Melman
7e022c4300
Feature 3379 ( #3397 )
...
* Fix #3379
* clang format
2025-05-08 14:02:00 +03:00
koniarik
ad0f31c009
Enabled bin_to_hex utest for stdformat, fixed std::formatter ( #3315 )
...
* Enabled bin_to_hex utest for stdformat, and fixed std::formatter
* fixed usage of \ in macos.yml
* explicitly cast diff variable in test_sink
* moved from ::iterator to decltype
* added fix for custom callbacks
---------
Co-authored-by: Jan Koniarik <veverak@Jans-MacBook-Pro.local >
2025-01-11 17:21:39 +02:00
gabime
0a53eafe18
update clang format again
2023-09-25 16:40:36 +03:00
gabime
4b2a8219d5
reformat code
2023-09-25 16:20:42 +03:00
gabime
9d52261185
clang format
2023-09-25 16:08:29 +03:00
gabime
1a0bfc7a89
clang format
2023-09-25 02:44:07 +03:00
gabime
4b8ff51a29
Added const to put_newline() in bin_to_hex.h
2023-07-04 18:00:20 +03:00
Gabi Melman
8b8bc20f30
Added const qualifier to bin_hex_formatter to support c++20
2023-07-04 17:53:04 +03:00
Li Z
927cc29444
Fix unexpected delimiter at start of line in to_hex formatter ( #2627 )
2023-02-01 12:04:30 +02:00
John Armstrong
799802f93b
Add FMT_STRING to allow compilation with FMT_ENFORCE_COMPILE_STRING
2022-05-19 11:32:54 -07:00
Kevin Slattery
5f5e70e96e
C++14 build fixes for older gcc #2333
2022-05-11 15:14:41 -05:00
gabime
c432fdd987
Bump fmt to version 8.1.1 and run clang-format
2022-02-12 13:20:15 +02:00
Tim Blechmann
626efad307
spdlog: fmt - support std::span
in to_hex
...
`std::span` does not have `const_iterator`. this prevents `to_hex` from
being used with `std::span<>`. to fix this, we provide an explicit
overload.
compare: https://cplusplus.github.io/LWG/issue3320
2021-12-30 09:46:27 +08:00
Roocks Patrick (MTN PTT / External)
f304ca3daf
code style fixes
2021-12-01 16:37:29 +01:00
Roocks Patrick (MTN PTT / External)
d93cea97ec
Fix usage of ranges and to_hex in the same compile unit
...
When trying to use spdlog/fmt/bin_to_hex.h in the same compile unit as spdlog/fmt/bundled/ranges.h you got a compile error because there was a multiple definitions for iterable classes. This fix renames the begin() and end() getters in dump_info into getBegin()/getEnd() in order to avoid this collision.
Added an example of ranges in example.cpp to show that it actually works (an to_hex example was already there)
2021-12-01 15:37:48 +01:00
gabime
dc030ec53c
clang-format
2021-11-16 23:44:35 +02:00
Charles Milette
0ded003703
Fix wchar_t overloads and dump_info formatter
2021-11-15 16:52:31 -05:00
Charles Milette
8e359baaec
Merge branch 'v1.x' into std-format
2021-11-14 16:02:38 -05:00
Dimitris Apostolou
591eedcf36
Fix typos
2021-11-13 21:54:08 +02:00
Charless Milette
89c4b1aabe
Fix build issues under C++11
2021-11-13 12:02:40 -05:00
Charless Milette
4008f31add
Fix missing spdlog::
2021-11-13 11:51:22 -05:00
Charless Milette
c475418975
Put formatter specialization in its original namespace
2021-11-13 11:50:26 -05:00
Charless Milette
44a4517e2b
Support C++20 std::format as an alternative to fmtlib
2021-11-13 11:29:05 -05:00
Dmitriy Merkushov
b400705a1c
bin_to_hex.h: include common.h instead of spdlog.h
2021-08-09 19:27:24 +03:00
Dmitriy Merkushov
dfd12e6dac
bin_to_hex.h: include spdlog.h to support inclusion of bin_to_hex.h in any order with spdlog.h
2021-08-07 01:50:09 +03:00
dkavolis
1344d44a5a
check args on formatting
2021-07-21 23:54:11 +01:00
gabime
5887744d8b
Fixed bin2hex to work with fmt v8
2021-06-24 15:58:25 +03:00
Gabi Melman
99b8c5d379
Update bin_to_hex.h
2020-09-24 10:04:07 +03:00
Gabi Melman
19f2804661
Fix #1611
2020-07-08 18:50:51 +03:00
gabime
643426e2b2
Small refactor
2020-03-15 17:20:02 +02:00
gabime
f31a834613
clang-format
2020-03-15 17:16:28 +02:00
gabime
683080be53
Fix clang-tidy warning
2020-03-15 17:14:52 +02:00
ngugcx
02bfa0898c
Do not fill blanks to align if there is only one line.
2020-03-15 20:09:28 +08:00
ngugcx
f5313f92f1
Enhance to_hex like the unix command hexdump.
2020-03-15 12:01:31 +08:00
gabime
ed8d099607
Fixed #1197
2019-08-29 01:05:23 +03:00
gabime
b693d0cd91
Fix #1195
2019-08-29 00:28:00 +03:00
gabime
6bcb422c80
clang format and SPLDOG_HEADER_ONLY macro
2019-05-12 00:22:39 +03:00
gabime
8e4996baf4
Replaced constexpr with SPDLOG_CONSTEXPR
2018-10-12 01:32:21 +03:00
gabime
aa47ac85c9
add constexpr to hex chars
2018-10-05 23:23:09 +03:00
gabime
808bc1f4ed
clang format
2018-09-25 01:11:36 +03:00
gabime
41d879e292
Added support for binary logging using to_hex(..)
2018-09-25 01:03:57 +03:00