您的位置:首页 > 其它

astyle使用方法记录

2014-11-05 18:40 756 查看
--pad-paren-out, -d Insert space padding around parenthesis on the outside only. Any end of line comments will remain in the original column, if possible. This can be used with --unpad-paren below to remove unwanted spaces.

--delete-empty-lines, -x

Delete empty lines within a function or method. Empty lines outside of functions or methods are NOT deleted. If used with --break-blocks or --break-blocks=all it will delete all lines

except the lines added by the --break-blocks options.

--pad-header, -H

Insert space padding after paren headers only (e.g. 'if', 'for', 'while'...). Any end of line comments will remain in the original column, if possible. This can be used with

--unpad-paren to remove unwanted spaces.

--indent-classes, -C

Indent 'class' blocks, so that the inner 'public:', 'protected:' and 'private:' headers are indented in relation to the class block. This option has no effect on Java and C# files.

--suffix=none, -n

Do not retain a backup of the original file. The original file is purged after it is formatted.

--delete-empty-lines, -x

Delete empty lines within a function or method. Empty lines outside of functions or methods are NOT deleted. If used with --break-blocks or --break-blocks=all it will delete all lines

except the lines added by the --break-blocks options.

--convert-tabs, -c

Convert tabs to spaces in the non-indentation part of the line. The number of spaces inserted will maintain the spacing of the tab. The current setting for spaces per tab is used. It

may not produce the expected results if --convert-tabs is used when changing spaces per tab. Tabs are not replaced in quotes.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: