Repository navigation
v4.0.0
4.0.0 - 2022-02-15
Changes
-
Start honoring clang format configuration, currently limited to a subset of
all the style options.
See the manual for further reference.
(8fb32ce)
(Anton Lindqvist) -
Improve diff mode when called from non repository root.
(64d39eb)
(Anton Lindqvist)
News
-
In simple mode, declarations like the following can now be split into one
declaration per distinct type.
(c48eca2)
(Anton Lindqvist)# before struct foo *a, b; # after struct foo b; struct foo *a; -
In simple mode, ensure the static keyword comes first.
(76b549a)
(Anton Lindqvist) -
Detect fairly common volatile token alias.
(197ccd1)
(Anton Lindqvist) -
Trim trailing whitespace from comments.
(c3db386)
(Anton Lindqvist) -
In simple mode, put braces around a single statement spanning multiple lines.
(97e3554)
(Anton Lindqvist) -
Output NUL terminators in formatted source code.
(4727393)
(Anton Lindqvist) -
Replace usage of uthash.h with simple lookup tables.
(2f6a5f7, 58a7f68, 22f99ea, 882cbac)
(Anton Lindqvist) -
Add support for GNU statement expressions.
(6d42ac4)
(Anton Lindqvist) -
Add support for basic inline assembler.
(bd1e3af, 76778d3)
(Anton Lindqvist) -
Sort includes in simple mode.
(9612032)
(Anton Lindqvist)
Bug fixes
-
Fix detection of pointers wrapped in parenthesis.
(49c66b7)
(Anton Lindqvist) -
Allow empty expression in foreach macros.
(4c7c898)
(Anton Lindqvist) -
Fix inline assembler handling of parenthesis bug.
(112ecdd)
(Anton Lindqvist) -
Correct alignment of brace initializers.
(0dc1c19)
(Anton Lindqvist) -
Trim trailing new lines when the file ends with usage of cpp.
(7526024)
(Anton Lindqvist) -
Break of long expressions.
(5add695)
(Anton Lindqvist) -
Break long return expressions.
(0b51384)
(Anton Lindqvist) -
Trim right parenthesis as part of a expression.
(deb21a1)
(Anton Lindqvist) -
Fix indentation for brace initializers in expressions.
(aa0ef35)
(Anton Lindqvist) -
Trim right parenthesis as part of inline assembler.
(03f7c4d)
(Anton Lindqvist) -
Break long ternary expressions.
(7ac100a)
(Anton Lindqvist) -
Trim trailing new line(s) after brace initializers.
(b47466b)
(Anton Lindqvist) -
Remove excessive space after declarations using cpp.
(d8eebef)
(Anton Lindqvist) -
Add missing space after brace initializers followed by attributes.
(b0502c3)
(Anton Lindqvist) -
Break long attributes.
(7e760c9)
(Anton Lindqvist) -
In simple mode, preserve statement braces with trailing comments.
(8afad71)
(Anton Lindqvist) -
In diff mode, fix edge case when the source code only consists of macros and
comments.
(9463a1c)
(Anton Lindqvist)