diff options
| author | ziqingluo-90 <ziqing@udel.edu> | 2023-03-20 16:57:50 -0700 |
|---|---|---|
| committer | ziqingluo-90 <ziqing@udel.edu> | 2023-03-20 17:07:03 -0700 |
| commit | 6a0f2e539b8ef1f510f62aceb36430b95e40f0d3 (patch) | |
| tree | a94a2b245bdf9e2657b0b48474d37a6fad280258 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h | |
| parent | b6f7e598ac1d72377cdcf5da84526f6289af13ca (diff) | |
[-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic
For each expression `e` of the form `*(DRE + n)` (or `*(n + DRE)`), where
`DRE` has a pointer type and `n` is an integer literal, `e` will be
transformed to `DRE[n]` (or `n[DRE]` respectively), if
- `e` is at the left-hand side of an assignment or is an lvalue being casted to an rvalue; and
- the variable referred by `DRE` is going to be transformed to be of `std::span` type.
Reviewed by: jkorous, NoQ
Differential revision: https://reviews.llvm.org/D142795
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h')
0 files changed, 0 insertions, 0 deletions
