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

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

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -