Ran clang-tidy over the code (#7708)

Ran clang-tidy over the code
41 files changed