mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-03 10:20:47 +00:00
Add --keep-one-line-blocks to astyle
This commit is contained in:
parent
3cd71f75e1
commit
0cc1f23826
@ -39,7 +39,7 @@ We follow [these guidelines](https://wiki.qt.io/Qt_Coding_Style) to format the c
|
||||
If in doubt, you can use [AStyle 2.06](https://sourceforge.net/projects/astyle/files/astyle/astyle%202.06/) to format the code. The command line for formatting the code according to the style is:
|
||||
|
||||
```bash
|
||||
astyle --style=kr --indent=spaces=4 --align-pointer=name --align-reference=name --convert-tabs --attach-namespaces --max-code-length=100 --max-instatement-indent=120 --pad-header --pad-oper filename.cpp
|
||||
astyle --project=src/Cutter.astylerc src/filename.cpp
|
||||
```
|
||||
|
||||
### Functions documentation
|
||||
|
@ -1,13 +1,12 @@
|
||||
--style=allman
|
||||
--convert-tabs
|
||||
--style=kr
|
||||
--indent=spaces=4
|
||||
--align-pointer=name
|
||||
--align-reference=name
|
||||
--indent=spaces
|
||||
--indent-namespaces
|
||||
--indent-col1-comments
|
||||
--pad-oper
|
||||
--convert-tabs
|
||||
--attach-namespaces
|
||||
--max-code-length=100
|
||||
--max-instatement-indent=120
|
||||
--pad-header
|
||||
--unpad-paren
|
||||
--pad-oper
|
||||
--keep-one-line-blocks
|
||||
--close-templates
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user