[clang-tools-extra] [clang-tidy] modernize-use-std-print, format: Fix checks with Abseil functions (PR #142312)

Mike Crowe via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 1 10:23:39 PDT 2025


================
@@ -16,8 +16,8 @@
 
 namespace absl
 {
-template <typename S, typename... Args>
-std::string StrFormat(const S &format, const Args&... args);
+template <typename... Args>
+std::string StrFormat(const std::string &format, const Args&... args);
----------------
mikecrowe wrote:

`std::string` probably works just as well but I ought to be consistent so I'll change it.

https://github.com/llvm/llvm-project/pull/142312


More information about the cfe-commits mailing list