Code Analysis Tools

Static analysis tool built on top of LLVM. Good at finding variables which are set and not used (some of which may have been added to quiet warnings with other tools...). Nice HTML-format display of annotated source.

Cyclomatic complexity analyzer. Guideline is cyclomatic complexity should be <= 15

One-liners

  • Find the most poorly converging zones throughout the test suite

grep -v "ISO\|GRID\|#" */*.per | sort -nr -k 5 | less

-k 5 sorts on nPres2Ioniz, -k 3 sorts on zone execution time