clang-format does not fail because of a poor implementation. It MUST fail becaus...
Mathias Hasselmann @taschenorakel@mastodon.green
clang-format does not fail because of a poor implementation. It MUST fail because we task it with answering semantic questions based on pure syntactic information.
Take the example in the picture: Not even the most advanced AST based code formatter will recognize, that the last three expressions form a semantic unit that must be kept together if possible.
And that's why people hate clang-format.