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): ... }
Nit: please use CamelCase for parameters and local variables.