Clang Check and Valgrind

  • Clang is a compiler; clang-check compiles and spits out the warnings.
  • Valgrind is a tool for finding memory errors.
  • Warnings from either of these may or may not indicate a bug in your program, but fixing them tends to be a good idea.

See the calc code in the scratch repo.