Advertisement
justin_hanekom

format c/c++ code with astyle

Feb 1st, 2025
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. astyle --add-braces --add-one-line-braces --align-pointer=type \
  2.        --align-reference=name --attach-closing-while --attach-return-type \
  3.        --break-blocks --break-one-line-headers --convert-tabs --formatted \
  4.        --indent=spaces=4 --indent-after-parens --indent-cases --indent-classes \
  5.        --indent-col1-comments --indent-modifiers --indent-namespaces \
  6.        --indent-preproc-block --indent-preproc-cond --indent-preproc-define \
  7.        --indent-switches --lineend=linux --max-code-length=80 --pad-comma \
  8.        --pad-header --pad-oper --pad-paren-in --style=otbs <FILENAMES>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement