clang rewriting sample compiles and runs
ran the code through clang-format