Skip to content

Releases: lmichaudel/c3fmt

Version 0.2.3

18 Mar 20:30
0260d35

Choose a tag to compare

New Features

  • comment and assignment alignment (d04b212)
  • ability to pass directories instead of files (98d8b27)
  • --check argument

Fixes

  • one line doc comment (5f9c4f3)
  • macro declaration alignment (5f9c4f3)
  • enum constant alignment (1cbcc1e)
  • space before generic parameters (40c227a)

Full Changelog: v0.2.2...v0.2.3

Version 0.2.2

05 Mar 20:43
f52c7d4

Choose a tag to compare

Fixes

  • An extra newline was incorrectly appended after a function declaration. eca1e50
  • Comments between a for loop declaration and its scope were bugged. 80172e3
  • Single line elses were not correctly formatted. 59a73b2

This release also includes new tests, refactoring and performance improvements. (#5)

New Contributors

Full Changelog: v0.2.1...v0.2.2

Version 0.2.1

24 Feb 20:03

Choose a tag to compare

Fixes

  • fixed a critical bug that could crash the program when mixing width-exceeding lines and inline comments.

Version 0.2.0

24 Feb 11:03

Choose a tag to compare

New feature

  • Code wrapping ! c3fmt will now wrap your code around if it exceed the configured length. You can check the source code of c3fmt itself, which is now actually formatted by itself.

Fixes

  • fixed a bug where trailing comment after an if statement would append an extra newline.
  • interface function declaration were not handled correctly.

Version 0.1.3

21 Feb 15:03

Choose a tag to compare

Fixes:

  • fixed a critical bug that made compound statements inside case statement crash the program.

Known bugs

  • Wrapping won't work with nested "wrappables".
  • Wrapping is only implemented for function parameters and call arguments.

Version 0.1.2

02 Feb 08:33

Choose a tag to compare

New Features

  • C3 lang v0.7.9.
  • Docs comments support.
  • Hashbang comments.
  • Assembly statements.
  • maybe_deref_expr node.
  • Generics (with new syntax).

Fixes:

  • fixed array formatting.
  • fixed attributes in import list.

Known bugs

  • Wrapping won't work with nested "wrappables".
  • Wrapping is only implemented for function parameters and call arguments.

Version 0.1.1

17 Jan 00:16

Choose a tag to compare

New features

  • Doc comments support.
  • All compile time statements support ($if, $for, $foreach, $switch).
  • --in-place CLI argument.

Fixes

  • defers were always being followed by an extra blank line.
  • the last comment of a case block was not indented correctly.
  • a comment following the colon of a case statement (or a compile time statement) would appear on the next line.

Version 0.1.0

01 Jan 22:16

Choose a tag to compare

This is the very first release of c3fmt. It includes minimal formatting support and serves as a foundation for future features. Expect basic functionality with limited options, designed for early testing and feedback.