Static code analysis and clang-tidy

The April meeting was all about static analysis with a focus on clang-tidy. We spent some time writing our own checker for clang-tidy to catch cases which would have been seen using the compiler flag -Woverloaded-virtual, i.e. redefining a virtual function in a derived class that doesn’t override a virtual function in a base class with the same name.

As Filip pointed out, the solution didn’t really work for cases where we have several base classes so I rewrote the solution a bit.

Here is the fixed solution:

And of course an updated test suite

Posted by Eric Elfving

IT-konsult på Alten med bakgrund som universitetslärare.