utils: checkstyle: add keep-one-line-blocks
Enable --keep-one-line-blocks to prevent astyle from wanting to move single inlined blocks to cover 4 lines such as: - virtual int init() { return 0; } + virtual int init() + { + return 0; + } Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
53b549b631
commit
df7bd278a6
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ astyle_options = (
|
|||
'--pad-oper',
|
||||
'--align-pointer=name',
|
||||
'--align-reference=name',
|
||||
'--keep-one-line-blocks',
|
||||
'--max-code-length=120'
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue