Cases in switch block can be defined as macros. Now clang-format binpacks
them in one line. This patch make statement macro cases behavior as usual
'case' in switch block.
For example:
#define PROGRESS(x) \ ... \ case PROG_##x Formatting now: switch (x) { case 0: ... PROGRESS(var): ... } With patch: switch (x) { case 0: ... PROGRESS(var): ... }
This has to be done in Format.h and then updated by the DumpFormatStyles.py script.