[clang] [clang][Wunsafe-buffer-usage] Add -Wunsafe-buffer-usage-in-static-sized-array (PR #176466)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 16 12:47:40 PST 2026
================
@@ -689,6 +690,12 @@ static bool isSafeArraySubscript(const ArraySubscriptExpr &Node,
return false;
}
+ if (IgnoreStaticSizedArrays) {
----------------
mxms0 wrote:
This is tested in https://github.com/llvm/llvm-project/pull/176466/files#diff-9503aca246fe467c99229ead62d7f9f980835491964e3a73b86dfd3b03a12607R90. Will add a comment :)
https://github.com/llvm/llvm-project/pull/176466
More information about the cfe-commits
mailing list