Hi Miklos, On 11/17/25 02:52, Miklos Vajna wrote:
1) The whole clang-format story started by trying to avoid reformats -- by enforcing one reformat before git commit. So in case a clang-format upgrade would result in a reformat, then clang-format is useless for our needs and this can be solved by not enforcing clang-format anymore.
I was not around when the project introduced clang-format, so I can't speak for the original motivation. But, as someone who has used clang-format for other projects, I have to say one advantage is that you don't have to think about what coding styles to apply when making changes to parts of the code that others maintain. Speaking about this project in particular, when different parts of the same codebase use different coding styles, this can become an issue especially people tend to taking coding styles quite personally.
So, avoiding to reformat is not the only advantage of using clang-format. Kohei
