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?

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?

@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?

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.

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!