[clang] [Wunsafe-buffer-usage] Address some false positives in handling array indices that are decidably correct (PR #117370)

via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 20 19:29:46 PST 2024


================
@@ -463,6 +471,13 @@ AST_MATCHER(ArraySubscriptExpr, isSafeArraySubscript) {
       return true;
----------------
mxms0 wrote:

I changed the code and tests still pass, it looks like you're correct. :)

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


More information about the cfe-commits mailing list