Skip to content

Releases: KDAB/clang-format-rs

0.3.0

06 Oct 14:07
Compare
Choose a tag to compare

Added

  • It is now possible to specify a custom clang-format style using ClangFormatStyle::Custom(String)
  • Support for GNU as a clang-format style
  • Support for Microsoft as a clang-format style

Changed

  • ClangFormatStyle enum is now marked as non_exhaustive to allow for more styles in the future

Removed

  • ClangFormatError is now private, thiserror is used internally, and a impl Error is returned

0.2.0

02 Aug 13:36
Compare
Choose a tag to compare

Added

  • clang_format_with_style method where the style is given

Changed

  • clang_format now uses ClangFormatStyle::Default instead of reading from CLANG_FORMAT_STYLE

Removed

  • CLANG_FORMAT_STYLE OnceCell