c - Astyle Incorrectly Formatting Linux Style Braces -
according linux kernel coding style, if 1 branch of conditional statement single statement, braces should used in both branches. example:
if (condition) { do_this(); do_that(); } else { otherwise(); }
this can found in section 3 of official linux kernel coding style document.
astyle's latest release 3.0.1
incorrectly formats conditionals this. example, astyle leaves following untouched:
if (condition) { do_this(); do_that(); } else otherwise();
is there known fix in astyle? if not, current development efforts underway? if not, point me in right direction fix integrated tool.
Comments
Post a Comment