[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 14 07:31:22 PST 2025
================
@@ -0,0 +1,68 @@
+.. title:: clang-tidy - performance-replace-with-string-view
+
+performance-replace-with-string-view
+====================================
+
+Looks for functions returning `std::[w|u8|u16|u32]string` and suggests to
+change it to `std::[...]string_view` for performance reasons if possible.
----------------
EugeneZelenko wrote:
```suggestion
Looks for functions returning ``std::[w|u8|u16|u32]string`` and suggests to
change it to ``std::[...]string_view`` for performance reasons if possible.
```
https://github.com/llvm/llvm-project/pull/172170
More information about the cfe-commits
mailing list