This changes the guide to reflect the new formatting rules, and adds
instructions for using clang-format to automatically check and fix
most formatting issues.
Apparently new contributors were confused by the mix of tabs and spaces,
along with how they work out in practise - especially where one begins and
the other ends.
Fixes issue #9368