Add clang-format for file format #2340
Replies: 1 comment 3 replies
-
What is wrong with the existing As for a project generated from the templates, it really makes no difference, since developers would just replace the auto-generated one with my own version, given that they would have their own formatting requirements. Whatever is put into the templates is unlikely to be what all developers need, and it's not like anyone would want to force them to use Axmol settings, since they're not working on the game engine source. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I want propose add a clang-format file to be used to format all Axmol files.
Reference: https://clang.llvm.org/docs/ClangFormat.html
Can be in version 3 of Axmol.
I will help us keep a desired format pattern, remove spaces etc on each commit., since each business have their own clang format pattern, example: https://github.com/google/googletest/blob/main/.clang-format.
Example of mine
.clang-format
file:It can be used also to project template. Only need copy when project was generated.
What i use to format (that need be converted to power shell similar function):
What do you think guys?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions