2194 Commits

Author SHA1 Message Date
Victor Zverovich
baedba07ca Fix signbit detection (#423)
(cherry picked from commit def687462c32ec40757e49eb6069f109d50236d6)
2017-06-08 11:28:39 +02:00
Victor Zverovich
b9a20d761a Add version macro FMT_VERSION (#411)
(cherry picked from commit f5b1c16e2c1a8139885176cbd53a6d37bf9d006c)

# Conflicts:
#	CMakeLists.txt
2017-06-08 11:27:51 +02:00
Victor Zverovich
ba0c3b957f Fix warnings on C++98
(cherry picked from commit cfd00af37a0b527f55a9051f8742a0a8d0086fbd)
2017-06-08 11:27:11 +02:00
Victor Zverovich
4a24a38861 Fix warnings
(cherry picked from commit 627440191950c2cda518dfdb0482aeb75fc623ad)

# Conflicts:
#	fmt/printf.h
#	test/string-test.cc
2017-06-08 11:26:18 +02:00
Jonathan Müller
5c69ecdd5e Create pull_request_template
(cherry picked from commit 8cef95f7c378191916f6a972da71a27cc96a3ee8)
2017-06-08 11:23:13 +02:00
Victor Zverovich
29732d44bb Add CONTRIBUTING file
(cherry picked from commit 922ae4896beac017e44fc6008bfb13bab8e0deda)
2017-06-08 11:23:09 +02:00
Chen Hayat
abee8f95ec Fix Klockwork compilation warning
(cherry picked from commit 05ba3e788846957ddb88277ed73b54073e595907)
2017-06-08 11:23:04 +02:00
Victor Zverovich
48ba0f2aa2 FMT_NULLPTR -> FMT_NULL and improve formatting
(cherry picked from commit 1daddec15105ce9e91c27dddb38140aee802d9da)

# Conflicts:
#	fmt/printf.h
#	fmt/string.h
#	fmt/time.h
2017-06-08 11:22:50 +02:00
Jonathan Müller
d3a9d03138 Fix missing '>'
(cherry picked from commit d8867a2b07b8be2adf5d503ecc9d9e65dcc59ec2)
2017-06-08 11:21:55 +02:00
Jonathan Müller
7aaa693fb3 Add extern templates for format_float
Fixes #413.

(cherry picked from commit 6c0125785bc39a57a424164dd07393d733c3982c)
2017-06-08 11:21:49 +02:00
alabuzhev
267bed868f Using FMT_NULLPTR instead of literal 0
(cherry picked from commit 49ccb2e4497ce3d2acae9c0cca81756aa341627d)
2017-06-08 11:21:41 +02:00
Victor Zverovich
f0a7da0219 argument index -> argument id
(cherry picked from commit 7ce7def515a38ea87517a1cd6406e4b773da241b)
2017-06-08 11:18:34 +02:00
Lectem
5a5c3a3c25 fix newer clang warnings
(cherry picked from commit 8f455c10b0f1aee898f71313b21c43b098dadb34)
2017-06-08 11:17:45 +02:00
Jonathan Müller
7fa8f8fa48 Update version 3.0.1 2016-11-01 09:24:49 +01:00
Jonathan Müller
1ef8b4a5de Update version to 3.0.1 2016-10-31 22:02:46 +01:00
Jonathan Müller
4a66897fb6 Update ChangeLog 2016-10-31 22:02:43 +01:00
Jan Hellwig
63639cba98 Fix Windows compilation with -fno-exceptions (#405)
(cherry picked from commit 15d0f327735b8fd2169c72ef923280e7e9d4978c)
2016-10-31 22:02:42 +01:00
Jan Hellwig
2baf2a5e2c Fix Linux compilation with -fno-exceptions (#402)
(cherry picked from commit 8c63ea432c7985eb056f1457d7edc8574d4fa2f8)
2016-10-31 22:02:42 +01:00
Victor Zverovich
fb9015b3a1 CHAR_WIDTH -> CHAR_SIZE to avoid collision with ISO/IEC TS 18661-1:2014 macro
(cherry picked from commit abbefd71666055daac9e14e78262620f9e845850)
2016-10-28 19:42:17 +02:00
chronoxor
0a0c2c9cdd Remove unnecessary "fmt/" prefix which should be maintained with additional include_directories() in each project. (#397)
(cherry picked from commit 1500f005250d7b3426f68f35dd1d6fe95542642e)
2016-10-23 12:17:31 +02:00
Victor Zverovich
1c9a674d24 Fix compilation on Cygwin (#388)
(cherry picked from commit cee50b7572e4416f5aa7a2a6068543c1e5cd04a9)
2016-10-23 12:17:30 +02:00
Jean-Michaël Celerier
6e6adf431f Add FMT_OVERRIDE macro to allow specifying overriding functions in c++11 compilers
(cherry picked from commit 9ec3bea2d6e2c4e92798dad6dc4679d287202f61)
2016-10-23 12:17:30 +02:00
Hugh Wang
f8289ba1da Fix compilation on Android.
(cherry picked from commit 5f26b5da2871cc5f562231af9d2062fb18df1ca5)
2016-10-23 12:17:30 +02:00
Victor Zverovich
79100a21bc Correct syntax
(cherry picked from commit 04335aeadb5bcd12dc6cf66234830d21357fe859)
2016-10-23 12:17:30 +02:00
Victor Zverovich
f4a417f8fb Fix handling of unsigned char strings (#373)
(cherry picked from commit a79c7b4e8fb2c1b512b38a6da22c69fe5680fd19)
2016-10-23 12:17:30 +02:00
Victor Zverovich
5047091ad8 Add 'a' and 'A' format specifiers
(cherry picked from commit 53f9e7f65c534c4c8def55727e8e43478d350ec6)
2016-10-23 12:17:30 +02:00
Victor Zverovich
f880a6cedf Add CUAUV, Seastar and ScyllaDB to the list of projects that use fmt
(cherry picked from commit 2bf59a97c6e65e4963913d9ba2f8d260e5c8fbf5)
2016-10-23 12:01:53 +02:00
Victor Zverovich
7459ce15d3 Don't use -std compiler flag if CMAKE_CXX_STANDARD is specified (#366)
(cherry picked from commit 12a6027b40ee0fa9e744d1d25333a2650fd9aed7)
2016-10-23 12:01:42 +02:00
Victor Zverovich
f0a0674040 Use a heuristic to detect empty strftime result (#367)
(cherry picked from commit a5d0adf3953f0ae3e698d5b5702d1e5a7bf3d87e)
2016-10-23 12:01:33 +02:00
Victor Zverovich
c79174e1c0 Correct buffer growth when formatting time (#367)
(cherry picked from commit 1a23f9c274071a91edde9fc28895c45940d4e90d)
2016-10-23 12:01:17 +02:00
Victor Zverovich
f116a28134 Add "n" to integer formatting types
(cherry picked from commit ed301089183f51d53f9f076b9676d9c2a1f7c505)
2016-10-23 11:59:32 +02:00
Taro Matsuzawa aka. btm
6d91a801a4 Update usage.rst: change Homebrew package name
(cherry picked from commit 1dbc6bd1fc4fb96dac8671caaf4bcc92ebac340a)
2016-10-23 11:59:05 +02:00
Nils Moehrle
e3de93298b Remove unreachable code below FMT_THROW
(cherry picked from commit c8c99736690c7fcbe959a131d48c1e511fde067d)
2016-10-23 11:58:44 +02:00
Victor Zverovich
6f27f98103 Update readme
(cherry picked from commit c110c6eca7dbca963b7153640135102356707e3d)
2016-10-23 11:55:51 +02:00
Victor Zverovich
b8540e613e Workaround broken MinGW installation on AppVeyor (#355)
(cherry picked from commit 1acfd07f1ed9d4055833a70d9195e57aee7bbe77)
2016-10-23 11:54:55 +02:00
Victor Zverovich
a20c81a061 Break a long line
(cherry picked from commit 903357c85373dc3fe280f364c9cc18ddf03fd617)
2016-10-23 11:53:12 +02:00
Tilman Keskinöz
5d306cf11c Fix compile on freebsd
(cherry picked from commit d7c4e1cb1ffe373a8455e260d8af60fb6a02c3b3)
2016-10-23 11:53:00 +02:00
Victor Zverovich
3f778b2099 check -> const_check to avoid a conflict with AssertMacros.h (#350)
(cherry picked from commit 8631694021ccba79b6907b27ccca6f23575ea31a)
2016-10-23 11:52:49 +02:00
Victor Zverovich
27f604a153 Fix handling of thousands separator (#353)
(cherry picked from commit 0e6df7e5119fe463b2bb692f13b7aff2f67c5660)
2016-10-23 11:52:39 +02:00
Sean LK
1127e7a953 Fix building with clang in header-only mode
Building under a recent clang compiler causes the use of an extern
template for the BasicData struct. However, the only instantiation of
that structure in format.cc is only done if FMT_HEADER_ONLY is not
defined. This causes the build to fail in C++11 or C++14 mode.
Therefore, only declare the BasicData template as extern if
FMT_HEADER_ONLY is not defined.

(cherry picked from commit 75f862bf574743e9c68e2b694142bdaf7cfcc44d)
2016-10-23 11:52:28 +02:00
Victor Zverovich
b838eb0c2e Reduce noise
(cherry picked from commit 5c876088d39d09a43899cd072cf24145ec24ce28)
2016-10-23 11:52:07 +02:00
Victor Zverovich
59f9936009 Fix a link (#347)
(cherry picked from commit 2e69e454d0e30dfe2cb009c0349425154be1fe6d)
2016-10-23 11:51:40 +02:00
Victor Zverovich
b26e239c05 Fix MSVC warnings
(cherry picked from commit e0d6f630f8407bf63ca809dd31ab4a613ff01aaa)
2016-10-23 11:51:09 +02:00
Victor Zverovich
300d4f3c89 Suppress -Wpadded warnings
(cherry picked from commit a201c6197715f6578f64cb96258c2d9dafeb1724)
2016-10-23 11:50:15 +02:00
Victor Zverovich
8cfff4da4c Fix -Wpessimizing-move
(cherry picked from commit 4569b4dbd603f17d1599219b1985996a41893230)
2016-10-23 11:50:02 +02:00
Victor Zverovich
92d3f31df5 Fix clang warning
(cherry picked from commit c9bb5468b6ffba250644db86bee0af4bcbb6dc78)
2016-10-23 11:49:54 +02:00
Victor Zverovich
df05947b8a Fix a -Wweak-vtables warning in clang
(cherry picked from commit b26e76efe9417ea773bb1e6c6ce875646c71a346)
2016-10-23 11:49:44 +02:00
Victor Zverovich
679fed9187 Don't use strtod_l on Android (#345)
(cherry picked from commit c7739536e8e1ec844527620a2669393a6e3df130)
2016-10-23 11:49:31 +02:00
Victor Zverovich
14b4a2b073 Suppress clang's documentation warnings
(cherry picked from commit 18e3f165763eabe992ea4ca0f81fdddf72f97eeb)
2016-10-23 11:49:19 +02:00
Victor Zverovich
8bb431fef3 Break long lines
(cherry picked from commit 231c16df25e562ae2b3c7a43050dc35ad9267202)
2016-10-23 11:47:59 +02:00