In this topic I would like to specifically address the layout of the code, rather then the functionality itself.
Reason for creating this thread is reading about the bad indentation in the source tree. I would like to make a suggestion in order to better the situation without putting considerable manual effort into it. To this effect, I propose the following:
- Someone links me to a definition of our code style (layout), and i'll go find a formatter that could make all code be as such, or
- We decide on a code style (in respect to this project, the best choice would be one of the arch-styles, kernel, gnu, k&r or bsd) and we do the same as above, or
- we let clang-formatter loose and have it decide what would be a consistent style and at least have the code consistently formatted (possibly whilst having a holy war over what shall be the One True Bracestyle)
I'd also like to propose to have this done in one grand sweep of all code files, by a committer identified as 'formatter', or something similar indicating this was not a "real" change.
I would be interested to hear your opinions.