From: W. Trevor King Date: Sun, 22 Jan 2012 08:37:11 +0000 (-0500) Subject: Add .astylerc configuring the Artistic Style C/C++/C#/Java formatter. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4c750af775505cd02777b18c6c34d7287c49b14b;p=dotfiles-public.git Add .astylerc configuring the Artistic Style C/C++/C#/Java formatter. --- diff --git a/src/.astylerc b/src/.astylerc new file mode 100644 index 0000000..7c46367 --- /dev/null +++ b/src/.astylerc @@ -0,0 +1,13 @@ +# default formatting options for Artistic Style +--style=linux # Linux (kernel) style brackets +--indent=tab=2 # Indent using tab characters, treat each tab as 2 spaces +--indent-classes # Indent 'public:', 'protected:' and 'private:' +--indent-switches # indent 'case X:' +--convert-tabs # Converts non-indentation tabs into spaces +--min-conditional-indent=2 +--max-instatement-indent=40 # Maximum spaces to indent a continuation line +--pad-oper # Insert space padding around operators +--unpad-paren # Remove extra space padding around parenthesis +--pad-header # Insert space padding after paren headers (e.g. 'if', 'for') +--add-brackets # Add brackets to unbracketed one line conditionals +--align-pointer=name # Attach * and & to the variable name