Skip to content

CodeAnalysisTools

William Henney edited this page Oct 17, 2019 · 1 revision

Code Analysis Tools

  • clang-analyzer

    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.

  • hfcca

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

  • cppcheck

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

Clone this wiki locally