[clang-tools-extra] [clang-tidy] Add a new check 'performance-string-view-conversions' (PR #174288)

Zinovy Nis via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 7 05:05:34 PST 2026


irishrover wrote:

Supported cases for

 -  `foo_sv(42, std::string("foo").append("bar"), 3.14);`
 -  `foo_sv(42, std::string(sv).substr(0, 5), 3.14);`
 -  `foo_sv(42, std::string(sv).c_str(), 3.14);`


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


More information about the cfe-commits mailing list