Commit Graph

300 Commits (dcd5904bdc659fbc2bdcceeb08169ad112f8c594)

Author SHA1 Message Date
gabime dcd5904bdc Updated clang-format
Merged with origin
2 years ago
gabime 6de0ffa15f Updated clang format to google style 2 years ago
gabime e28eadcd52 Clang format 2 years ago
gabime 2a1959c2ce wip static_only 2 years ago
gabime 6d520df916 Removed header only options 2 years ago
gabime fc81e0390b Removed SPDLOG_COMPILED_LIB/HEADER_ONLY macros from common.h 2 years ago
gabime b16a8951bc Added more [[nodiscard]] to functions in common 2 years ago
gabime a34fb3761c Added nodiscard to level_to_number() 2 years ago
gabime 9a7448e4c8 Renamed to level_to_number 2 years ago
gabime 433cac487e Renamed spdlog::log_level to spdlog::level and added some level tests 2 years ago
gabime 7c0afada60 check SPDLOG_SOURCE_LOCATION in macros and in runtime 2 years ago
gabime ea1c829764 fix warning 2 years ago
gabime 31a7dc6e1e Fix atomic level 2 years ago
gabime 3a405ba958 Fix atomic level 2 years ago
gabime 392917f855 null_atomic_log_level and fix compile 2 years ago
gabime ac2955cb48 Use std::array for string levels storage 2 years ago
gabime 96bed42974 Clean level names logic and inline them 2 years ago
gabime a3ef3ab7a4 Removed SPDLOG_FMT_STRING 2 years ago
gabime b777497b0d Removed un needed inline specifier 2 years ago
gabime 5c93f5ff34 Revert last commit 2 years ago
gabime 9c1e1c85aa Removed un needed loc_with_fmt constructor 2 years ago
gabime 8488b027e9 Formatting 2 years ago
gabime ad18d4e1cb Added missing include to <spdlog/fmt/xchar.h> 2 years ago
gabime 3979bd15f7 Fixed build 2 years ago
Gabi Melman 768de091ee Update common.h 2 years ago
Gabi Melman 2718d4671b Update common.h 2 years ago
gabime 82069b2455 Fixed include <version> 2 years ago
gabime 5ae1ace844 Added loc_with_fmt overload with runtime_format_string 2 years ago
gabime 90e92438c8 clang format 2 years ago
gabime 1faeb5b6fa Minor cleanups 2 years ago
gabime b2372fd076 Enable std::source_location if SPDLOG_EMIT_SOURCE_LOCATION is defined 2 years ago
gabime 19d4e60561 Replaced details::make_unique with std::make_unique 2 years ago
gabime a38add8456 Removed SPDLOG_NO_TLS and updated cmake 2 years ago
gabime e1ee0c62a7 Replaced SPDLOG_CONSTEXPR and SPDLOG_NOEXCEPT macros with c++20 keywords 2 years ago
gabime d94830814f Removed SPDLOG_WCHAR_TO_UTF8_SUPPORT 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