Artistic Style 3.6.25
A Free, Fast, and Small Automatic Formatter for C, C++, C++/CLI, Objective-C, C#, GSC and Java Source Code.
| Tags | formatting indentation |
|---|---|
| License | MITL |
| State | stable |
Artistic Style 3.6.25
A Free, Fast, and Small Automatic Formatter for C, C++, C++/CLI, Objective-C, C#, GSC and Java Source Code.
Recent Releases
3.6.2517 Nov 2026 17:59
minor bugfix:
Fix indent of long statement continuation lines
Fix indent after decltype declarations
Fix indent after INDENT-OFF within case bodies
Include access modifiers in --attach-return-type options
Fix indent of extern C blocks without C++ guard directives
Fix indent of assignments in directives
3.6.2412 Nov 2026 21:56
minor bugfix:
Fix indent of preprocessor directives in the file header
Fix indent of comments after statements in case blocks Fix INDENT-ON recognition in preprocessor else branches
Fix --break-return-type to split after the return type instead of before the parameter list
Fix handling of asm blocks
Clarify --delete-empty-lines documentation
Fix --break-return-type recognition of decltype return types
Fix line break before the call arguments of an immediately invoked lambda
Fix continuation indent of co_return and co_yield statements
Fix continuation indent of chained assignments within a line to targets
Fix continuation indent of assignments to method call targets
Fix --break-return-type recognition of attributes
Improve indentation of comments in directives within case bodies
Improve indentation of comments in new lines after split braces
Improve indentation of multiline assignments
3.6.2308 Nov 2026 18:27
minor bugfix:
Fix regression of comment indentation in preprocessor else blocks
3.6.2205 Nov 2026 22:25
minor bugfix:
Allow recent command line options in the library build
Fix indent of comments in preprocessor else blocks
Fix staircase indentation of multi assignments
Fix indent after comments ending with a quote
3.6.2103 Nov 2026 20:24
minor bugfix:
Add option --eof-newline to end files with exactly one line end
Fix --break-return-type recognition of specifiers like explicit, virtual, inline, constexpr, static or access modifiers
Enable --add-braces on statements spanning multiple lines
Fix wrong indentation when returning structs
Fix wrong indentation of access modifiers after ternary expressions
Fix wrong indentation after #elifdef
Fix wrong alignment after statements ending with a comma operator
3.6.2024 Oct 2026 10:36
minor bugfix:
- Fix alignment of nested array initializers within function argument lists
- Fix indent of comments within function argument lists - Fix closing brace being broken from the declarator of anonymous structs with an attribute
- Fix indent of a header's predicate placed on the line after the keyword
- Fix indent of C# object initializers and Java anonymous classes within argument lists
- Fix indent of multi-line string concatenations
- Fix indent of parens within struct initializers
- Fix indent of statements following a brace initializer within a lambda body
- Omit line breaks within preprocessor directives
- Fix space being inserted after before a braced initializer list
- Fix indent of nested lambdas, attributes and Objective-C messages with --indent-lambda
- Fix indent of lambda bodies within header conditions
- Keep one-line lambdas with parameters like (int v) return v; on one line, as without parameters
- Fix line break after the colon of C++20 module partition imports like import :part;
- Fix indent and brace handling of C++23 if consteval / if !consteval, and keep its required braces with --remove-braces
- Fix braced initializer lists in range-based for loops
- Fix indent within lambda bodies after a trailing return type or specifier
3.6.1815 Aug 2026 17:07
minor bugfix:
- Added option pad-semicolon=none (--unpad-semicolon) to remove space padding before a semicolon; Fix unpad-paren being suppressed for the remainder of a file after a typedef struct (https://gitlab.com/saalen/astyle/-/issues/80 follow-up); Fix statement alignment with noexcept keyword and -xb option (https://gitlab.com/saalen/astyle/-/work_items/112); Reduced the documented command-line option surface: trimmed pure-synonym spellings (e.g. style=bsd/break) and composite shortcut options (--pad-paren, --pad-brackets, --break-blocks=all) from --help/the man page/shell completions; all previously accepted option spellings still parse identically. Also fixed --attach-extern-c's short form, which collided with -xk and had never worked; it is now -xa.; Added optional "in"/"out" parameters to --pad-paren and --pad-brackets (e.g. --pad-paren=in) to replace --pad-paren-in/--pad-paren-out and --pad-brackets-in/--pad-brackets-out; the older option names still work but are no longer documented.; Extended the same "option=value" consolidation to more option pairs: --pad-paren=none, --pad-brackets=none, --pad-method-prefix=none, --pad-return-type=none, --pad-param-type=none, --break-return-type=decl and --attach-return-type=decl now replace --unpad-paren, --unpad-brackets, --unpad-method-prefix, --unpad-return-type, --unpad-param-type, --break-return-type-decl and --attach-return-type-decl respectively; the older option names still work but are no longer documented.
3.6.1629 May 2026 20:42
minor bugfix:
Added option remove-braces=one-line (#70)
Fix address-of after a pointer cast padding (#14)
Added sanitation of terminal output
Added new file pattern option --include and auto-detect local project options (#64 (closed))
Added new options --style=none --indent=none (#25)
Added empty line before first method without all option (!20 (merged))
Added the "no-indent-if-after-else" and "line-between-members" parameters
Added new option --max-code-length-mode=ignore-side-comments (#93)
Fix indent of upcoming long lines with total mode (#67)
apply more consistent indentation after line wrap (#98)
Fixed --align-pointer=name for Function Arguments.
3.6.1424 Feb 2026 22:06
minor bugfix:
* Improved indent after align-pointer=type option
* Fix indent of concatenated raw strings
3.6.1226 Aug 2025 22:11
minor bugfix:
* Improved complex lambda body indentation
3.6.1123 Jul 2025 20:08
minor bugfix:
* Fix regression related to diff markers
3.6.1022 Jul 2025 19:55
minor bugfix:
* Fix comment recognition after macro definition
* Fix indent of switch statements within structs
* Fix Win32 build
* Improved lambda body indentation
* Ignore lines with git conflict markers
* Replaced platform file functions by C++ filesystem library
3.6.923 Apr 2025 19:56
minor bugfix:
* sh-completion: Fix --mode parameter in generation script
* disable old isInTemplate flag only within structs
3.6.827 Mar 2025 22:44
minor bugfix:
* Adjust --break-blocks to break structs and functions only with all option
* Fix space between pointer references with --align-pointer=type Define operators for Java only
* Fix indentation of class modifiers within structs
* Fix parsing of nested structs
* Fix indent of multiline strings with macros
3.6.506 Dec 2024 15:27
minor bugfix:
* Add option --accept-empty-list
* Fix indent regression due to method extraction
* Fix indent in blocks after assignment operators
* Fix indent of multi line strings after preprocessor or comment sections
* Fix indent after assignment operators
* Fix --align-pointer=middle with existing whitespace
3.6.401 Nov 2024 11:15
minor bugfix:
* fixed indent of brace initializers within constructor init list
* improved indent of continued string literals
* fixed space after opening paren for GSC
3.6.211 Sep 2024 17:49
minor bugfix:
* Reverted alignment of user defined types using --align-pointer
3.6.105 Sep 2024 20:25
minor bugfix:
* Fix setting of --pad-negation and --pad-include options
* Fix --pad-include with UTF-8 BOM
* Improve multiplication recognition with --align-pointer=type
* Improve --align-pointer=type after parens and brackets
* Removed VMS compilation options
* Updated JNI interface to use Arduino IDE conventions
3.613 Aug 2024 08:36
minor bugfix:
* Add option --pad-include
* improve combination of --align-pointer=type and --pad-oper
* improve multiplication recognition with --align-pointer=type
* update compiler options in build files
* fix indent of assignments within macros
3.5.130 Jun 2024 13:51
minor feature:
* Fix crash concerning macro continuation
* Fix EOL handling for Windows builds
* Fix GSC comment recognition
* Fix MSVC compiler warnings
3.506 Jun 2024 13:51
minor feature:
* Add option --pad-negation
* Apply align-pointer=type only if type is present
* Avoid deletion of empty lines after continuation
* Fix alignment of logical AND operators
* Fix recognition of Java/C# multi line strings
3.4.1620 May 2024 17:55
minor bugfix:
* Fix padding of scientific notation literals
* Fix of reference args alignment
3.4.1509 May 2024 18:16
minor bugfix:
* Fix parsing of floating point literals
* Fix "--break-block" handling of class and function blocks
* Fix "--align-pointer=type" option for all types in lambda parameter lists
* Fix padding of lambda capture with align-pointer option
* Exclude files ending with backup suffix from input file names list
3.4.1423 Apr 2024 20:05
minor bugfix:
* Fix split references with "-k1" option
* Fix "--align-pointer=type" option for fundamental types in lambda parameter lists
* Fix "--indent-after-parens" indent count
3.4.1312 Mar 2024 05:56
minor bugfix:
* fix comment indent after string macro with R suffix
* do not break single line block after enum in mozilla mode
* adjust cmake policy for new versions only
* update man page path
* add support for scikit-build-core
3.4.1206 Feb 2024 07:50
minor bugfix:
* added "--pad-brackets-in" and "--pad-brackets-out" options
* fixed indentation of initializer lists
* fixed crash with "--add-braces=nested" applied to if-else blocks
3.4.1111 Jan 2024 09:42
minor bugfix:
* added new option "--add-braces=nested" to add braces in nested single line statements
* fix indent after double template brackets
* "--squeeze-lines=1" is no longer default with Linux builds
* add experimental GHC mode
* fix indent after raw string
3.4.1021 Oct 2023 16:56
minor bugfix:
* fixed missing indent in function parameter list
3.4.918 Oct 2023 13:51
minor bugfix:
* applied one wording for Objective-C in the docs
* fixed more CS regressions
* fixed inserting space with combined "--pad-oper" and "--align-pointer" options
3.4.823 Sep 2023 15:38
minor bugfix:
* fixed various C++ and C Sharop formatting issues
* added new option --pad-empty-paren to pad empty pairs of parentheses
3.4.629 Aug 2023 05:27
minor bugfix:
* added VS2022 project files
* fixed CS regressions
* added CS coalesce assignment operator
* fixed padding of following a comma
* fixed indent of function declarations following access modifiers
* fixed indent of C# allocation blocks
* fixed indentation of comments after CS interpolation quotes
3.417 Jun 2023 15:15
minor bugfix:
* fixed formatting of CS interpolation literals
* fixed false lambda recognition
* fixed indentation of member declarations
* fixed indentation of struct assignments
* added new option "--indent-lambda" to to enable new lambda recognition
3.3.125 May 2023 15:19
minor bugfix:
fixed compilation on some Linux systems
3.319 May 2023 07:52
minor bugfix:
fixed indent of brace initializer with new
3.3-beta310 May 2023 09:48
minor bugfix:
- added new --pad-brackets and --unpad-brackets options
- fixed padding of pointers separated by comma
- improved meson build compatibility
3.3-beta227 Apr 2023 06:06
minor bugfix:
added new option "--squeeze-ws" to remove superfluous whitespace
added new option "--squeeze-lines" to remove superfluous empty lines
3.3-beta116 Apr 2023 14:50
minor bugfix:
fixed indent of C++11 initializer lists
fixed indent of lambda bodies in fct calls
refactored namespace std usage
3.2.101 Apr 2023 15:45
minor bugfix:
fixed indent of struct initializer lists
avoid regression of align-method-colon
fix pad-method-colon options in ObjectiveC mode
fixed break-blocks format after struct
3.2 beta 305 Mar 2023 16:50
minor bugfix:
fixed project file search on Linux
fix parsing of C# interpolation strings
added man page to file install list
fixed help messages of pad-param-type options
added shell completion scripts
added --mode=objc option
3.2 beta 223 Feb 2023 20:48
minor bugfix:
fixed documentation of --delete-empty-lines short option
fixed project file search
fixed project file search with wildcard input paths
better description for stat errors
3.224 Jan 2023 21:30
minor bugfix:
* Add new option "style=webkit" for the WebKit brace style.
* Improve recognition of pointer variable types.
* Change CMake files to the quot;modern quot; format.
* Fix formatting of raw string literals with the opening #39;( #39; at the end of line (#519).
* Fix indentation of comments in a preprocessor define indented with tabs (#506).
* Fix vector limit segfault with g++-8, recursive, and -D_GLIBCXX_ASSERTIONS (#503).
* created man page
* removed deprecated options
* added quot;--mode=js quot; option
* removed upper limit of max-continuation-indent
* #535 fix raw string parsing
* #543 fix recognition of rvalue operator as reference
* #527 fix reverting effect of AttachReturnType option
* #544 fixed padding of dereference operator
* #538 added spaceship operator
* #550 fixed case indent after enum return value
* #546 fixed space deletion when aligning ref value name
* #545 fix reverting effect of maxCodeLength and AttachReturnType options
* applied IT localization patch
* improved DE localization
|
Links→ SourceForge → GitLab Submitted byManageYou can also help out here by:← Update project or flagging this entry for moderator attention. Share project |