From 8932efece98ff55f1db9be79a6641936a7e75a4e Mon Sep 17 00:00:00 2001 From: Sohaib Mohamed Date: Thu, 30 Sep 2021 00:44:52 +0200 Subject: [PATCH] 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 --- docs/styleguide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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