When adding more tests, an issue with this approach was found using scopes:
switch (x) {
case 1:
break;
case (2):
break;
case 3: {
break;
} // <-- Seems we should offset this by 2
}
I'll look into getting this behavior and update the patch.
~Ryan
Hi all,
First time submitting a patch here. Any feedback is appreciated.
This proposed patch adds a new configuration option CaseLabelOffset for
clang-format which behaves similarly to AccessModifierOffset. Namely, it
permits modifying the indent/outdent of case and default labels.
With ind