[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:38:02 PST 2026


================
@@ -689,6 +690,12 @@ static bool isSafeArraySubscript(const ArraySubscriptExpr &Node,
     return false;
   }
 
+  if (IgnoreStaticSizedArrays) {
----------------
fmayer wrote:

please leave a comment and add a test for this

https://github.com/llvm/llvm-project/pull/176466


More information about the cfe-commits mailing list