Hi @shirl
I think that what you need is a clang-format, not clang-tidy. clang-tidy is a linter, it doesn't format code.
Useful documentation on clang-format: https://clang.llvm.org/docs/ClangFormat.html
Here https://www.clangformat.com/ you can try different styles and see how they affect your code.
And this part:
avoid more than 60 lines in a block
no more than 60 characters on a comment line
avoid more than 500 to 1000 lines per file
prefer break, continue, and return to deeper nesting
How do you want to enforce it? Line breaks, whitespace can be added, but what do you want to do here?