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

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

node.js - Node js - Trying to send POST request, but it is not loading javascript content -