Flexelint. The compilers have gotten better over the years but I wouldn’t consider doing C/C++ development without it.
It has saved me hundreds of hours of debugging since I first started using it in 1990. The very first day it found a ‘write past end of array’ in some code written by a Pascal programmer which was doing a[sizeof(a)] = ‘\0’; that would have stymied us for days.
It has saved me hundreds of hours of debugging since I first started using it in 1990. The very first day it found a ‘write past end of array’ in some code written by a Pascal programmer which was doing a[sizeof(a)] = ‘\0’; that would have stymied us for days.