Use auto and clang-format this snippet.