[clang] [Clang][UnsafeBufferUsage] Warn about two-arg string_view constructors. (PR #180471)
Ziqing Luo via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 17 22:18:29 PST 2026
================
@@ -2549,6 +2568,28 @@ class UnsafeBufferUsageReporter : public UnsafeBufferUsageHandler {
}
}
+ void handleUnsafeOperationInStringView(const Stmt *Operation,
----------------
ziqingluo-90 wrote:
We probably could use `handleUnsafeOperationInContainer` to handle both `std::span` and `std::string_view`.
https://github.com/llvm/llvm-project/pull/180471
More information about the cfe-commits
mailing list