Skip to content

Instantly share code, notes, and snippets.

@bhagman
Created December 20, 2013 17:25
Show Gist options
  • Save bhagman/8058279 to your computer and use it in GitHub Desktop.
Save bhagman/8058279 to your computer and use it in GitHub Desktop.
My standard AStyle parameters for C/C++ source.
# AStyle: http://astyle.sourceforge.net/
#
# C/C++ Standard code formatting - Brett Hagman
#
# Allman, 2 space indent, indent classes,
# space padding around operators, space padding,
# remove extra space padding around parentheses,
# convert all tabs to spaces, indent switches,
# indent cases
--style=allman
--indent=spaces=2
--indent-classes
--unpad-paren
--pad-oper
--pad-header
--convert-tabs
--indent-switches
--indent-cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment