Move migration guidance to documentation

This commit is contained in:
Victor Zverovich 2026-09-04 09:37:28 -07:00
parent b4b1657c2a
commit ce039d14fe
2 changed files with 8 additions and 8 deletions

View File

@ -247,14 +247,6 @@ binary size (within a rounding error on this system).
to compare formatting function overhead only. Boost Format is a
header-only library so it doesn\'t provide any linkage options.
# Migrating code
[clang-tidy](https://clang.llvm.org/extra/clang-tidy/) v18 provides the
[modernize-use-std-print](https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-std-print.html)
check that is capable of converting occurrences of `printf` and
`fprintf` to `fmt::print` if configured to do so. (By default it
converts to `std::print`.)
# Projects using {fmt}
Notable users include:

View File

@ -120,6 +120,14 @@ You can download and install {fmt} using the [Conan](https://conan.io/) package
If the version is out of date or the package does not work,
please create an issue or pull request on the Conan Center Index repository. -->
## Migrating from `printf`
[clang-tidy](https://clang.llvm.org/extra/clang-tidy/) v18 provides the
[modernize-use-std-print](https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-std-print.html)
check that is capable of converting occurrences of `printf` and
`fprintf` to `fmt::print` if configured to do so. (By default it
converts to `std::print`.)
## Building from Source
CMake works by generating native makefiles or project files that can be