Commit Graph
2396 Commits
Author SHA1 Message Date
escherstair 3e8d2c57f3 Add CE6 support (#1749) 2020-07-07 09:29:16 -07:00
Mark Stapper 8ad1c12fb4 Make FMT_CTOR and FMT_WRAP1 macros work with bcc32 2019-03-31 07:21:28 -07:00
Mark Stapper d2744bc848 Fix compatibility with bcc32 compiler
Resolve namespace issues
Add workaround for compile error on bool template argument of ArgArray struct
Squelch bcc32 warning on accessing the digits array
Squelch bcc32 warning on unused values
Fix warnings about redefinig macros and conditions always true
Disable "LConv" block for bcc32 compiler
Remove macro test for deprecated macro
Fix appveyor-build for cmake v3.13+
2019-03-27 10:10:18 -07:00
Victor Zverovich b6d435b9a6 Fix an MSVC warning (#798) 2018-07-04 05:42:59 -07:00
Jean-Michaël Celerier 857b382fc3 Mark the whole class FormatError as FMT_API
Else on windows across DLLs the vtable is not visible which causes linking error
2018-05-09 06:12:31 -07:00
Henry Schreiner b6ac63faf0 Fix warnings when with master project set to hidden 2018-04-27 06:34:52 -07:00
Gabi Melman 1d6188404c Added optional INILINE_BUFFER_SIZE template param to BasicMemoryWriter (#716) 2018-04-21 17:18:13 -07:00
Victor Zverovich bdab94baf8 Merge branch '4.x' of github.com:fmtlib/fmt into 4.x 2018-04-12 06:07:55 -07:00
Victor Zverovich a9c0bb4b16 Fix a warning on msvc/clang (#703) 2018-04-12 06:07:16 -07:00
Henry Schreiner ea2cf449f7 Stop newer CMake's from warning about OLD policy 2018-04-11 09:48:36 -07:00
Henry Schreiner 5c0d7ee157 Fix return that can't be reached 2018-04-11 09:31:10 -07:00
Victor Zverovich 64440783ba Fix an issue with incorrect [[noreturn]] position in clang-cl (#701) 2018-04-08 11:56:47 -07:00
Victor Zverovich 1ecdc1a3bb Fix compilation on gcc 4.4 (#692) 2018-03-23 08:39:24 -07:00
Victor Zverovich 867b330966 Remove ANDROID macro check per comment in #458 2018-02-07 07:44:15 -08:00
Victor Zverovich 8cf30aa2be Fix segfault on complex pointer formatting (#642) 2018-02-01 21:49:03 -08:00
Giuseppe Corbelli 0555cea5fc Added a fmt.pro to support build using qmake (#641) 2018-01-26 17:12:48 -08:00
peterbell10 f78c3e41be Fix unreachable code warning when signbit returns bool 2018-01-21 06:11:29 -08:00
Victor Zverovich 1760c31b52 Workaround Doxygen mess 2018-01-20 08:53:03 -08:00
Victor Zverovich c15710032e Add debug postfix for libfmt (#636) 2018-01-20 06:47:12 -08:00
Victor Zverovich 6822466aa3 Handle nested braces in join (#638) 2018-01-20 06:26:22 -08:00
Victor Zverovich c719d94473 Fix experimental/string_view detection 2018-01-13 07:57:33 -08:00
Tim Blechmann 0f98773164 add transition helper to format.h
the transition from v3 to v4 introduced an API change that format.h does
not provide printf functionality. to easi the transition we introduce a
define `FMT_FORMAT_PROVIDE_PRINTF` that will pull in printf.h from format.h
2017-12-27 21:48:55 -08:00
Victor Zverovich 319346025d Update version 2017-12-20 08:38:07 -08:00
Victor Zverovich 51a16f8c58 Update ChangeLog.rst 2017-12-20 08:33:31 -08:00
Victor Zverovich a00874603d Merge release branch 2017-12-20 08:30:58 -08:00
Virgilio Alexandre Fornazin 5705bf1c71 Added support for pre-c++17 experimental string_view (#607)
Added support for pre-c++17 experimental string_view
2017-12-16 09:03:11 -08:00
Victor Zverovich cabce31f45 Update syntax.rst 2017-12-16 08:58:54 -08:00
Mihai Todor f9c97de46b Add note about errno to the documentation 2017-11-28 07:33:51 -08:00
Mike Crowe 62df6f27cb CMakeLists: Use GNUInstallDirs to set install location
CMake's GNUInstallDirs knows where particular Linux architectures and
distributions want to have their libraries installed. In particular,
Debian-derived "multi-arch" distributions keep their libraries in triplet
sudirectories under /lib. Other "bi-arch" distributions keep 64-bit
libraries in /lib64.

Including GNUInstallDirs and using CMAKE_INSTALL_LIBDIR and
CMAKE_INSTALL_INCLUDEDIR means that fmt's libraries and header files are
installed in the correct locations.

Tested with OpenEmbedded and on Debian GNU/Linux 9 (the special naming only
applies when installing in /usr.)
2017-11-13 22:01:41 -08:00
Victor Zverovich 493586cbca Fix overflow check 2017-11-12 07:09:36 -08:00
JP Cimalando 1d751bc617 fix warning in header: signed/unsigned comparison 2017-11-12 06:23:57 -08:00
Victor Zverovich 11415bce3c Update usage.rst 2017-11-08 18:27:10 -08:00
Alex Alabuzhev 9982dd0130 Fix for warning C5030 in VS2015 2017-11-08 18:18:36 -08:00
virgiliofornazin 42e88c4fcb Silenced MSVC 2017 constant if expression warning 2017-11-05 12:27:48 -08:00
Ludek Vodicka 7a9c1ba190 FMT_VARIADIC_CONST - Support for const variadic methods (#591)
FMT_VARIADIC_CONST - Support for const variadic methods
2017-10-22 08:55:40 -07:00
Michael Winterberg 324415c036 Use allocator_traits if available.
This is to avoid using functionality deprecated in C++17.
2017-10-18 06:11:15 -07:00
Victor Zverovich 5f39721c0a Fix a warning 2017-10-15 14:58:41 -07:00
Victor Zverovich ca96acbe4f Add examples 2017-10-15 07:38:03 -07:00
yumetodo 708d9509ff fix(Clang CodeGen): remove warnings
./fmt/fmt/format.h(308,10): warning : unknown pragma ignored [-Wunknown-pragmas]
         ^
1 warning generated.
format.cc In file included from fmt\fmt\format.cc:28:
fmt\fmt/format.h(308,10): warning : unknown pragma ignored [-Wunknown-pragmas]
         ^
fmt\fmt\format.cc(165,17): warning : 'strerror' is deprecated: This
function or variable may be unsafe. Consider using strerror_s instead.
To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for
details. [-Wdeprecated-declarations]
      buffer_ = strerror(error_code_);
                ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(178,24) :  note: 'strerror' has been explicitly marked deprecated here
_ACRTIMP char* __cdecl strerror(
                       ^
fmt\fmt\format.cc(78,37): warning : unused function 'strerror_s' [-Wunused-function]
static inline fmt::internal::Null<> strerror_s(char *, std::size_t, ...) {
                                    ^
3 warnings generated.

refactor: use attribute to remove -Wunused-function warnings instead of dummy function call
2017-10-15 07:04:45 -07:00
Victor Zverovich 9328a074b1 Fix handling of fixed enums in clang (#580) 2017-10-14 08:47:08 -07:00
Victor Zverovich 2c077dd442 Enable stream exceptions (#581) 2017-10-14 07:38:16 -07:00
Michael Winterberg 933a33a794 Added MSVC checking for support for string_view.
Also, driveby adding "override" to classes with inherited virtual destructors.
2017-10-08 19:44:09 -07:00
Victor Zverovich bef89db6e7 Fix a bogus -Wduplicated-branches gcc warning (#573) 2017-09-27 19:32:53 -07:00
Mário Feroldi 2a619d96dd Make format work with C++17 std::string_view (#571)
Tests for C++17 std::string_view
2017-09-20 06:21:11 -07:00
Victor Zverovich e051de37f3 Use less version 2.6.1 and sudo to fix npm install issues on travis 2017-09-17 08:41:17 -07:00
Mário Feroldi 5de459bf33 Suppress Clang's warning on zero as a null pointer 2017-09-16 18:44:29 -07:00
Elnar Dakeshov 165895346c Make ArgMap::init not explicitly instantiated (#563)
Make ArgMap::init not explicitly instantiated
2017-09-03 19:26:08 -07:00
Victor Zverovich 3e75d3e001 Fix handling of types convertible to int 2017-09-02 07:08:19 -07:00
Alex Alabuzhev 89654cd127 to_wstring added 2017-08-27 18:52:57 +02:00
Victor Zverovich 37eb419af2 Fix noreturn attribute detection (#555) 2017-08-20 09:39:28 -07:00