webatintel / aquarium

BSD 3-Clause "New" or "Revised" License
24 stars 7 forks source link

Massive clang-formatting #143

Closed hujiajie closed 3 years ago

hujiajie commented 3 years ago

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.

gyagp commented 3 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.