> Clang has it although I've personally never tried it due to the horrible rigamarole of setting it up.
-% scan-build10 make
scan-build: Using '/usr/local/llvm10/bin/clang-10' for static analysis
...
scan-build: No bugs found.
What could ever have driven them to such a long and convoluted setup process?