How to call clang-format over a cpp project folder?
问题 Is there a way to call something like clang-format --style=Webkit for an entire cpp project folder, rather than running it separately for each file? I am using clang-format.py and vim to do this, but I assume there is a way to apply this once. 回答1: What about: clang-format -i -style=WebKit *.cpp *.h in the project folder. The -i option makes it inplace (by default formatted output is written to stdout). 回答2: Unfortunately, there is no way to apply clang-format recursively. *.cpp will only