Skip to content

Commit

Permalink
Squashed 'external/fmt/' changes from e1832bcf00e..3b70966df5b
Browse files Browse the repository at this point in the history
3b70966df5b Add width and alignment support to error_code
05226c4bd9e Remove type_identity
c283b458a51 Cleanup format.h
fe79932c267 Fix conversion warning on chrono.h (#4170)
23fcf1942a6 Apply clang-format
3f296e3d4ad Workaround clang-format nonsense
a197a994c5a Add member format_as for std
6d43c755bc2 Fix a typo
1f87b1c58d2 Use fmt::formatter specialization for std::reference_wrapper to avoid undefined behavior (#4164)
ed8f8be70d8 More chrono padding (#4161)
55a0a9cd627 Cleanup pragma detection
5c926d9ff9a Remove FMT_UNCHECKED_ITERATOR
8b024662d4a Remove unnecessary inheritance
2f1424be90b Simplify handling of arrays
239aa6911bf Remove unwrap_named_arg
497df6db618 Remove formattable
a25e594f6ac Remove range_mapper
503dff93ecc Simplify has_formatter
3374a95b50b Simplify has_formatter
0e62e5dc7cd Simplify has_formatter
7ce013971bc Sync value ctors and type mapper
07e70151d57 format std::reference_wrapper
41977277125 Improve handling of unformattable args
527e98e3f87 Remove unformattable
8a19b2db779 arg_mapper -> type_mapper
e97df46ae1b Cleanup type mapping
39f1e0903ad Remove FMT_MAP_API
d832830f60b Cleanup type mapping
b329ff194ff Always detect encoding on Windows
2af403ce641 Simplify type mapping
b7513b1d002 Simplify type mapping
761d35f7632 Cleanup format_as handling
545dc4148a4 Add value ctor taking name_arg
3f5e45dd338 Simplify handling of _BitInt
2e3b6fbd9fe Remove redundant check
a0328e1f9fd Improve error reporting
de28ef5f867 Remove make_arg
2d5e561a6b2 Cleanup argument handling
6537fb439cb Update changelog
50aac2ac92c Add reference to iterator_traits
538d8777e56 Workaround a bug in libstdc++
0335312320e Demacrify UTF-8 check
463fe65f173 Cleanup FMT_COMPILE_STRING
1782a6eac0f Rename pragma macros
b52fb988463 Fix no locale build
b6a6ec7f1cb FMT_EXCEPTIONS -> FMT_USE_EXCEPTIONS
89999f16722 Simplify pragma
b90b4bc981e Remove FMT_STATIC_THOUSANDS_SEPARATOR in favor of FMT_USE_LOCALE
a1d6f9a9736 Minor cleanup
689ec7a087c Cleanup
28143dc99d3 Cleanup chrono
1bde49e545e Remove FMT_USE_USER_LITERALS
f924d16e478 fix: pass /utf-8 only if the compiler is MSVC at build time
ab8f9d5b080 Cleanup format API
6f62db098a3 Cleanup format API
ab44ee7521f Avoid shadowing
0d4e7e3feec Remove old workaround
8ee89546ffc Remove old workaround
a5deb96bf51 Update gcc version
61a241f03f7 Cleanup
ff82d8d2b58 Cleanup visit
0cc20f56398 Remove iterator_t
2ba6785d8fc Remove unused type
5644e7507ca Remove unnecessary forwarding
5345cfe6b32 Adjust clang-format
3e9fdb3a1fd Cleanup
3ada4aed203 Optionally exclude Unicode data
b37be85bf1e Optionally disable named arguments
70643b25111 Don't use format_error if exceptions disabled
967e2d177d6 Cleanup
02c5d637c5c Cleanup
047bf75c245 Cleanup
2d3ba32e795 Improve debug codegen
6c90b31fbd1 Improve debug codegen
9408c2ae8c2 Readd support for FMT_BUILTIN_TYPES
cc3ff1529d2 Cleanup
158893b384a Cleanup
f5a16a484bd Cleanup
cad876be4c8 Switch to vargs
debf6f82855 Switch to vargs
35f4fab4c42 Simplify value ctor
ff8f3247869 Minor cleanup
bd48715d812 Simplify make_format_args
57d6df62f7a Simplify make_format_args
8ed4a9dcc1c Improve debug codegen
f288f45e46a Prepare for arg_store unification
5bf577ca58f Backport from GoogleTest: "Work around a maybe-uninitialized warning under GCC 12" (google/googletest@0320f51)
b6de66819e1 Backport from GoogleTest: "Always initialize fields in MatcherBase constructors" (google/googletest#3797)
6870e4b06bb Workaround for GCC regression: false positive null-dereference in vector.resize
5cdef760349 Switch to gcc-13 for C++23 tests
a2c290bc34d Suppress a bogus MSVC warning
f1e3016c13a Optimize debug codegen
106dc8fd642 Reduce usage of type_identity
c3344e21e27 Cleanup base API
5f438c967e0 Remove make_arg
2a257798d41 Reenable FMT_BUILTIN_TYPES
22d50c1a9c2 Add support formatting std::expected<void, E>
1cc10ab68f4 Make is_formattable work with const/volatile void
6aaf7f4b79e Suppress a gcc 13 warning
b4d1d7f8e67 Improve debug codegen
1e0771c70a5 Fix broken CI for shared library on macos and linux (#4151)
3df47a46771 Make is_formattable work with void
b4aea98b550 Small fixes for some issues with modules builds (#4152)
565461a0d3a Update MSVC workaround in compile-test
e2b72387078 Cleanup format string API
1e0c6cdc3ba Make symbol sizes shorter
a8bcf81f72f Minor cleanup
15694c9a84f Workaround an MSVC bug
4cae2da0d06 Workaround a clang 17 bug
79e5ae919c3 Fix locale tests on FreeBSD
894b71da853 Fix handling of _BitInt
7a6a2a79ed8 Improve debug codegen
387395fc7c6 Cleanup base API
6a88415499d Add FMT_APPLY_VARIADIC
9a2aae37d45 Cleanup base API
88037683630 Cleanup base API
4fa533c70e7 Cleanup base API
d980dd71713 Cleanup base API
4eed488c663 Cleanup base API
a6ecd25b808 Improve debug codegen
9f29345ea09 Simplify mapped_type_constant
4986b4c0efd Simplify arg_mapper
a5f4d9820ca Simplify arg_mapper
bc3af512720 Reduce the number of instantiations
60740b7c240 Cleanup base API
9ef160d3094 Cleanup base API
0b80978c271 Cleanup base API
4f39d886503 Cleanup base API
a86b1acf6af Add mapped_t
c9ef07bc4e0 Minor cleanup
8c4cfab57ad Detemplatize parse
7e3aa6d9821 Minor cleanup
7c66216008b Minor cleanup
1416edabbb0 Cleanup base API
d4aeca9922d Bump actions/upload-artifact from 4.3.3 to 4.4.0 (#4141)
eee93ddffa8 Bump github/codeql-action from 3.25.11 to 3.26.6 (#4142)
b310a0d48bc Simplify parse_format_string
985c3399d13 Make map static
4a55b0d5fdf Remove duplicate error in compile-time checks
64a6c845928 basic_format_parse_context -> parse_context
66920feeee6 Improve compile-time checks
f4dad85c3aa Improve handling of named arguments in compile-time checks
db4becabedb Reduce template instantiations
fec2cc7af10 Improve handling of named arguments
621e9c17c58 Clarify why we have TYPE in native_formatter
bca70405569 Simplify compile-time checks
8c4b17fe648 Simplify compile-time checks
516a2e20492 Cleanup FMT_STRING
6797f0c39a4 Cleanup compile-time checks
db496b47c1c Remove old gcc hack
8eda3c8e900 Cleanup compile-time check
53316903e64 Move string_literal to format.h
8a484ad5771 Minor cleanup
b446cc9e67c fwrite_fully -> fwrite_all
0204dd359d9 Fix _BitInt formatter
d8876b7787c Minor cleanup
c0fab5e2f7c Reject modernity, embrace tradition
64313e915c4 Move redundant initialization to compile time
8e3da9da2c7 Improve binary size
2a2f73f7c19 Improve binary size
6dd9194abd5 Simplify format_to_result
a017bba0624 Minor cleanup
5eb023cd568 Improve binary size
f213d83306a Disable locale more
b3ccc2d2100 Disable locale more
7477dda28dd Simplify is_utf8_enabled
e582d377c25 Simplify locale handling
cd8d01d8cd9 Minor cleanup
377cf203e34 Add opt out for built-in types
5a0a37340c0 Add support for _BitInt on clang (#4072)
bbf8b3bd017 insert else branch to avoid unreachable code warning (#4130)
a3f3f2ec9a2 Fix gcc 8.1 - 8.3 bug and compilation (#4131)
e3676ca309f Change std::copy to detail::copy in chrono to fix MSVC compile errors (#4132)
0379bf3a5d5 Workaround -Wstringop-overflow
c59ee969f3d Improve compile-time formatting (#4127)
1a79bbfa83b Cleanup chrono formatting
89af1ad77df Cleanup chrono formatting
0e741e0daa5 Minor cleanup
d1acc667c1b Minor cleanup
4fb7008c900 Cleanup duration cast
589898e28bb Fix %S doc
62382e3650b Test full exponent range
94b8bc8eae1 Add an experimental writer API
020af729ddf Simplify ostream
fb07b37c5b1 Prioritize using the header files of self (#4116)
3135421257e Minor cleanup
993f56cff6f Make sign a proper enum class
c6c830e2034 Make align a proper enum class
b906c321f06 Get rid of bit fields
f8c0c8ee783 Cleanup public API
c71d03fcb0d Make `support/python/mkdocstrings_handlers/cxx/__init__.py` PEP 8 compliant (2 of 2) (#4115)
50a8c3e9bfa Reduce format specs size
98314319ad7 Fix ambiguous overload
0ce49aeb4a5 Add a test case
bf870ae3d15 Fix back_inserter lookup for non-std containers
c98518351ef Make `support/python/mkdocstrings_handlers/cxx/__init__.py` PEP 8 compliant (1 of 2) (#4110)
9f0c0c468be Add 'n' specifier for tuple and pair (#4107)
9f269062a7b Simplify default formatter
15f939c3de4 Improve handling of dynamic specs
928a07bb045 Simplify handling of dynamic specs
7891699737d Simplify handling of dynamic specs
58aba5a3def Deprecate append instantiation
5ee14d35087 Reintroduce constexpr fmt::formatted_size for C++20 (#4103)
b9c0e4dd828 Improve spec parsing
8445327c84d Simplify spec handling
8a06cee8262 Optimize shortest float formatting
1db22749667 Use us if Unicode is disabled
34ead4b39e4 Bump msys2/setup-msys2 from 2.23.0 to 2.24.0 (#4098)
3bf26009e4d Bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#4099)
d326c7298ac Fix conversion a surrogate pair (#4095)
6e462b89aa2 Get rid of std::copy
aff640c32f9 Make fmt::appender implement std::output_iterator concept (#4093)
e23fb6a8b48 Apply clang-format
16b3542f7ea Remove float_specs
29d7e580598 Remove float_format
919f7c5e7fc Reduce float_specs usage
a80d668a52a Diagnose invalid precision
707d7d923a1 Apply coding conventions
de6ed8df8b2 Test alignment
ffdc3fdbd90 Align digits table
0c028137917 Fix doc build
f8581bcecf3 Add redirect page
31b3c325f69 Mark namespace scope constexpr variable 'buffer_size' inline. (#4084)
52b32081f95 Wrap private module fragment content within conditional extern "C++", to match declarations. (#4083)
0b0b09f4017 Constrain format_uint
4173a6315a8 Improve format_decimal
4239dfe081e Simplify format_decimal
ba36a04811c Remove counting_iterator
f6b4a23b83b Unbloat chrono
42d3d703b58 Remove the commenting attempt
9fcd9c4c120 Remove all warning suppressions
7f157dca0a7 Workaround gcc stringop-overflow bug
524ca1c7154 Improve parsing
bdc45eef76c Simplify on_text
439b6d7212d Reenable print optimization
3cc32fdc8b0 Mark more formatters nonlocking
0c9fce2ffef Update version
b47d662e716 Update changelog
e84297f255d Bump version
0ad234ad131 Update changelog
de684ef776c Make appender compatible with fill
447c6cbf444 Update changelog
bc8d32e9643 Update changelog
0f87d6ffa69 Improve sign processing
808ea0191a6 Cleanup test
55e76e6c20e Update check-commits script
8757f1f8d62 Add a script to test multiple commits
9228f349a51 Inline visit
e10643add21 Add a perf-sanity test
f29a7e79703 Don't use memcpy in append
f97deb0d7de Minor cleanup
3541353512a Apply minor optimization
5ef93a9f805 Expand FMT_FORMAT_AS to include implicit conversions (#4055)
c9102619da7 Avoid extra reserve
58d792b6d33 Apply minor optimizations
25adca5666a Remove redundant overload
1408f1824d6 Simplify iterator detection
3fe4641d3a3 Add 2 more constexprs to fix compile error (#4065)
33e7ed1eb5b Improve handling of back_insert_iterator that writes into a buffer
6a192f8d34c Fix broken links in README.md (#4066)
92cdbbae06f Update api.md
13038f37e87 Support printing (const) volatile void* (#4056)
67252257504 Update changelog
e60ff504ea0 Fix usage with std::generator (#4057)
ccea338070c Update lint.yml
92227c77a4e Improve support for non-POSIX platforms more
486838f26fd Improve support for non-POSIX platforms
a43391199f7 Update changelog
7a8b54a0ef7 Don't confuse Glib::ustring with std::string
b50e685db99 Update version
e314776c2ea Fix version check
2208143accf Update changelog
a96259701e1 Improve std::complex formatter (#4050)
232c6bc4815 Update changelog
503e183b9e3 Bump version and add version validation
e50c8b6bd87 Fix disabling Unicode support
9d946a2fc42 Fix compilation errors due to `make_format_args` in gcc 14.1.1 with c++20 (#4042)
c4f6fa71357 fix: Make basic_format_arg::visit() const (#4043)
10f12fd3d27 Bump github/codeql-action from 3.25.3 to 3.25.11 (#4041)
24c1f886afc Remove double has_value check (#4040)
0041a40c135 Update version
686339f7c12 Minor cleanup
e355c116f94 Tweak wording in the changelog
707bb5b369b Fix grammar
6f68c62cb5d Ignore doxygen files
d059fe42a87 Ignore vagrant files
43c5b34749d Fix package build
e89568e6cba Update vagrant config
f5bf6f77812 Update build script
bd9af9a9f14 Update changelog
16521089054 Fix typo
84f61318259 Fix formatting of release notes
dedc17c1c95 Fix handling of tables, take 3
5d0adb6d74d Fix handling of tables, take 2
3f251fc9c98 Fix handling of tables
1930ed4bfac Fix release script
26d07e49b22 Fix formatting
949d5d17955 Fix build script
53186535d58 Bump version
602e3c3d11c Update build script
2952130cbcb Fix doc build
1e94a463edc Create build dir
a34120329a3 Update doc script
0fae326c42e Update site dir
8b1fcf5cc10 Update doc dir
ec46c3de972 Update build script
2d9d32c62b1 Update build script
4703ade76dc Update build script
52e7b25f953 Update changelog
b61c8c3d23b Change actions/github-script from e69ef54 -> 60a0d83 (#4038)
bbf44cc0005 Defines are still needed for FMT_MODULE as well (#4027)
06948fa710a Pin deps
d9899492c14 Simplify deps
ff72f553e3c Update changelog
7f951f25020 Optimize range formatter
7ae102bd664 make format_int constexpr (#4032)
edde9731260 Update test names
b1efe8516e2 Prevent silent data loss
2c0d9e9409f Add a define to force the use of fallback_file
18a9676d958 Add an experimental path
af8cd4e4042 Module purview can only contain direct preprocessor code (#4029)
514b6955d22 Suppress a bogus warning in MSVC (#4023)
ac967732305 Added missing std::declval for non-default-constructible types (#4024)
c00149f5e29 Fix a typo
71244e07deb Cleanup includes
a57b0194a60 Correct comments
febd8ed5fee Cleanup includes
0434026a954 Remove build-docs.py
0882bfef2a2 Don't deploy docs from a PR
2a2048a7855 Don't pass seconds as a double in examples
ea1187f4c8f Generate doxyxml in build
1334eedaf52 Improve docs
709169a4d8d Set the anchors
2bf1b3004ef Update changelog
8687315e86e Guard more system headers by `FMT_MODULE` (#4006)
98dd673cf82 Cleanup cmake
a245a8d4b9f Update changelog
e0b66e8f83b Remove dependency on <ranges>
794df69c8c5 Added range_format::(debug_)string formatter (#3973)
1d9df9ce1cd Remove a redundant comment
c4ea903250e Only install `FILE_SET` when needed (#4013)
3e3062c13ba Update msys2/setup-msys2 to v2.23.0 (#4012)
b998b471160 Update changelog
bff1de15e74 Fix deploy docs (#4010)
90932dd20d8 Update doc.yml
232c5e8547a Update doc.yml
26cdd1cb309 Update doc.yml
ad34d4df95f Update doc.yml
f796264449d Fix doc workflow
28673d96999 Update api.md
a5c1b5d4407 Update changelog
cc4d1245b86 README.md: update to remove "not yet release" remarks on clang-tidy
18a325f370f Disable footer
a1337aa8aad Merge literal-based API doc into the parent section
51a690ab153 Check if `.cc` exists in `fmt.cc` (#4005)
f332a81b722 Remove unnecessary build step
33a1de57af3 Deploy docs, take 3
c7252b33447 Deploy docs, take 2
3f71b606680 Deploy docs
215ce4d9795 Fix error getting config 'user.email'
89f3a810ec9 Fix error getting config 'user.name'
1f170d3fe01 Install mike
d175db8f5b5 Fix doc CI and clean workflows
a8cfc0cc2c7 Deploy dev docs
65e278b2867 Don't pollute the source directory
3620c174a61 Fix doc build
702b6f3788c Update docs
ed21034a10d Implement deployment
76d57f93db3 Remove old script
6ceef04dfe9 Merge branch 'master' of github.com:fmtlib/fmt
ab6b257a390 Implement doc building
077e4ae746c Added generator expression to /utf-8 compile option (#3995)
d4a8d26c557 Temporarily disable doc build in CI
b5c8fd783ce Fix doc build
735a613821b Build docs
a6e6e9c3c9a Fix a link
e6d4f927cc7 Improve docs
8de3e87da1f Add a CMake option to control Unicode support
46d2acb3ba3 Don't add `os.cc` to sources with FMT_MODULE (#4004)
fad0222a0c8 Export `compiled_string` so that user can customize one (#3999)
d1cab6a9aee Drop parentheses
fcb6a452d6e Improve docs
72928661edd Improve docs
d6ec6b7e273 Update docs
e845fc572e9 Ignore old changelog
2bf811b1d96 Also allow compiled format for clang >= 12 (#4001)
9653eed8e71 Don't hide the navbar
9b5d1826d42 Update changelog
fe741daaab9 Mention namespace `fmt::literals` in the document (#4002)
0f6e7165489 Fix missing includes in fmt.cc (#3994)
a3d95971be0 Update changelog
7bd11b5cdfd Remove a redundant extension to reduce divergence from std::format
21372bc0b2c Update cmake config
a0495e3eb5a Update changelog
cba5e8615a0 Update changelog
e9609dec1a4 Update changelog
6ebbaf4b4d1 Split changelog
4e31d2dc61d Update changelog
fcc0b499781 Fix `FMT_INSTALL` with `FMT_MODULE` (#3998)
0560c334fb2 Fix build with `FMT_MODULE=OFF` (#3997)
db9365a11b0 Update lint.yml
5c445bc42cb Reverting check to make shorter branch comes first
94f96d112db Fix undefined reference when compiling with FMT_STATIC_THOUSANDS_SEPARATOR and chrono.h
6abc1204f3c Check if the generator is ninja
a9b85176385 Use native c++ module support from CMake
fba06f0ee12 Update changelog
598e5180857 Remove redundant tests
0a555818d7b Usage -> Get Started
966a1b3d441 Update docs
adb8e27db0a Fix rendering of template parameters
2c84fa9ac9c Update docs
8da0240dbc4 Improve docs
83bf1423780 Update changelog
595e54919b5 Cleanup docs
c636967c5ca Improve docs
2392367efc3 Set primary color
06f8e02fb3a Remove rtd compat
c71d08fc225 github: update lint.yml to post details on formatting issue (#3988)
d9b90029bf7 Update docs
c0029b9847b Update docs
1ac9b317f2e New landing page
f68dee5351d Fix syntax highlighting
fb9ee2ed657 Simplify doxygen config
d29ceaf9155 Update .gitignore
9b12491c190 Migrate docs
ab29ef37d9b Migrate docs and cleanup
97117cbb51c Migrate to mkdocs
886237ae7b2 Emit anchors
904f2a5c207 Remove a non-pinned dependency
dab1a65d2c3 Sort out directory URI config
509d0181016 Fix a link
75ab3bc2a09 Add a script to invoke mkdocs
871538d3abc Fix install dir
250456d5a3a Migrate to mkdocs
38ba3d3993a Migrate to mkdocs
07141139742 Add macro support to api doc extraction
dd3b3f937b4 Merge branch 'master' of github.com:fmtlib/fmt
03d14c3beb4 Add support for multiple namespaces
416ac0fc7b6 Bump actions/checkout from 4.1.0 to 4.1.6 (#3986)
596add89930 Bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#3984)
a10e0321488 Improve docs
febeb51bde0 Documentation improvements
f18c2b65c46 Fix rendering of aliases
e3910b8a9cd Improve apidoc rendering
34b85678f9a Render members
e5c07c8356f Improve apidoc formatting
933d8ba3527 Improve apidoc formatting
e7ba467e9b1 Improve apidoc formatting
91a859ee4a2 Switch to markdown
6180442ed8c Render template parameters
418c5d09494 Render template params
aafdde7ef8e Switch to JavaScript syntax highlighter
d2ecfcfc450 Fix rendering on github
26b249435ee Improve doc presentation
4f330567e16 Improve apidoc generation
19927462497 Convert API doc to Markdown
a4d42c44f40 Cleanup comments
ddd8a54230e Add mkdocs config
fcd3e1e19c8 is_convertible_v -> is_convertible::value (#3983)
dc401b1c285 Move handlers outside of the docs
f7c5588c46d Cleanup syntax doc
a4e40677af5 Fix markdown
3479828e1d2 Fix markdown
191b0cb486a Fix markdown
e80f4a9b724 Cleanup syntax doc
022d8efec96 Update doc.yml
ca8eeb09eed Add glibc ext for day of month and week of year (#3976)
cddb41f6332 Fix markdown
0b0a05770fa Remove old contents
caa97da1f5c Add a word joiner to prevent line break
cf9833f40b7 Cleanup apidoc comments
b6638f9c297 Convert usage to Markdown
d9034601378 Fix markdown
ba2fbf6e1f3 Fix markdown
6e49bb887ad Remove CSS
e0f3e85076b Fix markdown
4fc3fce9cbf Improve syntax markdown
d6427ae7b21 Improve syntax markdown
3d6869065b6 Improve syntax markdown
551aa8d510c Add CSS
9e07045f500 Fix links
5735048b2da Improve mkdocstrings handler
33eba1049db Minor comment fix
43ab964c47b MSVC 17.10.0 + modules cannot find definition (#3972)
728f9bc388b Added std::type_info formatter (#3978)
e721046e274 Convert index to Markdown
552842c4ffd Convert syntax to Markdown
2c38766fd56 Add a mkdocsstrings handler
c8f1b4e7442 ci: Remove macos-11 runners, add macos-14 (#3980)
529dcd11feb Fix workflow, take 2
1441c660bfe Fix workflow
ecd1559732f Improve styles
a57a63dc0f7 Fix styles
8691f21b457 Fix styles
7e4fac3f4fe Improve styles
4a368625e88 Replace less with sass
f4e1ec81e25 Cleanup html
89c0d101055 Update description
12ef9e09d1d Fix class conflict
5afa6813883 Remove redundant github button
cc13102031e Fix navbar style
8ee6c940147 Reintroduce GCC-11 C++20 into CI (#3979)
766300b3c6f Update html
4115219ede7 Fix CSS path
95076981f78 Update documentation deps
1752d7fbbbe Added formattable concept (#3974)
1768bf97140 Added FMT_EXPORT for fmt::range_format and fmt::range_format_kind (#3970)
fc723fd6c70 Fix regression in #3710 (#3968)
b81761068b5 Check range_begin is dereferenceable (#3964)
706eabd5e58 Resolved warning C4127: conditional expression is constant (#3967)
028bffa0830 Update checks for dynamic_cast usage when compiled with no rtti (#3963)
86741b3e1cf Bazel support: Add missing platform dependency (#3965)
75e892420ed Minor cleanup
0b5287f8b7d Remove unused function
a4715c48b42 Bazel support: Add utf-8 to Windows build (#3962)
8e728044f67 Fix format_as for non-const begin/end views (#3955)
1f436c646ed Cleanup locking/buffering
db1ee420e09 Cleanup unicode check more
7d6ae972b98 Cleanup unicode checks
3460b30fd5c Improve utf-8 detection
b7809f91e2c Enable Unicode support by default
1dc71f21ead Enable Unicode by default
8db8f224902 Optimize join_view
d2473b7b73c Simplify join_view formatter
328d256c605 Apply coding conventions
57593a123be Simplify map formatter
10508a30ecd Enable fmt::join for uncopyable iterators (#3946)
16cec4f5913 Make the map formatter correctly handle elements with custom formatters
77bfd8499af Split range and map formatters
3af8ac7a068 Privatize write_debug_string
ceb406d06c7 Remove range_default_formatter
19afc9c3bb1 Update README.md
6ff593b027b Update README.md
78420bedddb Update README.md
a21bc7b8694 Update doc.yml
97d0613ba99 Update doc.yml
04b0ae418b6 Update doc.yml
27dd1dcf082 Update lint.yml
3649c3954fd Update lint.yml
7650ed04a3d Fix to_nonnegative_int
9234fe83f94 Add tests to check that isnan doesn't cause FP errors
8a8f4825a3e Fix: isnan() shouldn't cause FP exceptions
17062a0c9b4 Bump actions/upload-artifact from 4.3.1 to 4.3.3 (#3950)
88d3997f5e3 Bump github/codeql-action from 3.24.9 to 3.25.3 (#3949)
48c908453d8 Fix CodeQL alert (#3945)
cf1f55f7985 Specialize `formatter` for all `std::basic_string` types (#3943)
400f6a8ee28 Dedup ADL begin/end lookup
a3e0931ea22 Update signature in the doc
51eeccd0fbf const void* is neither a fundamental nor string type
f30f1fd5141 Document formatter specializations provided by base.h
f4b256c6676 Fix warning C26439
f746a59a5c4 Cleanup FMT_ASSERT
ee0c3351a4d Fix format_to + FMT_STRING for wide character type (#3931)
99735764ea7 Fix FMT_USE_NONTYPE_TEMPLATE_ARGS define back (#3937)
aa52eb765de Resolved warning C4996: 'fileno': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _fileno. (#3930)
116a9ce4880 Added FMT_IMPORT_STD feature macro (#3928)
5eb68c0ef25 Fix mix-up of 'FMT_BEGIN_EXPORT' and 'namespace detail'. (#3924)
550437b29ec Resolved warning C4127: conditional expression is constant (#3923)
4e8640ed90a Fix: enable `FMT_NORETURN` without exception support too (#3917)
c70e7b74737 Coding conventions and minor fixes
71144eeaff2 implement year_month_day (#3913)
843e2935641 Bump github/codeql-action from 3.24.6 to 3.24.9 (#3915)
f5ec5ada2bc Update syntax.rst
3b5f3de3b57 Make CMake version message less confusing (#3907)
ca9193983bd Replace std::fill_n with fmt::detail::fill_n (#3909)
74a187288bb Implemented fmt::day, fmt::month, fmt::year and related unit tests (#3906)
88620e53a4f Range formatting documentation  (#3905)
5d63e87d235 Add a formatter for float128
aecec01b34a Initial support for extended FP types
5af88653eb9 Cleanup
45b772f85c0 Improve std::complex formatter to be compatible with P2197R0 (#3900)
53347891cf6 Make line buffering test less flaky
38881e5acfb Fix handling of the fileno macro
6c7cc6a06fe Fix group_digits for negative integers (#3901)
365c3fbd258 Bump timeout
c0dac839828 Use p2197 format for complex by default
bb882c03bc1 Simplify path formatting
12acd7988b5 Fix ambiguous call
c710bfa10ca Apply clang-format
73f2b344b20 Add std::complex formatter
9f3fc6e38b1 Add XChar support into nested_formatter
c17816cb4ab Fix invalid fmt::formatter<>::format return type (#3895)
df6e7b22f7f Fix relative path for cmake in usage doc (#3890)
c816fa67519 Fix a warning
e281749c5de Simplify range formatter
11f2f30f0b9 Simplify range formatter
13cfaa2ab03 Guard against usage of _isatty when header was not included (#3880)
0861db500f8 Support character range formatting  (#3863)
dfe5b12c08d Update os-test.cc (#3883)
09935d82390 Bump github/codeql-action from 3.23.2 to 3.24.6 (#3876)
3bc6cc1e63a Protect against locking formatters
4fcc317dc98 Bump actions/upload-artifact from 4.3.0 to 4.3.1 (#3875)
ae1e93d34de Fix warning C4702 emitted from format.h (MSVC) (#3866)
f68f452deaa Workaround an ld warning on macOS
ebea5736a26 Fix chrono locale format bug for RHEL gcc (#3859)
ddf0b7d2b54 Fix warning C4365 emitted from printf.h (#3865)
0166f455f66 std.h c++23 build fix (#3856)
8e42eef4950 Don't error on min time_point
91b30e5b4ed More API details
7a63e233d28 Readd core.h to headers
44c3fe1ebb4 Fix handling of static separator
ae181cc93d0 C++23 compatibility: basic_string_view cannot be constructed from nullptr (#3846)
3a6fb2fcafc Fix some typos. (#3843)
0879504796d Fix typo in typename. `containter_type` -> `container_type`. (#3844)
34f415b56ea Fix %S formatting for chrono durations with leading zeroes  (#3814)
e17bc67547a Make scan variadic
06311ed1ced Fix fixed rounding around zero in Dragon
e5bab8dab42 added formatter for std::expected (#3834)
9f5f39cb507 Bump actions/upload-artifact from 4.0.0 to 4.3.0 (#3837)
ea581437e57 Bump github/codeql-action from 2.22.5 to 3.23.2 (#3836)
6321a97d6bd Simplify color formatting
4b6b32f3884 Deprecate wide stream function
1b54ba4b9d9 Fix UB in format_arg_store implementation. (#3833)
71a4a8d4799 Really fix MSVC warning about <bit> only being available in C++20. (#3832)
8e62172ab67 Fix a warning
28afff363c8 Improve buffering
af44c29744e Separate buffer initialization from flush
a1e1eedbb5c Minor cleanup
ffce3632b7a Add glibc stream support
b5669512b1a Don't hang on test failure
6435b169ec7 Add support for line buffering
6f260455aa5 Add scan_data::make_args

git-subtree-dir: external/fmt
git-subtree-split: 3b70966df5b88fb9c7c6a4c620ab663723802c31
  • Loading branch information
SimoneN64 committed Sep 22, 2024
1 parent e7e2f15 commit 2abfcd0
Show file tree
Hide file tree
Showing 166 changed files with 14,605 additions and 22,407 deletions.
6 changes: 6 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ IndentPPDirectives: AfterHash
IndentCaseLabels: false
AlwaysBreakTemplateDeclarations: false
DerivePointerAlignment: false
AllowShortCaseLabelsOnASingleLine: true
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignCaseColons: false
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2
updates:
- package-ecosystem: "github-actions" # Necessary to update action hashs
- package-ecosystem: "github-actions" # Necessary to update action hashes.
directory: "/"
schedule:
interval: "monthly"
# Allow up to 3 opened pull requests for github-actions versions
# Allow up to 3 opened pull requests for github-actions versions.
open-pull-requests-limit: 3
12 changes: 6 additions & 6 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ jobs:
Fuzzing:
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
- name: Build fuzzers
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@061583ebb5a96653e42feb3a97ee513eedc18078 # master
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@92182553173581f871130c71c71b17f003d47b0a # master
with:
oss-fuzz-project-name: 'fmt'
dry-run: false
language: c++
- name: Run Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@061583ebb5a96653e42feb3a97ee513eedc18078 # master
- name: Run fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@92182553173581f871130c71c71b17f003d47b0a # master
with:
oss-fuzz-project-name: 'fmt'
fuzz-seconds: 300
dry-run: false
language: c++
- name: Upload Crash
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
- name: Upload crash
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,33 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Add ubuntu mirrors
- name: Add Ubuntu mirrors
run: |
# Github Actions caching proxy is at times unreliable
# see https://github.com/actions/runner-images/issues/7048
printf 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
sudo sed -i 's~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:/etc/apt/mirrors.txt~' /etc/apt/sources.list
- name: Create Build Environment
- name: Create build environment
run: |
sudo apt update
sudo apt install doxygen python3-virtualenv
sudo npm install -g less clean-css
sudo apt install doxygen
pip install mkdocs-material==9.5.25 mkdocstrings==0.25.1 mike==2.1.1
cmake -E make_directory ${{runner.workspace}}/build
# Workaround https://github.com/actions/checkout/issues/13:
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
- name: Build
working-directory: ${{runner.workspace}}/build
run: $GITHUB_WORKSPACE/support/mkdocs deploy dev

- name: Deploy
env:
KEY: ${{secrets.KEY}}
run: $GITHUB_WORKSPACE/support/build-docs.py
KEY: "${{secrets.KEY}}"
if: env.KEY != '' && github.ref == 'refs/heads/master'
working-directory: ${{runner.workspace}}/fmt/build/fmt.dev
run: git push https://[email protected]/fmtlib/fmt.dev.git
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
format_code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Install clang-format
uses: aminya/setup-cpp@v1
uses: aminya/setup-cpp@290824452986e378826155f3379d31bce8753d76 # v0.37.0
with:
clangformat: 17.0.5

Expand Down
33 changes: 20 additions & 13 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
cxx: [g++-4.8, g++-10, clang++-9]
cxx: [g++-4.9, g++-10, clang++-9]
build_type: [Debug, Release]
std: [11]
shared: [""]
include:
- cxx: g++-4.8
install: sudo apt install g++-4.8
- cxx: g++-4.9
install: sudo apt install g++-4.9
- cxx: g++-8
build_type: Debug
std: 14
Expand Down Expand Up @@ -54,25 +55,31 @@ jobs:
std: 20
cxxflags: -stdlib=libc++
install: sudo apt install libc++-11-dev libc++abi-11-dev
- shared: -DBUILD_SHARED_LIBS=ON
- cxx: g++-13
build_type: Release
std: 23
install: sudo apt install g++-13
shared: -DBUILD_SHARED_LIBS=ON

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Set timezone
run: sudo timedatectl set-timezone 'Asia/Yekaterinburg'

- name: Add repositories for older GCC
run: |
# Below two repos provide GCC 4.8, 5.5 and 6.4
sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic main'
sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic universe'
# Below two repos additionally update GCC 6 to 6.5
# sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic-updates main'
# sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic-updates universe'
if: ${{ matrix.cxx == 'g++-4.8' }}
# Below repo provides GCC 4.9.
sudo apt-add-repository 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial main'
sudo apt-add-repository 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe'
if: ${{ matrix.cxx == 'g++-4.9' }}

- name: Add ubuntu mirrors
- name: Add repositories for newer GCC
run: |
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
if: ${{ matrix.cxx == 'g++-11' || matrix.cxx == 'g++-13' }}

- name: Add Ubuntu mirrors
run: |
# Github Actions caching proxy is at times unreliable
# see https://github.com/actions/runner-images/issues/7048
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@ jobs:
build:
strategy:
matrix:
os: [macos-11, macos-13]
os: [macos-13, macos-14]
build_type: [Debug, Release]
std: [11, 17, 20]
shared: [""]
exclude:
- { os: macos-11, std: 20 }
- { os: macos-13, std: 11 }
- { os: macos-13, std: 17 }
include:
- shared: -DBUILD_SHARED_LIBS=ON
- os: macos-14
std: 23
build_type: Release
shared: -DBUILD_SHARED_LIBS=ON

runs-on: '${{ matrix.os }}'

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Set timezone
run: sudo systemsetup -settimezone 'Asia/Yekaterinburg'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -52,14 +52,14 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
with:
sarif_file: results.sarif
13 changes: 4 additions & 9 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,16 @@ jobs:
# https://github.com/actions/virtual-environments.
os: [windows-2019]
platform: [Win32, x64]
toolset: [v140, v141, v142]
toolset: [v141, v142]
standard: [14, 17, 20]
shared: ["", -DBUILD_SHARED_LIBS=ON]
build_type: [Debug, Release]
exclude:
- { toolset: v140, standard: 17 }
- { toolset: v140, standard: 20 }
- { toolset: v141, standard: 14 }
- { toolset: v141, standard: 20 }
- { toolset: v142, standard: 14 }
- { platform: Win32, toolset: v140 }
- { platform: Win32, toolset: v141 }
- { platform: Win32, standard: 14 }
- { platform: Win32, standard: 20 }
- { platform: x64, toolset: v140, shared: -DBUILD_SHARED_LIBS=ON }
- { platform: x64, toolset: v141, shared: -DBUILD_SHARED_LIBS=ON }
- { platform: x64, standard: 14, shared: -DBUILD_SHARED_LIBS=ON }
- { platform: x64, standard: 20, shared: -DBUILD_SHARED_LIBS=ON }
Expand All @@ -41,7 +36,7 @@ jobs:
standard: 20

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Set timezone
run: tzutil /s "Ekaterinburg Standard Time"
Expand Down Expand Up @@ -83,12 +78,12 @@ jobs:
- name: Set timezone
run: tzutil /s "Ekaterinburg Standard Time"
shell: cmd
- uses: msys2/setup-msys2@7efe20baefed56359985e327d329042cde2434ff # v2
- uses: msys2/setup-msys2@5df0ca6cbf14efcd08f8d5bd5e049a3cc8e07fd2 # v2.24.0
with:
release: false
msystem: ${{matrix.sys}}
pacboy: cc:p cmake:p ninja:p lld:p
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Configure
run: cmake -B ../build -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug
env: { LDFLAGS: -fuse-ld=lld }
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
/CMakeScripts
/Testing
/_CPack_Packages
/doc/doxyxml
/doc/html
/doc/node_modules
/install_manifest.txt
CMakeCache.txt
CMakeFiles
Expand All @@ -21,4 +18,3 @@ build/
cmake_install.cmake
fmt-*.cmake
fmt.pc
virtualenv
Loading

0 comments on commit 2abfcd0

Please sign in to comment.