A few modernizations using clang-tidy

6 jobs for master in 2 minutes and 25 seconds (queued for 1 second)