Update code to use modern c++ style and enable clang-tidy
Fix warnings given by clang-tidy 8 with checks 'bugprone-*,modernize-*' and enable clang-tidy in the build process if available.
Edited by Ben Davis
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Fix warnings given by clang-tidy 8 with checks 'bugprone-*,modernize-*' and enable clang-tidy in the build process if available.