首页
社区
课程
招聘
[转帖]Artistic Style 2.01 (November 2010)
发表于: 2010-12-3 10:21 2395

[转帖]Artistic Style 2.01 (November 2010)

2010-12-3 10:21
2395

Add recognition of language characters supported by the native locale.
Add formatting of numbers according to the native locale.
Add checksum verification to source file output.
Add formatting of MFC macros BEGIN_DISPATCH_MAP, BEGIN_EVENT_MAP, and BEGIN_PROPPAGEIDS.
Add error message if --recursive is used without a wildcard in the file name.
Add private (unusable) copy constructors for classes with dynamic allocation.
Add error message if the "cin" stream cannot be processed because a pipe is used.
Improve recognition of ARRAY_TYPE brackets.
Improve formatting of multi-line comments when the number of leading spaces must be changed.
Improve formatting of embedded SQL when the number of leading spaces must be changed.
Improve recognition of C++ templates.
Change --style=linux to always use a minimum conditional indent of one-half the indent length.
Change --pad-oper to pad operators in block parens.
Change to indent OpenMP pragmas with the code.
Change to display all (instead of one) option errors before abort.
Change the second argument of the fpError typedef from "char*" to "const char*".
Change Linux Makefiles to allow external values for CFLAGS and LDFLAGS.
Change all destructors to virtual.
Fix crash when --break-blocks is used and there is no closing bracket.
Fix deleting the previous line when a closing bracket follows a comment close.
Fix not recognizing text in quotes when identifying struct access modifiers.
Fix not popping the paren stack when a bracket precedes an end of line comment.
Fix not breaking a closing bracket when empty parens are enclosed in a single line block.
Fix indenting of C# anonymous statement closing bracket.
Fix recognition of C# non in-statement arrays.
Fix breaking single line blocks for C# abstract methods.
Fix not always clearing isNonInStatementArray flag.
Fix indenting "case" statements in a preprocessor definition when --indent-preprocessor is not requested.
Fix not recognizing the "volatile" type qualifier as a keyword.
Fix class initializers not being recognized as an in-statement indent.
Fix indenting Java abstract methods when "new" starts the line and brackets are broken.
Fix broken initializer lines (ending with comma) when there is more than one space after the type.
Fix --brackets=attach inserting a bracket inside comments following a preprocessor statement.
Fix --brackets=attach attaching an array bracket from a one line block to the previous line.
Fix --brackets=horstmann not breaking a comment line when the comment ends the line with a bracket.
Fix --pad-oper to recognize all * and & operators within a function call.
Fix --unpad-paren to recognize * and & operators within a function call.
Fix --pad-paren used with --delete-empty-lines causing a space to be added at end of line in some cases.
Fix --pad-paren padding a closing paren followed by a block paren.
Fix --add-brackets when a header is followed by a semi-colon.
Fix --align-pointer to pad or unpad pointers followed by parens or comments.
Fix --align-pointer to pad or unpad pointers following a scope resolution operator.
Fix --align-pointer to pad or unpad pointers that end the line.
Fix --align-pointer used with --pad-parens-out causing a space to be padded for each run.
Fix --break-blocks used with --delete-empty-lines causing an assert error when end of file is reached.
Fix --break-blocks used with --delete-empty-lines causing an assert error for some combinations of comment lines.
Fix --break-blocks used with --delete-empty-lines causing a duplicate line in some cases.
Fix --break-blocks used with --delete-empty-lines not always breaking opening blocks.
Fix --break-blocks used with --delete-empty-lines not always deleting empty lines for closing blocks.
Fix --break-blocks used with --fill-empty-lines not always correctly filling empty lines in a switch statement.
Fix --unpad-paren used with --pad-paren-in not padding between opening parens when multiple parens are used.
Fix --pad-oper incorrectly padding a template with a default parameter.
Fix ASBeautifier findOperator() method to recognize a C# lambda (=>) operator.
Fix ASFormatter nextLine() method to output an entire operator instead of individual characters.
Fix incorrectly identifying '*' as pointers in block parens.
Fix MinGW -Wshadow warnings.
Fix VS2010 "string subscript out of range" asserts.
Refactor:
Remove template definition for parseOptions() by using a vector reference instead of iterators as function arguments.
New ASOptions class to encapsulate global functions used by both the console and library builds.
Replace argc and argv in processOptions() with a vector to simplify test cases.
Replace IS_OPTION and IS_OPTIONS macros with ASOptions methods.
Replace GET_PARAM and GET_PARAMS macros with ASOptions methods.
Extract ASFormatter methods checkIfTemplateOpener() and isClosingHeader().

1.24跃到2.01值得更新。

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

上传的附件:
收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 306
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
这是什么东西,能吃吗?
2010-12-3 10:44
0
雪    币: 1708
活跃值: (586)
能力值: ( LV15,RANK:670 )
在线值:
发帖
回帖
粉丝
3
格式化代码的工具。
2010-12-3 11:54
0
游客
登录 | 注册 方可回帖
返回
//