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

via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 6 10:45:32 PST 2026


================
@@ -0,0 +1,34 @@
+.. title:: clang-tidy - performance-string-view-conversions
+
+performance-string-view-conversions
+==========================================
+
+Looks for redundant conversions from ``std::[w|u8|u16|u32]string_view`` to
+``std::[...]string`` in call expressions expecting ``std::[...]string_view``.
+And fixes them.
+
+
+Before:
+
+
----------------
EugeneZelenko wrote:

```suggestion
```

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


More information about the cfe-commits mailing list