Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fmt as a dependency #244

Merged
merged 25 commits into from
Jun 4, 2023
Merged

Add fmt as a dependency #244

merged 25 commits into from
Jun 4, 2023

Commits on May 27, 2023

  1. Add fmt as a dependency

    Pulling fmt 10.0.0 into third_party
    danakj committed May 27, 2023
    Configuration menu
    Copy the full SHA
    01849b3 View commit details
    Browse the repository at this point in the history
  2. Add fmt support to integers

    danakj committed May 27, 2023
    Configuration menu
    Copy the full SHA
    f2e93fd View commit details
    Browse the repository at this point in the history
  3. Add fmt support to floats

    danakj committed May 27, 2023
    Configuration menu
    Copy the full SHA
    13df53f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    618d7d6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e36e5ea View commit details
    Browse the repository at this point in the history
  6. Add usize and isize fmt tests

    danakj committed May 27, 2023
    Configuration menu
    Copy the full SHA
    5043204 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a0c7745 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2023

  1. Grab fmt support for conditional use of typeid()

    So that we can use fmt when rtti is disabled on clang/gcc
    danakj committed Jun 3, 2023
    Configuration menu
    Copy the full SHA
    da38594 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    20fea53 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b8432a7 View commit details
    Browse the repository at this point in the history
  4. Move float implementations to .inc files instead of macros

    This allows IDEs and compiler errors to find the right
    source locations.
    danakj committed Jun 3, 2023
    Configuration menu
    Copy the full SHA
    5a50a65 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2023

  1. Allow formatting of Option and Result with unformattable types

    If the inner type is unformattable, it will be formatted as a string
    of byte values for the memory in the type.
    
    To do this we have helper formatters AnyFormatter and AnyOrVoidFormatter.
    danakj committed Jun 4, 2023
    Configuration menu
    Copy the full SHA
    82fc7a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0079df0 View commit details
    Browse the repository at this point in the history
  3. Get streams working consistently

    If you resolve the gtest templates in one TU to say that
    a type is not printable then it seems to cache it and
    affect other TUs. So stick it in prelude.h so it's always
    there.
    danakj committed Jun 4, 2023
    Configuration menu
    Copy the full SHA
    7bda340 View commit details
    Browse the repository at this point in the history
  4. Place stream support directly near the fmt::formatter

    This ensures that it is not possible for gtest users to end up
    including the type and printing it in one TU without stream support
    which then breaks printing it in another TU that also includes the
    stream support. They will simply always be printable by streams.
    This is done without including anything other than iosfwd (and string
    and fmt) in header files.
    danakj committed Jun 4, 2023
    Configuration menu
    Copy the full SHA
    1965a41 View commit details
    Browse the repository at this point in the history
  5. Support fmt for Range types

    danakj committed Jun 4, 2023
    Configuration menu
    Copy the full SHA
    6622e4d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f668d22 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    eeb351a View commit details
    Browse the repository at this point in the history
  8. Add fmt support to Vec

    danakj committed Jun 4, 2023
    Configuration menu
    Copy the full SHA
    dfe18f6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    559de07 View commit details
    Browse the repository at this point in the history
  10. Add fmt support to Array

    danakj committed Jun 4, 2023
    Configuration menu
    Copy the full SHA
    6cb59e0 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    aa6226e View commit details
    Browse the repository at this point in the history
  12. Add fmt support for Tuple

    danakj committed Jun 4, 2023
    Configuration menu
    Copy the full SHA
    85f46df View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    498921f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7ff0104 View commit details
    Browse the repository at this point in the history