Commit Graph
6394 Commits
Author SHA1 Message Date
Cory Quammen f488eed101 Resolve default constructor error in Xcode 7.2.1 and 8.2.1
Fix issue that produces the error 'default initialization of an object
of const type 'const detail::buffer_size' without a user-provided
default constructor'
2021-08-06 11:17:02 -07:00
Victor Zverovich 652c3653bb Move CONTRIBUTING.md to .github 2021-08-06 10:56:05 -07:00
Nikita Sobolev fb19faa31b Improves README with svg badge (#2446)
Looks much better now!
2021-08-05 06:50:15 -07:00
Vladislav Shchapov 07211701f4 Disable the -Wstringop-overflow warning from GCC 7 (#2442) 2021-08-02 14:20:18 -07:00
Victor Zverovich bba0a9d962 Make flush public 2021-07-30 07:02:49 -07:00
Victor Zverovich f1794a8853 Switch to threadsafe death test style 2021-07-29 06:56:38 -07:00
brm 0544a2279b Exclude fallback functions when FMT_BUILTIN_CLZ(LL) is not defined (#2434) 2021-07-25 10:37:18 -07:00
Victor Zverovich 5c222f0561 Add support for nonconst formattable types 2021-07-24 09:53:53 -07:00
Spiros Tsalikis 3def950b84 Set FMT_CAN_MODULE=OFF for MSVC 19.29.30035+ 2021-07-23 09:35:09 -07:00
Spiros Tsalikis 63fe2d5bd2 Add copy constructor for dynamic_format_arg_store, and test 2021-07-23 09:35:09 -07:00
Victor Zverovich 561834650a Improve digit count 2021-07-18 09:14:56 -07:00
Johnathan f20f50368f Replace throw with FMT_THROW (#2427)
Using `throw` results in compile errors with `-fno-exceptions`. gcc seems fine with it, but arm-gcc and clang would complain.
2021-07-18 07:08:24 -07:00
Cameron DaCamara 00235d8a99 fix module test odr violations (#2414) 2021-07-17 09:16:49 -07:00
Victor Zverovich 2038bf6183 Update format_to usage 2021-07-13 07:56:24 -07:00
Victor Zverovich e41ac1f875 Don't use deprecated API in docs 2021-07-10 13:42:51 -07:00
Victor Zverovich 8465869d7b Move ignore_unused to detail 2021-07-09 08:24:11 -07:00
mwinterb 3d53d1539d Warning removals in test code (#2399)
* Warning removals in test code.

Mostly 0 to nullptr and adding override to virtual function implementations.

* Fix module-test.
2021-07-09 08:05:02 -07:00
Victor Zverovich 20e4ef8b4c Pass significand_size by value 2021-07-05 08:51:43 -07:00
Victor Zverovich c4a3c2342a Refactor locale handling 2021-07-05 08:25:12 -07:00
Victor Zverovich 7a0d301753 Update README.rst 2021-07-04 07:03:20 -07:00
Daniela Engert f2b03facd9 Include test sources to pick up functions and classes from the module rather than from the non-modular library which is baked into the test-main library. (#2356)
This averts linker problems:
 - strong ownership model: missing linker symbols
 - weak ownership model: duplicate linker symbols

Simplify `gtest-extra.cc` while at it.
2021-07-03 07:21:54 -07:00
Benoît Lormeau 02ad5e11da Add faint, blink, reverse and conceal to the emphases (#2394) 2021-07-02 20:03:55 -07:00
Victor Zverovich d141cdbeb0 Update version 2021-07-02 16:14:33 -07:00
Victor Zverovich cfc05e05f0 Bump version 2021-07-02 14:43:31 -07:00
Victor Zverovich 8ea312633b Update changelog 2021-07-02 14:43:00 -07:00
Victor Zverovich e461f3dbbe Minor consitency and comment tweaks 2021-07-02 13:56:37 -07:00
Mattias Ljungström 54014e42e3 silence warning C4100 on MSVC 2019 when exceptions are disabled (#2397) 2021-07-02 13:51:49 -07:00
Victor Zverovich 3e7a29cc92 Workaround clang/gcc incompatibility 2021-07-02 13:29:22 -07:00
Victor Zverovich 00a57a9f8f Update changelog 2021-07-02 08:07:48 -07:00
Victor Zverovich 1d7384530e Add missing presentation type checks for std::string (#2402) 2021-07-02 07:51:04 -07:00
Jonathan Emmett 889bbf27a2 Fix missing std::get overload in MSVC (#2407)
This replaces the `std::get` call with an unqualified equivalent to allow
it to be treated as a dependent call.

ranges.h needs std::get overloads from `<tuple>` but does not directly
include it. This causes compilation failures in MSVC with /permissive-.
On other platforms `<tuple>` is included as a dependency from other headers
(specifically from `<memory>`), but there is no such implicit dependency in
MSVC's STL.

Fixes #2401
2021-07-01 10:55:46 -07:00
Victor Zverovich 5f8473914c Remove outdated apidoc 2021-07-01 07:56:53 -07:00
Victor Zverovich 785908ee37 Fix warnings 2021-06-30 06:42:29 -07:00
Greg Sjaardema fbb70eec5c suppress unused variable warnings (#2381)
* suppress unused variable warnings

An arguably better method for suppressing unused variable warnings.   The `(void)var` method does not work on many intel compiilers.
This is from Herb Sutter's blog post https://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/

* Format to eliminate long lines

* Run clang-format
2021-06-30 06:33:30 -07:00
Javier Honduvilla Coto 002bb759ff Remove unneeded num_result_bigits decrement
For what I see this seems unused?
2021-06-29 06:23:02 -07:00
Marek Kurdej a3f762c5aa [doc] Minor: fix `code`. 2021-06-29 06:21:15 -07:00
Eren Okka c3c27e5ab5 Fix MSVC warning C4819 2021-06-28 06:14:53 -07:00
Victor Zverovich c6b1f181aa Fix docs 2021-06-27 09:06:21 -07:00
Victor Zverovich 94564b058e Fix docs 2021-06-27 08:55:16 -07:00
Victor Zverovich 0fc73a2a85 Merge branch 'master' of github.com:fmtlib/fmt 2021-06-27 08:10:49 -07:00
Victor Zverovich 3156fcf5f4 Switch to older breathe version 2021-06-27 08:10:37 -07:00
Aidan Sun f85fb9fdff Adjust definition for FMT_HAS_INCLUDE
Adjust definition for FMT_HAS_INCLUDE

Remove check for `!FMT_MSC_VER`
2021-06-27 07:08:29 -07:00
Victor Zverovich 0bc3d664e3 Fix docs 2021-06-27 06:41:54 -07:00
Victor Zverovich e5c46e13e8 Fix docs: breathe 18 and earlier corrupts trailing return type 2021-06-26 09:55:27 -07:00
Patrick Geltinger 49a3b58c8b Specify size for static data arrays 2021-06-26 06:55:24 -07:00
Victor Zverovich d0c8d45a2e apt update before install 2021-06-26 06:29:53 -07:00
Jason A. Donenfeld c9a10631cb format: do not use udl_{arg,formatter} return types when UDL is not in use
The udl_{arg,formatter} structs are only defined when
FMT_USE_USER_DEFINED_LITERALS is set, so don't try to define things that
return that struct when it's not defined.
2021-06-26 06:25:16 -07:00
Greg Sjaardema 3bd806f12f Eliminate intel compiler warning
The intel compiler defines `__GNUC__`, but does not support the gcc `_Pragma`.  This PR filters out the intel compiler to avoid warnings about an unrecognized function.
2021-06-26 06:16:12 -07:00
Владислав Щапов fd16bcb20c Fix bug in cmake join function 2021-06-24 09:10:53 -07:00
Daniela Engert 5221242f6e Instruct msvc to report the _true_ value in __cplusplus and force _full_ C++ conformance
* do this  in _some_ tests to improve test coverage and catch possible problems due to that
 * fix invalid export of `static constexpr` constant
 * fix msvc warnings about unreachable code in high warning levels
2021-06-24 09:10:08 -07:00