diff mbox series

[1/3] check-syntax: update arguments for astyle v3.2 (possibly earlier)

Message ID 20241024182424.138616-1-paul@paul-moore.com (mailing list archive)
State New
Headers show
Series [1/3] check-syntax: update arguments for astyle v3.2 (possibly earlier) | expand

Commit Message

Paul Moore Oct. 24, 2024, 6:24 p.m. UTC
Update the astyle arguments in tools/check-syntax to work with modern
version of astyle.

It is worth mentioning that astyle v3.6.3 appears to have a problem
with aligning/indenting continuation lines, preferring blind
indentation over alignment.

Signed-off-by: Paul Moore <paul@paul-moore.com>
---
 tools/check-syntax | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tools/check-syntax b/tools/check-syntax
index 2115a7960dd5..2775eb46c6c4 100755
--- a/tools/check-syntax
+++ b/tools/check-syntax
@@ -57,10 +57,9 @@  function tool_c_style() {
 	astyle --options=none --lineend=linux --mode=c \
 		--style=linux \
 		--indent=force-tab=8 \
-		--indent-preprocessor \
 		--indent-col1-comments \
 		--min-conditional-indent=0 \
-		--max-instatement-indent=80 \
+		--max-continuation-indent=80 \
 		--pad-oper \
 		--align-pointer=name \
 		--align-reference=name \