summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2018-12-20 15:57:02 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2018-12-21 15:18:32 +0000
commitdf7bd278a6c8cd0f5e956fb733a25379f3a71f9f (patch)
tree1dee64c889ae67b71473c5c19b8459e7937e3c90
parent53b549b63158c64a2f8764fcba8bf049fb1cb397 (diff)
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>
-rwxr-xr-xutils/checkstyle.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/checkstyle.py b/utils/checkstyle.py
index 32974815..a40d7dec 100755
--- a/utils/checkstyle.py
+++ b/utils/checkstyle.py
@@ -29,6 +29,7 @@ astyle_options = (
'--pad-oper',
'--align-pointer=name',
'--align-reference=name',
+ '--keep-one-line-blocks',
'--max-code-length=120'
)