Re: [PATCH] [clang-format]: Add support for changing case/default indent/outdent with clang-format

2017-02-07 Thread Ryan Livingston via cfe-commits
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

[PATCH] [clang-format]: Add support for changing case/default indent/outdent with clang-format

2017-02-06 Thread Ryan Livingston via cfe-commits
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