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
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
alabuzhev
267bed868f
Using FMT_NULLPTR instead of literal 0
...
(cherry picked from commit 49ccb2e4497ce3d2acae9c0cca81756aa341627d)
2017-06-08 11:21:41 +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
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
b8540e613e
Workaround broken MinGW installation on AppVeyor ( #355 )
...
(cherry picked from commit 1acfd07f1ed9d4055833a70d9195e57aee7bbe77)
2016-10-23 11:54:55 +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
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
ae85c91e80
Detect if lconv contains thousands_sep
...
(cherry picked from commit 96c28f748d6451b22a6f422c44973b872360e791)
2016-10-23 11:47:15 +02:00
Victor Zverovich
584fa85d18
Add fmt prefix to includes ( #332 )
...
Technically it is not necessary, but prevents errors when people add the
fmt directory itself rather than its parent to includes.
(cherry picked from commit e160c2b79a405757c1a6dab7e5a41b81c9e5ed05)
2016-10-23 11:46:38 +02:00
Victor Zverovich
d5dd1cd2a0
Use a mock to test locale support
...
(cherry picked from commit e2a332e5df1783580c42f62eb7f4bef04d8000b2)
2016-10-23 11:46:05 +02:00
Victor Zverovich
affac0bea0
Check if setlocale succeeded
...
(cherry picked from commit 5b106083e79b0f6c2f3850fa1c0ac0a69b81e595)
2016-10-23 11:44:32 +02:00
Victor Zverovich
ae8ae747bd
Workaround an issue with "delete this" in GMock and gcc 6.1.1
...
(cherry picked from commit d00b43c592eecb69d46210ec24968ab30ea330f7)
2016-10-23 11:44:19 +02:00
Victor Zverovich
90730e706b
Move ostream support to ostream.{h,cc}
2016-05-06 07:37:20 -07:00
Dean Moldovan
f3d6d3a8f2
Fix find-package-test failure with non-default compiler
...
The failure would happen when the main project was configured with
a compiler which is not the system default. The new configuration
was not forwarded to "ctest --build-and-test". This fixes it.
2016-05-04 00:51:28 +02:00
Dean Moldovan
8eaad79de7
Fix FMT_STATIC_ASSERT compile test
...
FMT_STATIC_ASSERT is defined in posix.h so expect_compile_error was
actually failing on a missing macro instead of the static assert.
2016-05-04 00:36:48 +02:00
Dean Moldovan
131d446183
Fix compile tests not clearing the cache after an error
...
The cache bug meant that a failed test would appear forever broken,
even if the proper fix was applied.
2016-05-04 00:36:11 +02:00
Dean Moldovan
3a04ebf14f
Fix user-defined literal detection for Intel C++ compiler
2016-05-03 13:43:51 +02:00
Victor Zverovich
fa5ebd27d4
Implement time formatting
2016-04-25 08:07:27 -07:00
Victor Zverovich
afd67497de
cppformat -> fmt
2016-04-24 09:06:12 -07:00
Victor Zverovich
5e1576f79f
cppformat -> fmt
2016-04-24 08:17:47 -07:00
vitaut
bfdca8b576
Make ArgVisitor public and document it
...
Also remove unnecessary namespace qualification.
2016-04-20 09:11:33 -07:00
vitaut
b69e6dcead
Make BasicArgFormatter public and add ArgFormatter
...
This allows providing custom argument formatters without relying on
internal APIs (#235 ).
2016-04-19 08:56:31 -07:00
vitaut
f68771abe4
Implement locale-specific integer formatting
2016-04-17 19:06:03 -07:00
vitaut
581afee039
Enable wstring in gtest ( #304 )
2016-04-13 08:26:42 -04:00
vitaut
a99891e7a5
Use a mock to test custom argument formatter
2016-03-19 07:36:28 -07:00
vitaut
52f89065e1
Make argument formatter customizable
2016-03-19 07:20:31 -07:00
vitaut
9ffe98c00e
Fix/suppress MSVC warnings
2016-03-19 06:39:33 -07:00
vitaut
63d7f3d116
Don't check for C++11 features if C++11 support is disabled
2016-03-18 08:10:06 -07:00
vitaut
c052cf11b9
Improve coding style consistency
2016-03-18 07:59:04 -07:00
vitaut
0c901efb16
Use less strict pedantic flags for tests because of GMock ( #291 )
2016-03-18 07:52:24 -07:00
vitaut
59607f5e99
Fix warnings on GCC 4.6.3
2016-03-09 07:47:08 -08:00
vitaut
763d1fe6a3
Suppress warnings in Google Mock
2016-03-08 07:36:22 -08:00
vitaut
7d6622942c
Break a long line
2016-03-08 06:55:41 -08:00
vitaut
0867c1b447
Test writing to ostream
2016-03-08 06:47:53 -08:00
Michael Winterberg
8f4b8edb8b
Added test of error code that forces the insufficient buffer code path.
2016-03-04 17:47:37 -08:00
vitaut
3ecad55910
Fix sign conversion warnings
2016-03-02 07:53:14 -08:00
vitaut
9d577cae6f
Fix handling of negative error codes in format_error_code
2016-03-02 07:01:21 -08:00
vitaut
6500f161f7
Fix a warning in freelocale mock ( #274 )
2016-02-11 06:55:53 -08:00
vitaut
abd93d824a
Move gmock into test/
2016-02-10 07:16:49 -08:00
vitaut
2b2aa8926f
add_subdirectory-test -> add-subdirectory-test for consistency
2016-02-10 07:01:40 -08:00
vitaut
70e44a8e7f
Simplify locale mock
2016-02-09 11:31:04 -08:00
vitaut
b8c6192a61
Simplify build config and enable C++11 by default
2016-02-09 08:43:39 -08:00
Mario Werner
6a79a3279b
build and test in c++11 and in c++98 mode
2016-02-07 18:23:02 +01:00
vitaut
1adee75e1c
Check if -fno-delete-null-pointer-checks flag is supported
2016-02-04 08:36:41 -08:00
vitaut
a4b611a3d3
Workaround GTest bug 705 ( #268 )
2016-02-04 08:15:19 -08:00
vitaut
220bb764e5
Use quotes for local includes
2016-02-04 08:08:33 -08:00