Bug 1513387: Add braces & newlines to re-wrap some return statements that clang-format unwrapped, in layout/svg. r?heycam
47 bytes, text/x-phabricator-request
|Details | Review|
We had a number of cases in layout/svg with old code of the form: if (condition) return; ...which clang-format unwrapped to: if (condition) return; ...which is suboptimal from a readability and debuggability standpoint (e.g. you can't set a breakpoint on the return statement). Filing this bug on cleaning those up (by adding braces around the return statement so that clang-format is OK with it being on its own line). (did this as some nice mindless/offline work while on a long flight yesterday.)
This patch shouldn't affect behavior; it's just making the existing control flow clearer and more debuggable.
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/8bf181f9b1c3 Add braces & newlines to re-wrap some return statements that clang-format unwrapped, in layout/svg. r=heycam
You need to log in before you can comment on or make changes to this bug.