clang-tidy: fix warnings from version 7
Fix some warnings that are new since clang-tidy version 4, and update .clang-tidy
to suppress the rest.
Edited by Brad King
Fix some warnings that are new since clang-tidy version 4, and update .clang-tidy
to suppress the rest.