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): ... }
if you change Format.h you have to run docs/tools/dump_format.py this will regenerate the doc/ClangFormatStyleOptions.rst file which need to be part of any review that touches Format.h