Just did an initial test run on a couple of files and Astyle 3.1 (from 2018 and what’s in the repos here) works pretty well but there will be some fine tuning after the runs from the looks of it.
Here are the updated settings:
#Attach braces
style=attach
attach-extern-c
#Use tab for indentation and spaces for alignment
indent=tab=4
indent-switches
indent-modifiers
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=60
#Attach closing while of a loop to the closing brace
attach-closing-while
#Padding
break-blocks
pad-oper
#pad-include
pad-header
align-pointer=name
delete-empty-lines
#squeeze-ws
break-one-line-headers
add-braces
#remove-braces
attach-return-type
convert-tabs
close-templates
max-code-length=100
Will do a full run soon. It definitely helps make the code easier to understand 🙂
Unfortunately, 3.1 doesn’t support squeeze-ws so the extra white-space will need to be adjusted manually
