3 ms·
C23 improved struct compatibility so you might be able to leverage that to craft macros that better emulate slices. [1] There is an RFC proposal for the Clang
by hgs3 3y ago
C23 improved struct compatibility so you might be able to leverage that to craft macros that better emulate slices. [1]
There is an RFC proposal for the Clang frontend for adding bounds checking reminiscent of Microsoft's SAL. [2]
[1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3003.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3003.pdf
[2] https://discourse.llvm.org/t/rfc-enforcing-bounds-safety-in-c-fbounds-safety/70854 https://discourse.llvm.org/t/rfc-enforcing-bounds-safety-in-...
- uecker 3y agoYou may be interested in this: https://github.com/uecker/noplate.git https://github.com/uecker/noplate.git