[clang-tools-extra] [clang-tidy] modernize-use-std-print, format: Fix checks with Abseil functions (PR #142312)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 1 10:16:50 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);
----------------
vbvictor wrote:
Shouldn't this also be a `std::string_view`?
```suggestion
std::string StrFormat(const std::string_view &format, const Args&... args);
```
https://github.com/llvm/llvm-project/pull/142312
More information about the cfe-commits
mailing list