For -Wunsafe-buffer-usage diagnostics, we want to warn about pointer arithmetics since resulting pointers can be used to access buffers.
Therefore, I add an UnsafeGadget representing general pointer arithmetic operations.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang/lib/Analysis/UnsafeBufferUsage.cpp | ||
|---|---|---|
| 319–320 | Let's unhardcode the bind tags just like in the subscript patch? | |
Comment Actions
LGTM!
| clang/lib/Analysis/UnsafeBufferUsage.cpp | ||
|---|---|---|
| 354 | It's pretty likely that it won't because we'll need a more specialized gadget for this. | |
Let's unhardcode the bind tags just like in the subscript patch?