I feel called out by this. :)
“In a weird kind of backwards way once we had the correct solution, we could finally understand what the real problem was.”
— What can clang-format teach us about the human condition? http://nibblestew.blogspot.com/2019/12/what-can-clang-format-teach-us-about.html
@tsdh I assume clang-format uses clang's AST and hence is able to re-format pretty much any C code, unlike other C formatters?
@mjog
I don't know. That's why I've asked. I mean, knowing exactly what you format solves technical issues but not the different subjective preferences people have which have been the main point of the posting.
@mjog
What is the correct solution provided by clang-format? Is it the same as with rustfmt or goformat, i.e., simply defining the default formatter style as the right one and thereby inhibiting any style wars from the beginning on?