[libcamera-devel] [PATCH 4/5] utils: checkstyle: add keep-one-line-blocks
Kieran Bingham
kieran.bingham at ideasonboard.com
Fri Dec 21 09:13:10 CET 2018
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;
+ }
Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
utils/checkstyle.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/utils/checkstyle.py b/utils/checkstyle.py
index 32974815048a..a40d7dec879f 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'
)
--
2.17.1
More information about the libcamera-devel
mailing list