📄 notes.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Artistic Style - Release Notes</title> <meta http-equiv="Content-Language" content="en-us" /> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <style type="text/css"> /*<![CDATA[*/ <!-- body {margin-top:0.5in; margin-right:0.8in; margin-bottom:0.5in; margin-left:0.8in;} h1 {color:#0000A0; text-align:center; font-style:italic; font-size:200%;} h2 {color:#0000A0;} h3 {color:#0000A0;} p {font-size:105%;} li {font-size:105%;} --> /*]]>*/ </style></head><body> <h1>Artistic Style Release Notes</h1> <p> </p> <h3 id="1.22">Artistic Style 1.22 (April 2008)</h3> <ul> <li>New --recursive (-r, -R) option to recursively process sub directories.</li> <li>New --exclude option to exclude files and sub directories from processing.</li> <li>New --verbose (-v) option to display optional information, such as release number and statistical data.</li> <li>New --quiet (-q) option to suppress all informational messages.</li> <li>Change --version short option to -V.</li> <li>Change --convert‑tabs short option to -c.</li> <li>Change to NOT write a new or backup file if a file contents has not changed, </li> <li>Change console file input procedure to create a .tmp file and preserve the input file on a crash.</li> <li>Add Java Native Interface (JNI) for developers.</li> <li>New peekNextLine and peekReset functions in ASStreamIterator.</li> <li>Change ASEnhancer static variables to class member variables and reset them in the init() function.</li> <li>Patch from Jens Krinke to fix stack underrun when the number of closing brackets exceed opening brackets.</li> <li>Fix stack underrun when the number of closing parens exceed opening parens.</li> <li>Fix processing of C/C++ string literal continuation lines.</li> <li>Patch from Emilio Guijarro to correct padding and formatting of C# 'foreach' statements.</li> <li>Fix C# to correctly identify accessor calls as not being headers.</li> <li>Fix C# accessors (get and set) to break when breaking single line blocks.</li> <li>Modify template procedure to process C# generics.</li> <li>Fix processing of C# verbatim string literals.</li> <li>Fix indentation of C# methods containing 'base' or 'this' keywords.</li> <li>Fix indentation of C# methods containing generics.</li> <li>Fix indentation of C# enums containing a type.</li> <li>Fix indentation of C# catch blocks when 'catch' is a non-paren header.</li> <li>Fix C# breaking of linux style brackets for methods containing generics and methods containing accessors.</li> <li>Allow @ as a C# identifier prefix.</li> <li>Fix assert error on C# UTF-8 files when the byte-order mark (BOM) is not followed by a space or a comment.</li> <li>Fix nested preprocessor formatting by adding waitingBeautifierStack, activeBeautifierStack, waitingBeautifierStackLengthStack, and activeBeautifierStackLengthStack to the ASBeautifier copy constructor and class destructor.</li> <li>Fix ASStreamIterator end of file procedure for ASTYLE_LIB option.</li> <li>Add pragma statements for Intel compiler to disable specific warning messages.</li> <li>Move line number accumulators from ASSourceIterator class to private in ASStreamIterator class.</li> <li>Fix reset of ASFormatter isInPreprocessor flag when \ is followed by a blank line.</li> <li>Fix cin, cout, and cerr continuation lines to be indented.</li> <li>Fix indentation of inner classes that inherit a base class.</li> <li>Add astyle_main.cpp function declarations to astyle_main.cpp.</li> <li>Change global variable prefix from '_' to 'g_'.</li> <li>Inline selected ASStreamIterator functions.</li> <li>Fix brackets=attach from attaching a bracket to a preprocessor directive.</li> <li>Fix brackets=attach and brackets=linux breaking in an array immediately after a preprocessor directive.</li> <li>Modify Jack Handy's wildcmp() function to make Windows comparisons case insensitive.</li> <li>Fix not indenting a bracket when an attached bracket is broken and the following line is a no-indent comment.</li> <li>Add error message if 'options=' file cannot be opened.</li> <li>Bypass colon enclosed in quotes when processing 'case' statements.</li> <li>Fix brackets=none not always breaking a closing bracket when breaking single line blocks.</li> <li>Fix padding of header words that are in a definition (array).</li> <li>Fix indentation of line immediately after a case statement where the object is enclosed in parens.</li> <li>Fix breaking of multiple case statements when the object is enclosed in parens.</li> <li>Fix indentation when there is more than one case statement on a line.</li> <li>Remove processing for shouldBreakLineAfterComments (no longer used).</li> <li>Fix brackets=break not breaking if before a comment that is not at end of line.</li> <li>Fix brackets=none not space padding before a bracket.</li> <li>Fix brackets=break and brackets=none not breaking comments following a bracket.</li> <li>Fix blank line not being trimmed if inside a comment.</li> <li>Fix brackets=break incorrectly space padding a preceding preprocessor statement line.</li> <li>Fix brackets=attach attaching two consecutive opening brackets before an end-of-line comment.</li> <li>Fix break-blocks not inserting a blank line if a bracket preceding a comment was moved to the following line.</li> <li>Add 'X' to selected ASEnhancer variables to prevent conflict with ASBeautifier.</li> <li>Fix brackets=none not space padding after a closing bracket that precedes a closing header.</li> <li>Change minimum indent edit from 2 spaces to 1 space.</li> <li>Change to check for preprocessor definitions in C/C++ files only.</li> <li>Fix padding of template definitions when pad=oper is used.</li> <li>Fix comment formatting in nested preprocessor definitions.</li> <li>Fix header dependencies and warning messages for Linux GCC 4.3.</li> <li>Use file name from disk for output to maintain correct case in Windows.</li> <li>Fix pad=operator padding a negative value in a case statement.</li> <li>Fix incorrect identification of bracket type following a struct statement.</li> <li>Fix indentation of blank lines outside of brackets when --fill‑empty‑lines is used with --indent‑blocks or --indent‑brackets.</li> <li>Fix ASFormatter not identifying comments in preprocessor directives.</li> <li>Fix brackets=attach deleting a preceding blank line in array type brackets.</li> </ul> <h3 id="1.21">Artistic Style 1.21 (June 2007)</h3> <ul> <li>New function, formatArrayBrackets, to improve array formatting and indentation.</li> <li>Attach brackets to lines with end-of-line comments.</li> <li>Break brackets from lines with end-of-line comments without bringing the comments with them.</li> <li>Move ASFormatter and ASBeautifier static initialization from constructor to "init" function to allow for changes in the file type.</li> <li>Add --preserve-date (-Z) option.</li> <li>New functions formatBrackets, padOperators and PadParens to improve decomposition.</li> <li>Add identification of file mode (C, C#, or Java) to file open procedure.</li> <li>Keywords in headers now depend on file mode (C, C#, or Java) and object type (formatter or beautifier).</li> <li>Remove short options -c (mode=c) and -j (mode=java) since the mode is now set automatically from the file extension.</li> <li>Change Linux bracket formatting for header files.</li> <li>Fix formatting of empty blocks.</li> <li>Expand BracketType definition.</li> <li>Fix "do not change" bracket mode inconsistencies with other bracket formatting.</li> <li>Remove mode=java from Java predefined style.</li> <li>Change long option --errors-to-standard-output to --errors-to-stdout.</li> <li>Fix breaking of struct variable declaration.</li> <li>Add support for OpenVMS compiler.</li> <li>Inline the ASBeautifier function isLegalNameChar.</li> <li>Fix no-indent of block comments starting in column 1 or 2.</li> <li>Fix formatting of Java anonymous class defined as a method call parameter (bracket within a paren).</li> <li>Fix indentation for Java "for each" statement.</li> <li>Fix bracket being attached to a preprocessor directive.</li> <li>Fix extra indent of single line blocks when a previous line probation header is found.</li> <li>Fix formatting of block comments when continuation lines have different leading whitespace characters.</li> <li>Fix deleting a blank line before a bracket when brackets=attach.</li> <li>Fix segmentation fault on preprocessor continuation line followed by an empty line.</li> <li>Fix bad bracket indent that sometimes occurs when brackets=attach and it cannot be attached.</li> <li>Fix trimming of comment lines.</li> <li>Fix incorrect identification of "new" operator pointers as calculations.</li> <li>Fix incorrect identification of assignments as command type bracket.</li> <li>Fix incorrect indentation of pointers following a dot operator or pointer.</li> <li>Fix attaching "else if" statements to a single line block.</li> <li>Fix header recognition problem when header is proceeded by a tab instead of a space.</li> <li>Fix line break when colon is followed by a comment.</li> <li>Fix ASBeautifier not identifying a template definition.</li> <li>Change indents around the end of line to two indents.</li> <li>Change header includes to fix header dependencies for Linux GCC 4.3.</li> <li>Add output line number for debugging.</li> <li>Add filename to trace output.</li> <li>Add trace for arrays.</li> <li>Add trace for bracketType.</li> <li>Fix no-indent comment in a #else preprocessor directive.</li> <li>Fix block comment continuation line indent when block comments do not start the line.</li> <li>Adjust position of block comments (/*) when padding is added or deleted.</li> <li>Fix incorrect formatting if "return" is included in a function name.</li> <li>Fix incorrect padding if template depth is greater that one and pad=oper is used.</li> <li>Fix incorrect bracket type identification when bracket is followed by a comment.</li> <li>Fix incorrect bracket type identification when a "const" method is declared.</li> <li>Fix incorrect bracket type identification when pre-definition header is inside a paren.</li> <li>Fix deleting a space when attaching a bracket with line comments.</li> <li>Fix indentation when the conditional "?" operator is used in a single line statement.</li> <li>Fix indentation when single line "if" statement is used.</li> <li>Add pointers, multiply operators, and selected variables to do not unpad in paren unpad procedure.</li> <li>Return exit code 0 for --version and --help.</li>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -