https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94433
--- Comment #2 from David Binderman <dcb314 at hotmail dot com> --- I use something like cppcheck --enable=all --language=c++ trunk.git/gcc/analyzer/*.{h,cc} This seems to work to me, although my copy of cppcheck is a hand tweeked version of their development code.