Victor Zverovich
80505995d0
Allow delayed type checking
2017-09-04 09:33:22 -07:00
Elnar Dakeshov
165895346c
Make ArgMap::init not explicitly instantiated ( #563 )
...
Make ArgMap::init not explicitly instantiated
2017-09-03 19:26:08 -07:00
Victor Zverovich
3e75d3e001
Fix handling of types convertible to int
2017-09-02 07:08:19 -07:00
Victor Zverovich
b0867f3fa0
AlignSpec -> align_spec and fix a warning
2017-08-27 09:56:45 -07:00
Alex Alabuzhev
89654cd127
to_wstring added
2017-08-27 18:52:57 +02:00
Victor Zverovich
f194a418f9
Replace fmt::is_same with std::is_same
2017-08-27 09:16:50 -07:00
Victor Zverovich
47c84d7974
Move part of write API (spec factories) to a separate header
2017-08-27 09:08:44 -07:00
Victor Zverovich
20168147dd
Add ptr, a helper function for pointer formatting
2017-08-27 08:41:28 -07:00
Victor Zverovich
77c892c88e
Fix more warnings
2017-08-27 08:16:46 -07:00
Victor Zverovich
be7d72ba0d
Fix expansion-to-defined warning
2017-08-27 08:00:15 -07:00
Victor Zverovich
d4c504ae1c
Fix a warning
2017-08-27 06:38:23 -07:00
Victor Zverovich
27ad6cee82
Use standard enable_if
2017-08-26 10:41:58 -07:00
Victor Zverovich
64681739fd
Fix a warning
2017-08-26 09:32:37 -07:00
Victor Zverovich
388061674a
Remove FMT_HAS_GXX_CXX11
2017-08-26 09:23:00 -07:00
Victor Zverovich
a7320bdce9
Fix a warning
2017-08-26 09:19:03 -07:00
Victor Zverovich
016acebb56
Remove legacy code
2017-08-26 09:09:43 -07:00
Victor Zverovich
07f8ffc44f
Suppress shadowing warnings
2017-08-26 08:50:09 -07:00
Victor Zverovich
466386d5cd
Suppress a warning in gmock
2017-08-26 08:50:09 -07:00
Victor Zverovich
70ef82a8e3
Workaround a bug in MSVC
2017-08-20 09:47:21 -07:00
Victor Zverovich
37eb419af2
Fix noreturn attribute detection ( #555 )
2017-08-20 09:39:28 -07:00
Manu343726
14d8534900
Explicitly cast range length to std::size_t to prevent conversion warnings
2017-08-20 06:52:52 -07:00
Manu343726
c2201ce02e
Accept wide chars as integers to prevent conversion warning
2017-08-20 06:52:52 -07:00
Henry Schreiner
6efbccb387
Add one more CMake warning fix
...
This will remove one more warning that can't be stopped from a calling CMakeLists. This possibly should be set to new at some point (CMake 3.3 behavior would be different / better), as well as 0048.
2017-08-19 07:03:56 -07:00
Victor Zverovich
5e0562ab51
Separate parsing and formatting
2017-08-13 13:09:02 -07:00
Victor Zverovich
032c83807f
Fix a segfault in test on glibc 2.26 #551 , take 2
2017-08-10 09:27:06 -07:00
Victor Zverovich
6655e804c4
Fix a segfault in test on glibc 2.26 #551
2017-08-06 20:18:04 -07:00
Victor Zverovich
1102d46508
Make format spec parsing context-independent
2017-07-30 08:58:24 -07:00
Victor Zverovich
45911770c5
Separate parsing and formatting in extension API
2017-07-29 07:50:16 -07:00
Victor Zverovich
7bd776e7db
Explain why null_terminating_iterator is used
2017-07-26 08:48:59 -07:00
Victor Zverovich
873c8451ed
Remove system_header pragma
2017-07-26 08:42:57 -07:00
Victor Zverovich
9f7957c073
Separate argument parsing and formatting
2017-07-26 08:37:46 -07:00
Victor Zverovich
da439f2838
Suppress warning about missing noreturn attribute ( #549 )
...
Suppress warning about missing noreturn attribute
Adding `[[noreturn]]` to `report_unknown_type` suppresses the Clang/GCC `-Wmissing-noreturn` warning:
Clang outputs:
.../fmt/fmt/format.cc:294:74: warning:
function 'report_unknown_type' could be declared with
attribute 'noreturn' [-Wmissing-noreturn]
...code, const char *type) {
^
GCC outputs:
.../fmt/fmt/format.cc:294:74: warning: function might be candidate for
attribute 'noreturn' [-Wsuggest-attribute=noreturn]
...code, const char *type) {
^
Cherry-picked d16c4d.
2017-07-23 20:21:11 -07:00
Victor Zverovich
eefdb379f9
Fix an unused argument warning
2017-07-23 20:15:52 -07:00
Victor Zverovich
2f4f49fd60
Switch from cstring_view to string_view
2017-07-22 08:24:37 -07:00
Mário Feroldi
d16c4d20f8
Suppress warning about missing noreturn attribute ( #549 )
...
Suppress warning about missing noreturn attribute
Adding `[[noreturn]]` to `report_unknown_type` suppresses the Clang/GCC `-Wmissing-noreturn` warning:
Clang outputs:
.../fmt/fmt/format.cc:294:74: warning:
function 'report_unknown_type' could be declared with
attribute 'noreturn' [-Wmissing-noreturn]
...code, const char *type) {
^
GCC outputs:
.../fmt/fmt/format.cc:294:74: warning: function might be candidate for
attribute 'noreturn' [-Wsuggest-attribute=noreturn]
...code, const char *type) {
^
2017-07-21 20:47:01 -07:00
Bjorn Fahller
9c56a8ce5c
Make format_arg() accept class hierarchies
...
If a base class can be formatted, it is assumed
that the hierarchy can be formatted from the base
class. The idiom is not uncommon with ostreams.
2017-07-18 06:16:46 -07:00
Victor Zverovich
a8d6f309c8
Minor optimizations
2017-07-17 06:52:56 -07:00
Victor Zverovich
ca0e38304c
Update README.rst
2017-07-16 14:12:48 -07:00
Victor Zverovich
d16582a038
Move printf-related code to printf.cc
2017-07-15 09:46:18 -04:00
Alexander Bock
81790d726f
Update format.h to remove C4574 error on MSVC 14.2
...
Similar to the Pullrequest #539 , `_SECURE_SCL` caused the same `warning C4574: '_SECURE_SCL' is defined to be '0': did you mean to use '#if _SECURE_SCL'`. `_SECURE_SCL` is defined in the `MSVC/14.10.25017/include/yvals.h` by Microsoft itself
2017-07-14 15:29:57 -04:00
Lee, Byoung-young
3028344380
Fix undefined behavior in UDL macro
...
`FMT_USE_USER_DEFINED_LITERALS` macro expands to `defined()` which is undefined behavior.
2017-07-13 19:10:11 -04:00
Victor Zverovich
361911dd18
Use preinstalled version of cmake on travis
2017-07-13 19:06:20 -04:00
Victor Zverovich
9ea183aaba
Fix MSVC build
2017-07-13 19:00:21 -04:00
Victor Zverovich
8f4b918c5b
Check argument index
2017-07-12 13:24:51 -04:00
Victor Zverovich
4193485b43
Remove test files
2017-07-12 13:15:06 -04:00
Victor Zverovich
07123e8ff3
Use Ubuntu Trusty on Travis for a new CMake
2017-07-12 13:13:36 -04:00
Victor Zverovich
586d63636a
Implement more efficient handling of large number of format arguments
2017-07-12 00:26:54 -04:00
Jonathan Müller
4045d7fea2
Fix warning about missing ' character
2017-07-11 20:45:17 +02:00
Alexander Bock
89c3bc585c
Remove warning C4668 in MSVC for FMT_GCC_VERSION and FMT_HAS_GXX_CXX11
2017-07-10 13:59:08 -04:00
Alexander Bock
4af9421ff0
Adding OpenSpace to the list of projects
2017-07-07 20:59:39 -07:00