Commit Graph

3245 Commits

Author SHA1 Message Date
Florin Iucha
e7b7dec517 Ignore unused local typedefs 2018-12-15 21:20:20 -05:00
Florin Iucha
73121e2c1f Re-enable the default checking for sign conversion 2018-12-15 21:20:20 -05:00
Florin Iucha
924d26113e Fix sign conversion 2018-12-15 21:20:20 -05:00
Florin Iucha
fd510b7507 Remove more signed/unsigned complications 2018-12-15 21:20:20 -05:00
Florin Iucha
f8f0818c67 Fix uninitialized members 2018-12-15 21:20:20 -05:00
Florin Iucha
f739b1937b Fix sign-conversion warnings 2018-12-15 12:44:22 -05:00
Florin Iucha
09ab6bcb38 Remove casts that are no longer needed 2018-12-15 09:58:17 -05:00
Florin Iucha
d78b8304fc Fix Clang7 conversion warning
include/fmt/format-inl.h:707:23: error: implicit conversion changes
signedness: 'typename std::make_unsigned<int>::type' (aka 'unsigned
int') to 'int' [-Werror,-Wsign-conversion]
  params.num_digits = to_unsigned(num_digits);
                    ~ ^~~~~~~~~~~~~~~~~~~~~~~
include/fmt/format-inl.h:755:33: error: implicit conversion changes
signedness: 'int' to 'size_t' (aka 'unsigned long')
[-Werror,-Wsign-conversion]
  params.num_digits)) {
  ~~~~~~~^~~~~~~~~~}
2018-12-15 09:52:47 -05:00
Florin Iucha
148dfc00c9 Fix GCC8.2 conversion warning
lib/fmt/include/fmt/format-inl.h:759:27: error: conversion from
‘ptrdiff_t’ {aka ‘long int’} to ‘int’ may change value
[-Werror=conversion]
   grisu2_prettify(params, size, cached_exp + exp, prettify_handler(buf, size));
                           ^~~~
2018-12-15 09:46:35 -05:00
Victor Zverovich
8668639ae2 Get rid of null_terminating_iterator in format 2018-12-15 06:17:25 -08:00
Nicolas
93fd473b8f Add support for builtin terminal colors. (#974) 2018-12-15 06:16:00 -08:00
HecticSerenity
61ad543c3e Windows .sln filename changed from FORMAT to FMT 2018-12-14 07:50:54 -08:00
Victor Zverovich
7f7504b3f5 Clean up docs 2018-12-12 18:21:13 -08:00
Victor Zverovich
37f599b1a1 Fix docs 2018-12-12 17:50:50 -08:00
Victor Zverovich
8c2e15aed5 Make printf work in search (#164) 2018-12-12 16:07:54 -08:00
Victor Zverovich
de71db6d42 Fix asan error (#977) 2018-12-12 11:29:39 -08:00
Victor Zverovich
b180b39152 Fix default formatting 2018-12-12 06:39:47 -08:00
Nicolas
24594c747e Disable printing the reset escape code when no style modifiers where applied. (#973) 2018-12-09 15:57:20 -08:00
Victor Zverovich
b0f2224719 Implement default chrono formatting 2018-12-09 15:56:15 -08:00
Nicolas
749276072f Add file stream support for stylized text printing. (#967) 2018-12-09 09:28:48 -08:00
Victor Zverovich
f54f3d0fb7 Move chrono-specific code to a separate header 2018-12-09 06:45:20 -08:00
Victor Zverovich
bf1f1c73e3 Fix time test 2018-12-07 08:19:13 -08:00
Victor Zverovich
b6bc6ec246 Add default ctor and fix use of constexpr macros in text_style 2018-12-07 07:22:18 -08:00
Victor Zverovich
acfa95d4a8 Workaround a bug in MSVC's strftime (#965) 2018-12-07 07:07:21 -08:00
Victor Zverovich
628f830583 More chrono formatting 2018-12-07 06:36:08 -08:00
Victor Zverovich
aa3b5aba41 Implement locale-specific minute formatting 2018-12-06 16:12:10 -08:00
Victor Zverovich
639de21757 Workaround more MSVC bugs 2018-12-06 12:16:04 -08:00
Victor Zverovich
3242ddf7b5 Fix warnings 2018-12-06 08:16:12 -08:00
Victor Zverovich
bd1104046b Workaround a bug in MSVC 2018-12-06 08:16:01 -08:00
Nicolas
81b5c4a5fd Add experimental emphasis support (#961) 2018-12-06 07:56:01 -08:00
Victor Zverovich
7c4eb0fbeb Fix warnings in time.h 2018-12-05 14:38:08 -08:00
Victor Zverovich
2d624218bf Fix another warning 2018-12-05 10:19:53 -08:00
Victor Zverovich
b31680990e Fix a warning 2018-12-05 09:49:39 -08:00
Victor Zverovich
b10ccb83e1 Add rpclib to projects 2018-12-05 06:42:33 -08:00
Victor Zverovich
0497875ff3 Stop the orgy of casts 2018-12-05 06:27:31 -08:00
Victor Zverovich
37dc495b9d Simplify MSVC workaround 2018-12-05 06:22:18 -08:00
liuping
2ff4996d05 Fix ambiguous complier error C2666 in vs2017.The '+' opeator may cause ambiguity.Avoid implicit conversion. 2018-12-05 05:55:43 -08:00
Florin Iucha
77656c672c Fix sign-conversion warnings reported by Clang7 2018-12-03 16:22:59 -08:00
Victor Zverovich
ea5e4790bd Fix formatting 2018-12-03 08:58:48 -08:00
Victor Zverovich
86681c4bb0
Update README.rst 2018-12-03 08:04:21 -08:00
Johan J
e867768ee6 Do not override user provided compile flag 2018-12-03 07:31:19 -08:00
Victor Zverovich
0c7f5c3ca4
Update README.rst 2018-12-02 08:22:51 -08:00
Daniela Engert
e7e2ab1070 Make return type of basic_format_args::max_size() consistent.
This squashes nasty narrowing conversion warnings.
2018-12-01 17:07:21 -08:00
Victor Zverovich
29352af369
Update README.rst 2018-12-01 08:19:20 -08:00
Victor Zverovich
68214bd904 More time formatting 2018-11-30 20:12:01 -08:00
Victor Zverovich
bcf3fcd673 Clean up bit fiddling for argument packing 2018-11-30 17:04:49 -08:00
Victor Zverovich
9dcf127fa5 Workaround a bogus MSVC warning 2018-11-30 13:47:04 -08:00
Victor Zverovich
b8b06e3e10 Fix conversion warnings in Grisu 2018-11-30 10:37:40 -08:00
Victor Zverovich
322b2594e0 Implement more time specifiers 2018-11-30 09:25:18 -08:00
hotwatermorning
0835f1ba3b Use full paths for fmt.pc.in 2018-11-30 06:17:33 -08:00