Closed hujiajie closed 4 years ago
Do you hope to skip imgui files? Personally I still think we don't need to exclude them. I'm also not sure how you can skip imgui files by using the command above. Anyway, please state clearly in commit body that the files you hope to skip formatting and the reasons for them.
This is accomplished with:
find src \ -wholename src/include/d3d12 -prune -o \ -regex '.+/[a-z0-9_]+\.[a-z]+' -prune -o \ '(' -name '*.h' -o -name '*.cpp' ')' -exec clang-format -i '{}' ';'
Use of clang-format is recommended, but not enforced. It's almost certain that clang-format may result in visually worse typography in some places, but that's rare and in general the code looks better than before.