v4.2.0
News
-
Never break before right parenthesis in expressions.
(27a06b8)
(Anton Lindqvist) -
Recognize restrict keyword.
(f17f367)
(Anton Lindqvist) -
Remove excessive semicolons after statements and declarations.
(4528499, 9865f68)
(Anton Lindqvist) -
Sense alignment in brace initializers and declarations.
Instead of being picky, detect already aligned columns using either spaces or
tabs and preserve such alignment.
(dbc6d96, 000bcc0, cf7aa5f, 6bbd5af, a61fb35, b3ae100, ee08260, 05021b9,
09b9566)
(Anton Lindqvist) -
In simple mode, insert braces around cpp loop macro statement(s) spanning
multiple lines.
(4eb9095)
(Anton Lindqvist)# before TAILQ_FOREACH(prefix, &tk->tk_prefixes, tk_entry) if (prefix->tk_flags & TOKEN_FLAG_CPP) return 1; # after TAILQ_FOREACH(prefix, &tk->tk_prefixes, tk_entry) { if (prefix->tk_flags & TOKEN_FLAG_CPP) return 1; }
-
In simple mode, insert braces around while statement(s) spanning multiple
lines.
(a5892e0)
(Anton Lindqvist) -
Honor spaces before right brace in braces initializers.
(d74fae5)
(Anton Lindqvist) -
Only allow one consecutive new line in expressions.
(b6323de)
(Anton Lindqvist) -
Remove excessive new line(s) in brace initializers.
(8395465)
(Anton Lindqvist) -
In simple mode, improve placement of moved declarations.
(7ab8ead)
(Anton Lindqvist) -
In simple mode, detect usage of named and unnamed arguments in function
prototypes.
If the two conventions are mixed within a declaration, assume it's not
intentional and all argument names are removed for consistency.
(456b2a0)
(Anton Lindqvist) -
In simple mode, add missing trailing comma in brace/designated initializers.
(1611ddc)
(Anton Lindqvist) -
Recognize goto labels in inline assembler.
(10515e0)
(Anton Lindqvist) -
Recognize attributes after return type in function prototypes and
implementations.
(96f0a8e)
(Anton Lindqvist) -
Trim right parenthesis in for loops.
(9056049)
(Anton Lindqvist) -
Detect function attributes hidden behind cpp macros.
(43829dd)
(Anton Lindqvist) -
Improve alignment of binary expressions.
(01a4399)
(Anton Lindqvist) -
Detect leading attributes in function arguments.
(5536f4a)
(Anton Lindqvist) -
Honor new line(s) after comma in declarations.
(b978e5c)
(Anton Lindqvist) -
Detect more variations of foreach loops hidden behind cpp macros.
(ed94215)
(Anton Lindqvist) -
Detect leading attributes in function implementations.
(8effce9)
(Anton Lindqvist)
Bug fixes
-
In simple mode, fix sort includes bug when includes are grouped with other
defines.
(62504b0)
(Anton Lindqvist) -
Fix indentation in brace initializers spanning multiple lines.
(d7cb071)
(Anton Lindqvist) -
In diff mode, fix bug related to cpp branches.
(510beae)
(Anton Lindqvist) -
Multiple bug fixes and improvements to clang-format option
AlignAfterOpenBracket.
(85de703, 379b7c2)
(Anton Lindqvist) -
Multiple bug fixes and improvements to clang-format option
BreakBeforeBinaryOperators.
(c800ac3)
(Anton Lindqvist) -
Make cast expression detection more strict, avoiding false positives.
(34043aa, 7e59383)
(Anton Lindqvist) -
Do not confuse binary operators and casts.
(57e7a57)
(Anton Lindqvist) -
Fix off by one during parenthesis alignment.
(d8f88e3)
(Anton Lindqvist) -
Fix indentation after C99 comments in expression.
(11bf235)
(Anton Lindqvist) -
Recognize asm, attribute, inline, restrict and volatile preceded or succeeded
with any amount of underscores as the corresponding keyword without underscores.
(1523fd1)
(Anton Lindqvist) -
Do not trim redundant semicolon(s) from declarations in for loops.
(3688b9b)
(Anton Lindqvist) -
Add missing spaces after elements in brace initializers.
(dedad51)
(Anton Lindqvist) -
In simple mode, a semicolon statement is not considered empty when considering
removing/adding braces.
(9755ace)
(Anton Lindqvist) -
Plug file descriptor leak during inplace edits.
(164bb2a)
(Anton Lindqvist) -
Better handling of sizeof with parenthesis.
(928ecdc)
(Anton Lindqvist)