From 4c750af775505cd02777b18c6c34d7287c49b14b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 22 Jan 2012 03:37:11 -0500 Subject: [PATCH] Add .astylerc configuring the Artistic Style C/C++/C#/Java formatter. --- src/.astylerc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/.astylerc 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 -- 2.26.2