Repository navigation
Commit 7dc07d9
committed
refactor(php): keep the trait index in the LSP arena
The class-field pass stored the address of a stack-local index in ctx for
the duration of the pass. It was restored before returning, but the
pattern is what cppcheck's autoVariables check rejects. The index now
lives in the call's arena; on an allocation failure it stays NULL and
flattening runs the full scan, as before.
Signed-off-by: Martin Vogel <[email protected]>1 parent 9adada0 commit 7dc07d9
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4332 | 4332 | | |
4333 | 4333 | | |
4334 | 4334 | | |
4335 | | - | |
| 4335 | + | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
| 4340 | + | |
| 4341 | + | |
| 4342 | + | |
4336 | 4343 | | |
4337 | | - | |
| 4344 | + | |
4338 | 4345 | | |
4339 | 4346 | | |
4340 | 4347 | | |
| |||
4359 | 4366 | | |
4360 | 4367 | | |
4361 | 4368 | | |
4362 | | - | |
| 4369 | + | |
| 4370 | + | |
| 4371 | + | |
4363 | 4372 | | |
4364 | 4373 | | |
4365 | 4374 | | |
| |||
0 commit comments