Thanks! That's very helpful.
I have been using clang for a few weeks now, but was unaware that it had a static analyzer.
It's much faster than gcc... a full build only takes 2.5 to 3 minutes.
The extreme amount of warnings (around 50k) can be suppressed with -Wno-inconsistent-missing-override
I did some research two nights ago, and ended up with this in my custom.pri
QMAKE_CXXFLAGS_WARN_ON = -Wall -Wextra -Wpedantic -Wno-inconsistent-missing-override -Wno-nested-anon-types
-Wno-nested-anon-types is needed because of muparser.
-Wdocumentation can be added for anyone interested in cleaning up the dox.