1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607
|
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="styles.css" rel="stylesheet" type="text/css" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<title>Artistic Style - News</title>
</head>
<body>
<h1>Artistic Style News</h1>
<h3>Artistic Style 3.6 (August 2024)</h3>
<div class="container-fluid">
<p>
A new option "--pad-include" / "--pad-include=none" was added to add or remove space padding after include directives.
</p>
<p>
Some C++ related formatting issues were fixed, e.g. apply "align-pointer=type" only if type is not a multiplication operand.
</p>
<p>
Build files were updated to apply c++17 compilation flags.
</p>
</div>
<h3>Artistic Style 3.5 (June 2024)</h3>
<div class="container-fluid">
<p>
A new option "--pad-negation" / "--pad-negation=before" was added to add space padding around ! operators.
</p>
<p>
Some C++ related formatting issues were fixed, e.g. apply "align-pointer=type" only if type is present.
</p>
<p>
On Windows, the file endings are no longer automatically converted to <code>\r\n</code> when using piped streams.
</p>
</div>
<h3>Artistic Style 3.4 (June 2023)</h3>
<p>
A new option "--indent-lambda" was added to apply the lambda recognition only if applicable.
Currently complex lambda functions are not indented properly.
</p>
<p>
Some C# and C++ related formatting issues were fixed.
</p>
<p>
A new option to enable padding of empty pairs of parentheses was added: "pad-empty-paren".
It can be combined with other parentheses padding options.<br>
The bracket padding options were enhanced by "pad-brackets-in" and "pad-brackets-out".
</p>
<p>
Ignores files ending with backup suffix from input file names list.
</p>
<h3>Artistic Style 3.3 (May 2023)</h3>
<p>
The source code has been refactored to no longer use the std namespace globally.
</p>
<p>
Some features of "modern C++" are now supported, ie. lambda function arguments and array initializers
with braces.
</p>
<p>
Two new options to remove superfluous whitespace and empty lines were added: "squeeze-ws" and
"squeeze-lines=#" (parameter value is the number of empty lines to keep).
</p>
<p>
Two new options to add or remove whitespace around square brackets were added: "pad-brackets" and "unpad-brackets".
</p>
<h3>Artistic Style 3.2 (March 2023)</h3>
<p>
The Artistic Style source code has been updated to use C++11 features. It will need Visual Studio 2015 or GCC
5 or higher to compile.</p>
<p>
A new option, "style=webkit", has been added. It is similar to the Stroustrup brace style except the
'else' keyword is attached to the previous closing bracket.</p>
<p>
Various bugs were fixed, especially causing reformatting the code in repeated runs.
</p>
<p>
Deprecated options have been removed.
</p>
<p>
Maintainer list was updated.
</p>
<h3>Artistic Style 3.1 (January 2018)</h3>
<p>
The Windows default option file location has been changed from USERPROFILE to APPDATA. This
moves the file from the User directory and to the user's hidden AppData<strong>\</strong>Roaming directory. The
USERPROFILE location has been depreciated and will be removed in a future release. You will need to relocate the
options file manually, Artistic Style will not change it. If the options file is in both locations, the new APPDATA
location will be used.</p>
<p>
The console build now accepts option file input encoded in UTF-16, or UTF-8 with a Byte Order Mark (BOM or signature).
</p>
<p>
New options, "break-return-type" and "break-return-type-decl", will break the return type
from function definitions and function declarations. Additional new options, "attach-return-type" and
"attach-return-type-decl", will attach the broken return types to function definitions and function
declarations. There is more information in the "Formatting Options" section of the documentation.
</p>
<p>
A new option, "style=ratliff", has been added as an alternate for banner style.</p>
<p>
Several changes have been made to <span style="white-space: nowrap;">Objective-C</span> which will improve formatting in certain cases.</p>
<p>
CMake can now be used to compile the AStyle builds. It is run from the top level folder instead of the
"build" folder, and builds a Release configuration by default. The "Install Information"
contains additional information. </p>
<p>
When formatting files from the command line, multiple file extensions may now be used. The file
extensions should be separated by commas or semicolons. For example, to format C++ files, use
"astyle /home/project/*.cpp,*.h". This will change the processing sequence to format all requested files
in a directory rather than formatting a directory once for each file extension. There is additional information
in the "Usage" section of the documentation.
</p>
<p>
New options "project", "project=####", and "project=none"will allow the use of an
optional project option file. This may be used to supplement or replace the command line options and the default
option file. The file is identified by a file name only and resides in the top level folder of a project. The
default file names are .astylerc or _astylerc. A specific file name may also be specified. Instead of an
option, the environment variable ARTISTIC_STYLE_PROJECT_OPTION may be used. Using the environment variable
will make the project file the default for all projects. When formatting files in a project, the project option
file will be obtained from the files directory or a parent directory. The documentation has the details
in the "Option Files" section. The "project" option is described in the
"Command Line Only" section.</p>
<p>
Allowing both option files enables them to be used for different purposes. For example, the default
options could contain the file formatting options and the project options could contain the excludes for the
given project. The order of precedence, highest to lowest, is command line options, project options, and default
options. Options with a value (e.g. style=kr, indent=spaces) may be replaced by an option with a higher precedence.
The binary options (indent-classes, pad-oper) cannot be changed. Once they are set they stay set. Both the
default and project option files may be disabled if they are present and not required. When testing the
option files, the options "verbose" and "dry-run" may be used. The option files used
will be displayed by the "verbose" option.</p>
<p>
When making changes to more than one file in a project, it may be desirable to format an entire folder. Wildcards
may be used in a single folder without recursive. The current directory is used if a path is not given. So,
for example, to format all changed files in the current directory using the project options, use the command:
"astyle --project -A9s *.cpp,*.h". This example uses the project option file .astylerc
or _astylerc and overrides the project options with the command line -A9s options.</p>
<p>
Language translations have been added for the new project option file. A few of the other messages were changed
as well. If there is a better translation available report the change as a bug report. Be sure to include the
new translation. Translations are in the ASLocalizer.cpp file.</p>
<p>
A new virtual method, getPeekStart(), has been added to the pure virtual class ASSourceIterator. If you have
inherited this class to access the formatter, you will need to add a method similar to getPeekStart() in the
ASStreamIterator class in astyle_main.h.</p>
<p>
The Artistic Style source code has been fuzz tested with American Fuzzy Lop (AFL) and libFuzzer from Clang. This
will help prevent crashes caused by invalid input. There were about 30 corrections made to the source code. Most
of the crashes were caused by asserts which would not be present in a release version. There were a couple of
corrections that required logic changes. The changes should not affect the way the code is formatted.</p>
<p>
The documentation file, astyle.html, now has a sticky button in the lower right corner. It appears after you
have scrolled past the Contents section. It is labeled "Top" but actually takes you back to the Contents.
The purpose is to improve speed in navigating the document. </p>
<p>
If you are using Windows XP, there is a download file available that has an XP compatible executable. Artistic
Style will still compile with Visual Studio 2010.</p>
<p>
Thanks to Rian Quinn, David Haney, and Tamás Kurucsai for their contributions.</p>
<h3>Artistic Style 3.0 (April 2017)</h3>
<p>
Release 3.0.1 (May 2017) is a maintenance release and no new features were added. A list of changes is in
the Release Notes. The following information is for the original 3.0 release. Thanks to Juan Alday for his
contribution. </p>
<p>
In the Artistic Style documentation, in General Information, Other Considerations, there is a list of
terminology used for special characters used in programming. The terms used by Artistic Style have been
different than is used by Visual Studio, Clang, and others. In this release the terms used by Artistic Style
have been changed to the ones most commonly used in programming documentation. The following chart indicates
the changes.</p>
<center>
<table>
<thead>
<tr>
<td><strong>NEW</strong></td>
<td></td>
<td><strong>OLD</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>braces or curly braces</td>
<td> { } </td>
<td>brackets</td>
</tr>
<tr>
<td>parens or round brackets</td>
<td> ( ) </td>
<td>parens</td>
</tr>
<tr>
<td>square brackets</td>
<td> [ ] </td>
<td>block parens</td>
</tr>
<tr>
<td>angle brackets</td>
<td> < > </td>
<td>angle brackets</td>
</tr>
</tbody>
</table>
</center>
<p>
Parens and angle brackets do not change. Brackets has been changed to braces. Block parens has been changed to
square brackets. Brackets can now collectively refer to the group containing round brackets (parens), square brackets,
and angle brackets. The documentation has been updated and the variable names in the source code have been
changed. </p>
<p>
There are four options affected by the change, "break-closing-brackets", "add-brackets", "add-one-line-brackets",
and "remove-brackets". These have been changed to the corresponding "break-closing-braces",
"add-braces", "add-one-line-braces", and "remove-braces". Also, the option "max-instatement-indent"
has been changed to "max-continuation-indent". The old options and method names have been depreciated,
but will continue to be accepted for the next several releases. </p>
<p>
The source code now uses the C++11 standard. Compilers that need a standard declared should use C++11. Visual
Studio 2010 is currently still currently supported. The classes were made independent of the containing
source code files (the source files contain multiple classes). The dependency on global variables in the console
build was removed. </p>
<p>
A new option, "indent-after-parens", will indent continuation lines following lines that contain an
opening paren '(' or an assignment '='. This includes function definitions and declarations
and return statements. This option may be preferred for editors displaying proportional fonts.</p>
<p>
A new option, "attach-closing-while", will attach the closing "while" of a
"do-while" statement to the closing brace. It has precedence over both the brace style and the break
closing braces option. </p>
<p>
The option "break-closing-braces" has been included in "style=stroustrup". This is the
correct style according to <a href="https://en.wikipedia.org/wiki/Indent_style#Variant:_Stroustrup" target="_blank"
title="open new window">Wikipedia</a>. The new option "attach-closing-while" is not included in
the style but can be used if you want. If there is a problem with the new format, change to the K&R style
using the same options as for Stroustrup.</p>
<p>
If you are using Windows XP, there is a download file available that has an XP compatible executable. Artistic
Style will still compile with Visual Studio 2010.</p>
<p>
Thanks to Jochen Tucht and Matthew Woehlke for their contributions.</p>
<p>
The following are additional topics.</p>
<h4>Version 3</h4>
<p>
Artistic Style was written in the 1990's when personal computers were much slower and compilers were not as
sophisticated as today. It used a lot of global variables instead of class members. In previous releases, classes
were created for the astyle_main.h source code. With this release, the classes have been made independent
of the source file containing them and the shared and global data has been eliminated. The classes could now be
separated into separate source files. They have not been actually separated because it seems more convenient
to leave them combined.
</p>
<h4>Library File Names</h4>
<p>
The shared library object (DLL) compile was originally intended to be a local library used by a single program.
Users could update the library at their convenience. Recently, it has started being distributed as a system library
for some distributions. In the past was not maintained for doing this. Since it is already being offered as
a distribution, the library soname on Linux has been standardized. </p>
<p>
It can still be used as a local or a static library if you want to control the changes. Or the system library
can be used. The system library version, of course, may change at any time. With this release the system
library will be available on Debian based systems, as well as possibly others.</p>
<p>
The Windows library name has been changed also. This Windows version is AStyle30.dll. The "30" refers
to the Artistic Style release number "3.0". The Linux library name is a soname version number, not the
Artistic Style release number.</p>
<h4>Artistic Style Wx</h4>
<p>
There is a new GUI test program AStyleWx that uses wxWidgets. This replaces the old AStyleWin program. AStyleWx
is multi-platform and has more features simply because they are easier to implement with wxWidgets.</p>
<p>
It has download files and a website in a new sub-project directory of Artistic Style. The downloads contain
source code, documentation, and scripts. The Windows download contains an executable. The needed Artistic Style
source files are included. </p>
<p>
It is licensed under the MIT license. The source code may be used and modified for any purpose you
choose. Developers using Artistic Style in another project may use any part of AStyleWx in their project. The
modified source code does NOT need to be made available to others.</p>
<h3>Artistic Style 2.06 (December 2016)</h3>
<p>
A new bracket style option, "style=mozilla", has been added. It uses linux brackets with
opening brackets broken from classes, structs, enums, and function definitions. Brackets are attached to everything
else, including namespaces, arrays, and statements within a function.</p>
<p>
A new option, "break-one-line-headers" will break a header (if, while, else, etc...) from a following
statement on the same line. There is more information in the "Formatting Options" section
of the documentation.
</p>
<p>
A new option, "pad-comma", will add a space following a comma. The option "pad-oper"
has not been changed and will also add a space following a comma.</p>
<p>
A new option, "indent-continuation", will add extra indents to continuation lines following a line that
ends with an opening paren '(' or an assignment '='. This includes function definitions and declarations.
There is more information in the "Indentation Options" section of the documentation.</p>
<p>
All spaces before a comma are now removed. Use the "disable formatting" comment tags if there are arrays
with vertical alignment where this is not wanted.</p>
<p>
A correction has been made to the Pico style indentation of one line blocks. And there is a fix to always compute
the indentation of a one line block. If you use Pico style with an indentation greater than 2, you may have a
lot of changes made to the code.</p>
<p>
New <span style="white-space: nowrap;">Objective-C</span> options "pad-return-type" and "unpad-return-type" will add or remove space padding after
the <span style="white-space: nowrap;">Objective-C</span> return type in a method definition. They are described in the "<span style="white-space: nowrap;">Objective-C</span>" section of the
documentation.</p>
<p>
New <span style="white-space: nowrap;">Objective-C</span> options "pad-param-type" and "unpad-param-type" will add or remove space padding after
the <span style="white-space: nowrap;">Objective-C</span> parameter type in a method definition. They are described in the "<span style="white-space: nowrap;">Objective-C</span>" section of the
documentation.</p>
<p>
The <span style="white-space: nowrap;">Objective-C</span> "align-method-colon" option is now applied to <span style="white-space: nowrap;">Objective-C</span> method calls in
addition to method declarations and definitions. The method call colons will be aligned, if possible. If this
option is not declared, the method calls will align on the first keyword. See the astyle documentation for an
example.</p>
<p>
The <span style="white-space: nowrap;">Objective-C</span> "align-method-colon" has been changed for long keywords.
For multi-line arguments when the first keyword is shorter than the others the colons are aligned on the
longest line instead of the first line. The alignment includes room for the indentation. This aligns all colons
after the first line for a better appearance. Arguments that do not have a short keyword in the first line will
remain the same. This style conforms to the Google <span style="white-space: nowrap;">Objective-C</span> style.</p>
<p>
Processing for C++14 single-quote digit separators has been added.</p>
<p>
Translations have been added for Bulgarian, Estonian, Greek, Hungarian, Norwegian, and Romanian. The translations
were done with an automated translation program, Google Translate, so they may not be the best translation possible.
The translations are at the end of ASLocalizer.cpp in the form of an English-Translation pair. If you correct
a translation, send the source as a bug report and it will be included in the next release. To add a language,
see "Internationalization" in the "General Information" section of the documentation.</p>
<p>
The C# example, in the Developer Information has been updated. Objects for the AStyle callback functions are no
longer required. These have been removed and the delegates used instead.</p>
<p>
There is a new C# example in the Developer Information, that loads the AStyle shared library using explicit linking.
This allows the shared library name to be dynamically changed so that a program compiled with "Any CPU"
can load
either a 32-bit or 64-bit shared library at run-time. It runs on both Windows and Linux.</p>
<p>
Visual Studio Code, the text editor from Microsoft, has an Artistic Style extension. The extension runs from the
Visual Studio Code menu and is controlled by entries in the User Settings file. It can be installed from Visual
Studio Code. There are links to the websites on the Artistic Style Links page. </p>
<p>
Thanks to David Faure for his contribution.</p>
<p>
The following are additional topics.</p>
<h4>New Software License</h4>
<p>
The Artistic Style software license has changed. It is now under the MIT license. This is a permissive license
which can be used in proprietary software and does NOT require modified Artistic Style source code be made available.
It is compatible with the GNU General Public License (GPL) and most other software licenses. The change was made
to remove restrictions on using the software and to make it available for any project that wants to
use it.</p>
<h4>Visual Studio 2015, 2017, and 2019 UTF-8 Files</h4>
<p>
In order to be used on both Linux and Windows, the ASLocalizer.cpp UTF-8 file in Artistic Style does not
contain a Byte Order Mark (BOM). With Visual Studio 2015 there has been a change in how UTF-8 files
without a BOM are processed. The new procedure is described
<a href="https://blogs.msdn.microsoft.com/vcblog/2016/02/22/new-options-for-managing-character-sets-in-the-microsoft-cc-compiler/"
target="_blank" title="open new window">here</a>. It affects only the language translations in the ".exe"
file. The shared libraries and static libraries are not affected. It is necessary only if you are using a translation
other than English.</p>
<p>
In addition to the "auto detect" option in Tools > Options... > Text Editor > General, an
additional compiler option is required. The option "/source‑charset:utf‑8" must be added
to the project properties at C++ > Command Line > Additional Options. Since the non‑unicode files
in Artistic
Style are ASCII, the option can be applied to the entire project instead of just one file. This option has been
added in the files distributed with Artistic Style. There is also a new "/validate‑charset" option,
which gets turned on automatically with the above option. This switch enables the validation of the UTF-8 input
files.</p>
<p>
This compiler option was not available until Update 2 of Visual Studio. If you are using an earlier version of
2015, a BOM should be added to the file using File > "Advanced Save Options". Change the encoding
to "Unicode (UTF-8 with signature) - Codepage 65001". </p>
<p>
In the above "Visual C++ Team Blog" Microsoft mentions that in a future major release of the compiler,
they would like to change the default handling of BOM-less files to assume UTF-8.</p>
<h4>Assignment Operator Alignment</h4>
<p>
Visual Studio 2013 and 2015 have an Edit option "Align Assignments" that will align assignment operators
across multiple lines. There is also an extension named "Code alignment" that will align the code on
other items as well. Other development environments may have something similar. These will selectively align the
data and allow for customization of the format.</p>
<p>
These options and extensions can be used with Artistic Style. If you choose to do this, the space padding will
be maintained and the alignment will be preserved.</p>
<h4>Coding Styles</h4>
<p>
Coding style, or programming style, is a set of rules or guidelines used when writing the source code. It is
often claimed that following a particular programming style will help in reading and understanding source code
conforming to the style, and help to avoid introducing errors.</p>
<p>
This Artistic Style distribution has a new "file" folder containing AStyle options files for various
coding styles. Using the option files will give approximately the indicated coding style. The files can be used
as they are, or modified as desired.</p>
<h4>Artistic Style Wx</h4>
<p>
There is a new GUI test program AStyleWx that uses wxWidgets. This replaces the old AStyleWin program. AStyleWx
is multi-platform and has more features simply because they are easier to implement with wxWidgets.</p>
<p>
It has download files and a website in a new sub-project directory of Artistic Style. The downloads contain
source code, documentation, and scripts. The Windows download contains an executable. The needed Artistic Style
source files are included. </p>
<p>
It is licensed under the MIT license. The source code may be used and modified for any purpose you
choose. Developers using Artistic Style in another project may use any part of AStyleWx in their project. The
modified source code does NOT need to be made available to others.</p>
<h4>Windows XP</h4>
<p>
The executable in the Windows distribution package is now compiled with a Visual Studio version that will no
longer work on Windows XP. Beginning with Visual Studio 2012, auto-vectorization tries to make loops run
faster by automatically vectorizing the code. Auto-vectorization is on by default, and there are no compiler
switches, #pragmas, or hints to disable it. It uses SSE instructions not available in Windows XP. Microsoft ended
support and updates for XP on April 8, 2014, and the usage share percentage continues to decrease.</p>
<p>
To compile on a non-XP machine for use on XP, using a compiler other than Visual Studio should always
produce an XP executable. Using Visual Studio 2010 or earlier should always produce an XP executable. If
you are using Visual Studio 2012, 2013, or 2015 on a non-XP machine, do the following for the Artistic Style
configuration you want to use:</p>
<ul>
<li>"Windows XP Support for C++" must be installed. It is available as an option in the Visual Studio install
and can be installed as a modification to the current install.</li>
<li>In the Artistic Style Properties, change General > Platform Toolset, to "Windows XP" for your Visual
Studio version.</li>
<li>In the Artistic Style Properties, change C/C++ > Preprocessor > Preprocessor Definitions to include
_USING_V110_SDK71_.</li>
<li>Change other Properties if you want, such as Output Directory or Target Name.</li>
<li>Compile. The output should be executable on Windows XP. It will also execute on the later versions of Windows.
</li>
</ul>
<p>
In newer releases of Visual Studio 2015, the "Universal CRT" files have been moved. There is a
notification <a href="https://blogs.msdn.microsoft.com/vcblog/2015/03/03/introducing-the-universal-crt/">here</a>.
To compile using XP there may need to be additional include and library directories added. If the compile gets
errors add the appropriate directories to the project properties.</p>
<h3>Artistic Style 2.05 (November 2014)</h3>
<p>
Release 2.05.1 (December 2014) is a maintenance release and no new features were added. A list of changes is in
the Release Notes. The following information is for the original 2.05 release.</p>
<p>
A new bracket style option, "style=vtk", has been added. It uses indented brackets, like Whitesmith,
except opening brackets for classes, functions, and methods are not indented. A complete description of the VTK
style is available at the "Visualization Toolkit" website (http://www.vtk.org/).</p>
<p>
A new preprocessor indent option "indent-preproc-block" will indent preprocessor block statements one additional
indent. The block must be top-level, or included within a namespace, and there are restrictions on what can be
indented.
The option is described in the "Indentation Options" section of the documentation.</p>
<p>
A new option, "dry-run", will run Artistic Style without updating the files. The report will be output as
usual.</p>
<p>
Formatting of source code may now be disabled for portions of a program by embedding special comment tags in the
program. These are described in a new "Disable Formatting" section of the documentation. They work the
same as in other formatters. There are tags to disable formatting for a block of code, and a tag to disable formatting
of a single line. This should allow any custom formatting to be retained.</p>
<p>
The product version number has been added to the filename of shared library (DLL) compiles. This will allow multiple
versions of a shared library on the same system without conflicts.</p>
<p>
An attribute '__attribute__ ((visibility ("default")))' has been added to exported functions
on Linux shared libraries. This allows the option "-fvisibility=hidden" to be used on dynamic library
compiles. According to the GNU documentation, "Using this feature can very substantially improve linking
and load times of shared object libraries, produce more optimized code, provide near-perfect API export and prevent
symbol clashes. It is strongly recommended that you use this in any shared objects you distribute."</p>
<p>
Improvements have been made in the formatting of C++11 uniform initializers (enclosed by brackets). The opening
bracket will not be space padded unless it is padded initially. The closing bracket will not be broken from the
final line unless it is broken initially. And the known problems with uniform initializers in class constructors
have been fixed.</p>
<p>
The Windows compiler definition ASTYLE_NO_VCX (no Visual Studio exports) has been changed to ASTYLE_NO_EXPORTS.
It is sometimes needed for static libraries on other compilers to prevent error and warning messages.</p>
<p>
Qt and Boost macros foreach, forever, Q_FOREACH, and Q_FOREVER will now be recognized as headers.</p>
<p>
The main documentation for Artistic Style is in HTML format. Until now there has not been a way to display it
from the astyle console program. A new option, "html" or "-!" will display the help documentation in the default
browser. This documentation is more complete than the astyle "help" option. It includes examples, and has an index
for easier navigation. Since astyle is typically run from a script this should allow an easy way to access the
documentation. The option is available only from the command line.</p>
<p>
The new "html" option assumes the documentation is installed in the standard install path. This is /usr/share/doc/astyle/html
for Linux and the path %programfiles%\AStyle\doc for Windows. If it is installed to a different directory, use
the variation "html=<actual_install_path>astyle.html. This option can also be used to open other HTML files.
More information is in the "Command Line Only" section of the documentation.</p>
<p>
The "html" option on Linux uses the script "xdg-open" from the install package "xdg-utils" to find the default
browser. This should be available on most systems. If it is not available on your system you can file a
bug report requesting a change. It would be helpful if you could determine how it is done before filing the report.
You can also file a bug report if the documentation is not installed to the above "default" directories. The HTML
documentation takes quite a bit of effort to maintain and I would like to make it easily available.</p>
<p>
The "help" option has been changed to send the output to stdout instead of stderr. This will allow piping and
redirection of the output. A common way to use the option on Linux is "astyle --help | less", which
will page the display. The "version" option has also been changed to stdout.</p>
<p>
A shared library error handler argument has been changed from "char*" to "const char*". In
some cases this may cause compile errors in a user program until the references have been changed.</p>
<p>
The "Indent Style" topic on Wikipedia states that the "ANSI" style refers to K&R style brackets
and not Allman style as used by Artistic Style. The option "style=ansi" is therefore being deprecated and will
be removed in a future release. Use one of the other long options instead (style=allman, style=bsd, or
style=break).</p>
<p>
Some of the documentation has been removed from the distribution package. It still contains all files needed to
install and run Artistic Style. The included files can be used without an Internet connection.</p>
<p>
There are now build files available for Xcode on Mac. The makefile is still available for those who want it. Both
now use the LLVM Clang compiler. There has been a
change to the makefile debug locations to make them similar to Xcode. The "Install Instructions" have
been updated for both.</p>
<p>
The Python Example in the Developer Information now supports Iron Python. The
programming instructions are sometimes different since the ctypes module works differently. The example script
documents the differences. If you use Python Tools for Visual Studio, it now installs in the Express editions
(beginning with release 2.1). Node.js can also be installed in Visual Studio Express.</p>
<p>
The executable in the Windows distribution package is now compiled with Visual Studio 2013 and will no longer
work on XP. If you are using XP, Artistic Style will need to be recompiled on the XP machine.</p>
<p>
A new <a href="http://www.visualstudio.com/news/vs2013-community-vs" target="_blank" title="open new window">Visual
Studio Community Edition</a> has been released. It is free, combines all of the Express editions into a single
development environment, and allows the addition of Visual Studio extensions. There is an
<a href="https://visualstudiogallery.msdn.microsoft.com/2f3f04cd-2866-4e47-a671-d1cc9cc3fb02" target="_blank"
title="open new window">AStyle Extension</a> available for installation. It has a graphic interface, adds
menu entries, and can be used from within Visual Studio. To install it search the "Extensions and Updates",
"Online" entry for "astyle".</p>
<p>
Thanks to Peter A. Bigot, HyungKi Jeong, David Faure, and Carl Moore for their contributions.</p>
<p>
<strong>Previous releases are available in the
<a href="http://astyle.sourceforge.net/newsArchives.html">News Archives</a>.</strong>
</p>
<p style="margin-left: -0.4in; text-align: center;">
<a href="http://sourceforge.net/projects/astyle">
Artistic Style on SourceForge.net</a>
</p>
</body>
</html>
|