diff mbox series

tools: update astyle config for astyle v3.2.x

Message ID 20230428203007.651380-1-paul@paul-moore.com (mailing list archive)
State Accepted
Delegated to: Paul Moore
Headers show
Series tools: update astyle config for astyle v3.2.x | expand

Commit Message

Paul Moore April 28, 2023, 8:30 p.m. UTC
It appears that '--indent-preprocessor' and
'--max-instatement-indent' are no longer supported command line
options, remove them.

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

Comments

Paul Moore April 28, 2023, 8:32 p.m. UTC | #1
On Fri, Apr 28, 2023 at 4:30 PM Paul Moore <paul@paul-moore.com> wrote:
>
> It appears that '--indent-preprocessor' and
> '--max-instatement-indent' are no longer supported command line
> options, remove them.
>
> Signed-off-by: Paul Moore <paul@paul-moore.com>
> ---
>  tools/check-syntax | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/tools/check-syntax b/tools/check-syntax
> index 03bca8a..eacd92d 100755
> --- a/tools/check-syntax
> +++ b/tools/check-syntax
> @@ -69,17 +69,14 @@ 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 \
>                 --pad-oper \
>                 --align-pointer=name \
>                 --align-reference=name \
>                 --max-code-length=80 \
>                 --break-after-logical < "$1"
>  }
> -

Ooops, I forgot to refresh my patch after fixing that whitespace removal.

Regardless, I've merged this patch.

>  #
>  # Generate a properly formatted Perl source file
>  # $1 - source file
> --
> 2.40.1
diff mbox series

Patch

diff --git a/tools/check-syntax b/tools/check-syntax
index 03bca8a..eacd92d 100755
--- a/tools/check-syntax
+++ b/tools/check-syntax
@@ -69,17 +69,14 @@  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 \
 		--pad-oper \
 		--align-pointer=name \
 		--align-reference=name \
 		--max-code-length=80 \
 		--break-after-logical < "$1"
 }
-
 #
 # Generate a properly formatted Perl source file
 # $1 - source file