I recently discovered cppcheck , probably not the best static controller, but highlighted some basic errors that have been inactive in our code for many years.
It is fast and easy to use. It is free and open source. It is actively developing, so I expect it to catch a new mistake soon.
source share