News for hackers. Stuff that matters.
Re:Formatting code should be unnecessary by a_e_k on Monday September 08, 2025 @03:04PM (#45172436)
I'm used to things like `// clang-format off` and on pairs to bracket such blocks, and adding empty trailing `//` comments to prevent re-flowing, and I use them when I must.

This was more about lamenting the need for such things. Clang-format can already somewhat tabularize code by aligning equals signs in consecutive cases. I was just wishing it had an option to detect and align other kinds of code to make or keep it more table like. (Destroying table-like structuring being the main places I tend to disagree with its formatting.)

There are no comments on this comment yet.