3 ms·
Alternatively, you can instrument the code with checks for UB using a sanitizer. It won't be the compiler screaming at you but your CI running all your tests wi
by Orphis 6y ago
Alternatively, you can instrument the code with checks for UB using a sanitizer. It won't be the compiler screaming at you but your CI running all your tests with this instrumented version of your software.
Not perfect, but should work for most sane people running CI before merging changes.
- saagarjha 6y agoSanitizers don't catch all instances of undefined behavior, and they sure won't find anything that doesn't run…