diff options
authorSohaib Mohamed <>2021-09-30 00:44:52 +0200
committerBenBE <>2021-10-01 15:01:51 +0200
commit8932efece98ff55f1db9be79a6641936a7e75a4e (patch)
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: Signed-off-by: Sohaib Mohamed <>
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ b/docs/
index af50abc2..18c53af3 100644
--- a/docs/
+++ b/docs/
@@ -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:
-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-2021 Faster IT GmbH | imprint | privacy policy