[clang-tools-extra] [clang-tidy] Add modernize-use-std-format check (PR #90397)
Danny Mösch via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 28 13:17:20 PDT 2024
================
@@ -0,0 +1,84 @@
+.. title:: clang-tidy - modernize-use-std-format
+
+modernize-use-std-format
+========================
+
+Converts calls to ``absl::StrFormat``, or other functions via
+configuration options, to C++20's ``std::format``, or another function
+via a configuration option, modifying the format string appropriately and
+removing now-unnecessary calls to ``std::string::c_str()`` and
+``std::string::data()``.
+
+In other words, it turns lines like:
----------------
SimplyDanny wrote:
```suggestion
For example, it turns lines like
```
https://github.com/llvm/llvm-project/pull/90397
More information about the cfe-commits
mailing list