Skip to content

Instantly share code, notes, and snippets.

@Compro-Prasad
Created March 5, 2019 13:41
Show Gist options
  • Save Compro-Prasad/23c0625f83c924cf7e82b623fa7b299b to your computer and use it in GitHub Desktop.
Save Compro-Prasad/23c0625f83c924cf7e82b623fa7b299b to your computer and use it in GitHub Desktop.
# Requirement: astyle version 3.1
# 2 space indents.
--indent=spaces=2
--indent-after-parens
--indent-col1-comments
--style=gnu
# Braces must always be used even for one line header blocks.
--add-braces
--pad-header
--pad-oper
--pad-comma
--align-pointer=type
--align-reference=type
# Only use spaces even when not meaning to indent.
--convert-tabs
# Preserve Original date don't let astyle overwrite it.
--preserve-date
# Return type above function name in case of function definitions.
--break-return-type
# Remove Trailing Whitespace.
# ? N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment