Hacker News new | ask | show | jobs
by lorenzhs 2399 days ago
Yeah, and if you want to use clang-format include reordering in such a project, you should read the docs for clang-format's "IncludeCategories". It allows you to separate your includes into blocks by providing regexes and associated priorities. Alphabetic sorting is done only within a block.

It's not like clang-format was written by idiots who never used the language before. Maybe read up on what the tool actually does before you get all mad at them?

1 comments

I'm not mad?

I think it's a harmful anti-feature that's worthy of criticism.