Commit Graph

2402 Commits

Author SHA1 Message Date
Victor Zverovich
17f93fe084 Make basic_string_view ctors constexpr 2017-09-29 12:26:57 -07:00
Victor Zverovich
d5e918b61f Detect C++14 compiler support 2017-09-28 08:57:54 -07:00
Victor Zverovich
be5b4552d9 Make null_terminating_iterator more iteratory 2017-09-27 22:40:58 -07:00
Victor Zverovich
643fb0662e Check for argument indexing switch 2017-09-27 21:18:37 -07:00
Victor Zverovich
d45544d14e Fix width handling in dynamic formatting 2017-09-27 19:04:15 -07:00
Victor Zverovich
8cbf544733 Add parse context 2017-09-17 09:05:01 -07:00
Victor Zverovich
ec4f5175f1 Replace Range with ParseContext in parse() 2017-09-16 17:07:03 -07:00
Victor Zverovich
83dd2ab919 Simplify dynamic_specs_handler 2017-09-16 15:30:13 -07:00
Victor Zverovich
5a8ae0bb05 Fix a warning 2017-09-13 08:36:06 -07:00
Victor Zverovich
39bc319b35 Update test results 2017-09-10 07:35:32 -07:00
Victor Zverovich
534bff7d31 Fix handling of max packed arguments 2017-09-09 07:38:52 -07:00
Victor Zverovich
0cda806dcc Fix compile tests 2017-09-08 11:25:49 -07:00
Victor Zverovich
a3191a9903 Get rid of FMT_MAKE_WSTR_VALUE macro 2017-09-08 08:42:01 -07:00
Victor Zverovich
fced79b0ee Get rid of old compat macros 2017-09-08 08:26:05 -07:00
Victor Zverovich
be887d9269 Replace internal::get with std::declval 2017-09-08 08:09:28 -07:00
Victor Zverovich
53cf073561 Get rid of FMT_MAKE_VALUE macro 2017-09-08 07:43:04 -07:00
Victor Zverovich
2972de4ba3 Char -> char_type 2017-09-06 07:29:48 -07:00
Victor Zverovich
9ee7c2163c Type -> type 2017-09-06 07:12:07 -07:00
Victor Zverovich
1a09194ae6 Cleanup type handling 2017-09-06 07:00:21 -07:00
Victor Zverovich
c18a4041f9 Remove conditional and to_iterator 2017-09-04 13:56:14 -07:00
Victor Zverovich
1cade7ef4d Remove FMT_USE_RVALUE_REFERENCES 2017-09-04 13:52:29 -07:00
Victor Zverovich
7413239f49 Remove unnecessary qualification 2017-09-04 13:12:52 -07:00
Victor Zverovich
af00e4f9c9 Remove printf_arg_formatter from format.h and cleanup 2017-09-04 12:28:53 -07:00
Victor Zverovich
44a26e5e21 CharPtr -> pointer_type and move to writer 2017-09-04 11:58:14 -07:00
Victor Zverovich
0fbd846561 Replace fmt::internal::make_unsigned with std::make_unsigned 2017-09-04 11:41:15 -07:00
Victor Zverovich
8a2bc0ab1b Add nullptr support 2017-09-04 11:10:08 -07:00
Victor Zverovich
80505995d0 Allow delayed type checking 2017-09-04 09:33:22 -07:00
Victor Zverovich
b0867f3fa0 AlignSpec -> align_spec and fix a warning 2017-08-27 09:56:45 -07: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
5e0562ab51 Separate parsing and formatting 2017-08-13 13:09:02 -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