Commit Graph

275 Commits (592fb4342cdeac91257bc13c2137995ac795594b)

Author SHA1 Message Date
jdrouhard 96a8f6250c
fix: remove unused to_string_view overload in fmt >= 11.1 (#3314) 8 months ago
Rui Chen 276ee5f5c0
fix: update to_string_view function for fmt 11.1 (#3301)
Signed-off-by: Rui Chen <rui@chenrui.dev>
8 months ago
gabime 22b0f4fc06 Clang format 1 year ago
Gabi Melman b7e0e2c237
Fix #3073 1 year ago
Keith Kraus 0c4fb032e4
Match SPDLOG_CONSTEXPR_FUNC to FMT_CONSTEXPR (#2901)
* Modify the condition of SPDLOG_CONSTEXPR_FUNC to match that of fmt
2 years ago
gabime 0a53eafe18 update clang format again 2 years ago
gabime 4b2a8219d5 reformat code 2 years ago
gabime 9d52261185 clang format 2 years ago
Gabi Melman f4afd81ce6
Update common.h 2 years ago
gabime 1a0bfc7a89 clang format 2 years ago
gabime 1f61f5e019 clang format 2 years ago
H1X4 0ca574ae16
fix build for master fmt (non-bundled) (#2694)
* fix build for master fmt (non-bundled)

* update fmt_runtime_string macro

* fix build of updated macro
2 years ago
Charles Milette 4f80077339
Support compile-time format string checking with std::format (#2544)
* Support compile-time format string checking with std::format

* Fix pre-VS 17.5 compilation

* Fix compilation without wchar_t support

* What am I doing

* Bring back fmt optimization

* Move to_string_view to common.h

* Fix SPDLOG_CONSTEXPR_FUNC emitting duplicate symbol errors when building in C++11

* Also add inline on VS 2013

* Appender doesn't work on wide strings
3 years ago
John Armstrong 799802f93b Add FMT_STRING to allow compilation with FMT_ENFORCE_COMPILE_STRING 3 years ago
Gabi Melman 0d8197cc9d
Update common.h
Init file event handlers to nullptr
3 years ago
Kevin Slattery d89a1e66d8 Add default file-event_handler callbacks. #2374 3 years ago
gabime 128cbe5a06 clang-format 3 years ago
Charles Milette cd4f6c1466
Replace fmt_helper::to_string by a macro 3 years ago
Charles Milette ebeb3707b1
Switch to vformat_to
Drive-by: reduce the amount of occurences of #ifdef SPDLOG_USE_STD_FORMAT
3 years ago
espkk e6265c04ae Make file_event_handlers an aggregate 3 years ago
gabime c432fdd987 Bump fmt to version 8.1.1 and run clang-format 4 years ago
Dave Rigby 2a4c34b878 Allow forward-declaration of level_enum
spdlog::level::level_enum cannot be forward-declared at present, as
the definition does not specify an underlying type.

To allow users to make use of <spdlog/fwd.h> to refer to
level::level_enum without pulling in all of <spdlog/common.h> (which
can be quite costly), specify an underlying type (int) for
level::level_enum, then add a forward-declaration for it to
spdlog/fwd.h.

Note this required explicitly casting level_enum to size_t within ansicolor_sink due to sign-conversion errors:

    implicit conversion changes signedness: 'const level::level_enum' to 'std::__1::array::size_type' (aka 'unsigned long') [-Wsign-conversion]

It would appear that an enum with an unspecified underlying type is in
some kind of superposition - it can be treated as both signed _and_
unsigned - using an underlying type of 'unsigned int' triggers even
more warnings of this kind...
4 years ago
Vladislav Nepogodin a087dee98a
🚧 fix building with c++11 4 years ago
Vladislav Nepogodin f096c615c3
🔥 conditional_cast 4 years ago
Gabi Melman b3560d1567
Merge pull request #2190 from sylveon/sylveon-patch-1
Remove extraneous semicolon
4 years ago
Charles Milette d5c000394d
Remove extraneous semicolon 4 years ago
LE GARREC Vincent 58e2b455fb
Fix build with "-fvisibility=hidden" 4 years ago
gabime dc030ec53c clang-format 4 years ago
gabime 2b4e07dd91 Fixed wchar support for std::format 4 years ago
Gabi Melman 24e47efae0
fix gcc 4.8 compile warning 4 years ago
Charles Milette 126a9fb261 Merge branch 'v1.x' of https://github.com/gabime/spdlog into std-format 4 years ago
Charles Milette ad779e4865 Attempt to solve ambiguous symbol on older MSVC 4 years ago
gabime 518bf36aa9 removed redundant intialization 4 years ago
gabime 5b7dfefc7e rename file_event_handlers_t to file_event_handlers 4 years ago
Charles Milette 0ded003703 Fix wchar_t overloads and dump_info formatter 4 years ago
Gabi Melman a3ad8b5f26
Merge pull request #2169 from seker/v1.x_file_event_handlers
file_event_handlers add before_open function
4 years ago
seker 24a551c14e file_event_handlers add before_open function 4 years ago
Charles Milette 8e359baaec
Merge branch 'v1.x' into std-format 4 years ago
Dimitris Apostolou 591eedcf36
Fix typos 4 years ago
Charless Milette 89c4b1aabe Fix build issues under C++11 4 years ago
Charless Milette a31ae23db1 Fix build issue when using built-in fmt 4 years ago
Charless Milette 44a4517e2b Support C++20 std::format as an alternative to fmtlib 4 years ago
seker c47ae3b15d add file event handlers 4 years ago
dkavolis e471ec884e remove conditional `is_convertible_*` structs for wide chars 4 years ago
dkavolis cb35191fc1 clang is acting weird with disabled constructors 4 years ago
Gabi Melman 14783585b6
Fix #2022 4 years ago
dkavolis d8f13cbd5b replace FormatString template argument with fmt::basic_format_string 4 years ago
gabime fe1a4f5fb6 Added SPDLOG_FMT_RUNTIME macro for compatibilty with fmt prior 8 4 years ago
gabime 4b3687f1a6 Removed unneeded macro definition 4 years ago
gabime 0f83b33d4f backward compatibility with fmt version < 8 4 years ago