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?
clang-format --style=Webkit
I am us
In modern bash you can recursively crawl the file tree
for file_name in ./src/**/*.{cpp,h,hpp}; do if [ -f "$file_name" ]; then printf '%s\n' "$file_name" clang-format -i $file_name fi done
Here the source is assumed to be located in ./src and the .clang-format contains the formatting information.
./src
.clang-format