[clang] [clang][Wunsafe-buffer-usage] Add -Wunsafe-buffer-usage-in-static-sized-array (PR #176466)
Florian Mayer via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 16 12:28:28 PST 2026
================
@@ -689,6 +690,12 @@ static bool isSafeArraySubscript(const ArraySubscriptExpr &Node,
return false;
}
+ if (IgnoreStaticSizedArrays) {
----------------
fmayer wrote:
it seems like we also ignore stringliteral accesses? i am not sure that's what we want?
https://github.com/llvm/llvm-project/pull/176466
More information about the cfe-commits
mailing list