[clang] [-Wunsafe-buffer-usage] Speed up warning a bit (PR #226605)
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 28 04:28:40 PDT 2026
================
----------------
zmodem wrote:
I think you've effectively moved the type check from here to the caller on line 1897 (the other caller in UnsafeBufferUsageCtorAttrGadget::matches already passes a CXXConstructExpr). So this could take a CXXConstructExpr rather than a Stmt now.
Same for StringViewTwoParamConstructorGadget below.
https://github.com/llvm/llvm-project/pull/226605
More information about the cfe-commits
mailing list