summaryrefslogtreecommitdiffstats
path: root/docs/styleguide.md
diff options
context:
space:
mode:
authorSohaib Mohamed <sohaib.amhmd@gmail.com>2021-09-30 00:44:52 +0200
committerBenBE <BenBE@geshi.org>2021-10-01 15:01:51 +0200
commit8932efece98ff55f1db9be79a6641936a7e75a4e (patch)
tree3639c7f9dd8559ef514342246550ea13fc8d1de3 /docs/styleguide.md
parentd23627fda9878f0a8640c24d95145d56882ba503 (diff)
astyle: Add `--pad-header` option
Insert space padding between a header (e.g. 'if', 'for', 'while'...) and the following paren. ex: if(isFoo((a+2), b)) bar(a, b); becomes: if (isFoo((a+2), b)) bar(a, b); Link: http://astyle.sourceforge.net/astyle.html#_pad-paren Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Diffstat (limited to 'docs/styleguide.md')
-rw-r--r--docs/styleguide.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/styleguide.md b/docs/styleguide.md
index af50abc2..18c53af3 100644
--- a/docs/styleguide.md
+++ b/docs/styleguide.md
@@ -196,7 +196,7 @@ They can be a great asset to structure the flow of a method.
If you want to automate formatting your code, the following command gives you a good baseline of how it should look:
```bash
-astyle -r -xb -s3 -p -xg -c -k1 -W1 \*.c \*.h
+astyle -r -xb -s3 -p -xg -c -k1 -W1 -H \*.c \*.h
```
Working with System APIs

© 2014-2024 Faster IT GmbH | imprint | privacy policy