donat.nagy added a comment.

I don't think that the `&arr[N]` issue is too serious: we can just increment 
the array extent when the parent expression of the array subscript operator is 
the unary operator `&`. If the past-the-end pointer ends up dereferenced later, 
the current code is sufficient to report it as a bug (as the checker monitors 
all dereferences).

I'd be happy to see (a slightly extended variant of) this commit merged, 
because I could provide much better warning messages if I can access the 
concrete subscript/dereference operations. Of course if you don't have time to 
work on this I can put this up for review myself (probably after your other 
commits are handled).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159107/new/

https://reviews.llvm.org/D159107

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to