ILSpy icon indicating copy to clipboard operation
ILSpy copied to clipboard

Pointer arithmetic compound assignments

Open dgrunwald opened this issue 8 years ago • 2 comments

We don't support code like this:

someStruct.PointerField += i;
int* x = someStruct.PointerField++;

I'm not sure if it's worth adding support for these constructs -- these are two quite complex features interacting with each other; and such code is quite rare.

dgrunwald avatar Oct 30 '17 22:10 dgrunwald

Pointer compound assignments were implemented on #1021. However we still need more test cases (especially for pre/post-increment), so I'm keeping this issue open.

dgrunwald avatar Jun 02 '18 15:06 dgrunwald

Note: the "Help Wanted" here applies to the request for additional test cases.

The compound-assignment-transform is one of the more complicated parts of the decompiler and probably not a good starting point for new contributors.

dgrunwald avatar Jul 25 '19 15:07 dgrunwald