Mario Werner
3133925ab2
Merge branch 'master' into update-project-layout
...
Conflicts:
posix.h
2016-02-03 13:15:26 +01:00
Mario Werner
03b9485cb3
perform the slower tests only in PEDANTIC mode
2016-02-03 13:05:18 +01:00
Mario Werner
ded46cc1b6
build test-main library again to improve build time
2016-02-03 12:59:03 +01:00
Mario Werner
c1a4cd0fa7
check if cppformat is the master project or just used as dependency
...
Based on that information less intrusive option defaults are choosen.
Additionally, packaging support is omitted.
2016-02-03 11:20:19 +01:00
Mario Werner
797d72133e
restored smoke test for syntax compatibility with the 98 c++ standard
2016-02-03 10:01:53 +01:00
Mario Werner
e0e8f717a0
FMT_USE_FILE_DESCRIPTORS is apparently only needed for the tests
2016-02-03 09:14:32 +01:00
vitaut
cfb25b0e80
Use typedefs instead of macros
2016-02-02 22:06:54 -08:00
vitaut
e489f879c3
Add locale tests
2016-02-02 17:21:09 -08:00
Mario Werner
c0e926109e
use the same warning options like before the PR
...
Additional notes on how to improve the current state have been added.
2016-02-02 17:14:51 +01:00
Mario Werner
b05a02b91c
remove comment which is now superfluous since the code has been moved
2016-02-02 17:04:12 +01:00
Mario Werner
d411aa165e
use quotes for including cppformat headers from the tests
2016-02-02 16:58:41 +01:00
Mario Werner
0a4acc9656
use the cmake and ctest to drive the appveyor build
2016-02-01 10:22:47 +01:00
Mario Werner
d3fe82c55b
propagate the build type into the find test
2016-01-31 20:17:39 +01:00
Mario Werner
a659d8079e
Merge branch 'master' into update-project-layout
2016-01-31 17:00:05 +01:00
Mario Werner
00fda9b25a
add a test for the find script on the build directory
2016-01-31 00:02:49 +01:00
Mario Werner
4aeeb49d23
updated compile-test and include a working test
...
This makes sure that the test does not break due to other reasons.
2016-01-30 23:49:39 +01:00
Mario Werner
fee52f79b8
update the includes in the tests to get rid of the deprecated warnings
2016-01-30 22:33:37 +01:00
vitaut
95c0fb5075
Add a "C" numeric locale
2016-01-29 16:29:46 -08:00
Mario Werner
5e7ab2f4ea
major cleanup of the test folders CMakeLists.txt
...
The new code does not rely on globally defined include directories
anymore. Additionally a lot of conditional code and has been removed
which improves readability a lot.
2016-01-29 16:21:17 +01:00
Mario Werner
b52d0bd9d4
define cppformat cmake targets with proper interface definitions
2016-01-29 13:23:08 +01:00
Mario Werner
0fb474be3a
outlined the compiler feature tests to improve script readability
2016-01-29 13:03:47 +01:00
Mario Werner
3019a8c1fd
moved code into cppformat subdirectory
...
Proxy headers have been placed into the project root to emit
deprecation warnings.
2016-01-29 12:49:35 +01:00
vitaut
7ee287d3d9
Sign extend arguments of smaller types passed to %ll? ( #265 )
2016-01-27 07:03:19 -08:00
vitaut
8474a6232d
Don't perform narrowing conversion for integers in printf ( #255 )
2016-01-24 00:43:42 +01:00
Mario Werner
ef7bbfff87
removed workaround for cmake versions prior to 2.8.10
2016-01-13 09:54:02 +01:00
vitaut
97e9ed11bc
Set interface include dir for gmock
2016-01-09 08:07:31 -08:00
vitaut
f55bf55d43
Correct comment
2016-01-09 08:06:59 -08:00
Nicholas Hutchinson
1a5a1708b7
Add fprintf overload that writes to a std::ostream
...
For completeness, add an overload for printf that takes a std::ostream.
2015-12-23 15:59:13 +13:00
vitaut
1cba0aea27
Simplify CMake config and do minor adjustments
...
for consistency with used coding conventions.
2015-12-10 07:24:23 -08:00
Maciej Dems
c47318afa8
Declarations for shared library in Windows.
...
Added __declspec(dllimport) and __declspec(dllexport) declarations
when compiled in Windows.
2015-12-10 13:36:18 +01:00
vitaut
e7f4566dd4
Replace <algorithm> with <memory>
...
~20% faster compile time on bloat-test
2015-12-04 22:57:36 -08:00
vitaut
0ea73df717
Merge branch 'custom-formatter'
2015-12-04 07:24:09 -08:00
vitaut
aa7bb101ed
Undefine fileno if defined in posix-test
2015-12-03 20:17:04 -08:00
vitaut
6ced4230f4
Initial support for custom formatters
2015-12-02 08:41:05 -08:00
vitaut
b8bd80ff28
Fix handling of empty non-null-terminated strings
2015-11-25 09:49:01 -08:00
vitaut
6cff6d8137
Use overloaded operator<< for enums if available ( #232 )
2015-11-24 08:18:19 -08:00
vitaut
1a2a333a1a
Use format specifiers when formatting null pointers & strings
2015-11-23 21:01:28 -08:00
vitaut
8beadace37
Improve detection of isinf, isnan and getsign
2015-11-21 07:20:18 -08:00
vitaut
9c03176e6b
Fix util-test
2015-11-13 15:16:10 -08:00
vitaut
2157375d5c
Use textual formatting for bool with %s
specifier in printf ( #224 )
2015-11-13 07:18:44 -08:00
vitaut
57ba9436a0
Format null string as (nil)
with p
specifier
2015-11-12 06:09:08 -08:00
vitaut
b5fda1c90d
Format null pointer as (nil) and null string as (null) in printf ( #226 )
2015-11-11 07:57:19 -08:00
vitaut
d6d019aa12
Don't assume that StringRef::compare returns +/-1
2015-11-11 06:44:57 -08:00
vitaut
aa741bafe6
Don't assume that char_traits::compare returns +/-1 ( #225 )
2015-11-10 06:40:20 -08:00
vitaut
8b86a74ad5
Allow formatting C strings as pointers ( #223 )
2015-11-09 07:17:36 -08:00
vitaut
7c24973637
Format (un)signed char as integer by default ( #217 )
2015-11-05 20:46:22 -05:00
vitaut
2d727e7d0e
Suppress bogus coverity warnings
2015-10-28 07:01:28 -07:00
vitaut
ae48a4c6f9
Add missing include
2015-10-22 08:56:52 -07:00
vitaut
f080b62047
Implement StringRef comparison operators
...
and use lexicographical comparison (#183 )
2015-10-22 08:41:42 -07:00
vitaut
fb27723a9f
Try fixing bogus coverity warnings, take n
2015-10-22 07:33:01 -07:00