mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-08 01:36:53 +08:00
* Add support for subsecond printing for std::chrono::duration according to the c++20 standard * Remove assert test that overflows intmax_t * * Hopefully fix int64_t to int32_t conversion errors. * Allow proper Duration::rep type to propagate via template argument deduction * * Hopefully fix int64_t to int32_t conversion errors. * Allow proper Duration::rep type to propagate via template argument deduction * Fix sign conversion (-Wsign-conversion) warning treated as error in num_digits() * Format chrono.h with clang-format * Remove extra forward slash in doxygen style comment Co-authored-by: Victor Zverovich <victor.zverovich@gmail.com> * Apply all suggestions from GitHub, except for replacing the utility subsecond_helper class with a function * * Move logic of handling subseconds from utility class to function with name write_fractional_seconds() * Revert write(Rep value, int width) function to previous state * Fix -Wshadow warning * Remove unsued get_subseconds() function, its logic has been moved to write_fractional_seconds() * Change comment from lowercase int to uppercase Int * Simplify test check * Integrate suggested changes * Remove static from detail functions, they are no longer member functions of a class and static is unnecessary. * Change comment from "amount" to "number" Co-authored-by: Victor Zverovich <victor.zverovich@gmail.com> |
||
|---|---|---|
| .. | ||
| add-subdirectory-test | ||
| compile-error-test | ||
| cuda-test | ||
| find-package-test | ||
| fuzzing | ||
| gtest | ||
| static-export-test | ||
| args-test.cc | ||
| assert-test.cc | ||
| chrono-test.cc | ||
| CMakeLists.txt | ||
| color-test.cc | ||
| compile-fp-test.cc | ||
| compile-test.cc | ||
| core-test.cc | ||
| enforce-checks-test.cc | ||
| format | ||
| format-impl-test.cc | ||
| format-test.cc | ||
| gtest-extra-test.cc | ||
| gtest-extra.cc | ||
| gtest-extra.h | ||
| header-only-test.cc | ||
| mock-allocator.h | ||
| module-test.cc | ||
| os-test.cc | ||
| ostream-test.cc | ||
| posix-mock-test.cc | ||
| posix-mock.h | ||
| printf-test.cc | ||
| ranges-odr-test.cc | ||
| ranges-test.cc | ||
| scan-test.cc | ||
| scan.h | ||
| std-format-test.cc | ||
| test-assert.h | ||
| test-main.cc | ||
| unicode-test.cc | ||
| util.cc | ||
| util.h | ||
| xchar-test.cc | ||