Skip to content

Releases: BlankSpruce/gersemi

0.13.2

11 Jun 17:10
Compare
Choose a tag to compare

Fixed

  • fix issue with cached results interfering with stdout mode

0.13.1

01 Jun 21:49
Compare
Choose a tag to compare

Fixed

  • fix issue with messing up whitespaces in between arguments of unknown custom commands

0.13.0

01 Jun 16:20
Compare
Choose a tag to compare

Added

  • support for using canonical casing of custom commands (#21)

Changed

  • official CMake commands will be formatted with their canonical casing (like FetchContent_Declare) instead of lower case version with the following deliberate exceptions:
    • check_fortran_function_exists
    • check_include_file_cxx
    • check_include_file
    • check_include_files
    • check_library_exists
    • check_struct_has_member
    • check_variable_exists

Fixed

  • use specialized formatting of some previously omitted official commands
  • improve consistency of set_package_properties with similar commands
  • fix formatting of first command in add_custom_target (#24)
  • fix incorrect detection of sections in commands like install (#26)

0.12.1

27 Mar 15:46
Compare
Choose a tag to compare

Fixed

  • improve find_package formatting around REQUIRED keyword (#20)

0.12.0

26 Mar 15:52
Compare
Choose a tag to compare

Added

  • support for different kinds of indentation, either specific number of spaces or tabs through --indent argument (examples: --indent=2 or --indent=tabs) or indent entry in .gersemirc (examples: indent: 2 or indent: tabs) (#15)
  • support for hints in custom command definition for specialized formatting, currently supported are command_line and pairs

Changed

  • formatting of install command will now correctly recognize sections like RUNTIME, ARCHIVE, FILE_SET etc. (#19)

Fixed

  • inconsistent formatting of add_library (#17)
  • edge cases of comments present in COMMAND argument of add_custom_command and similar commands
  • improve README and help about heuristic used in favour-inlining style (#18)

0.11.1

04 Mar 20:37
Compare
Choose a tag to compare

Added

  • support for new keywords in native commands and new commands available in CMake 3.29

Fixed

  • fix issue with comments in COMMAND argument of add_custom_command (#16)

0.11.0

11 Jan 17:27
Compare
Choose a tag to compare

Added

  • Number of workers spawned for formatting multiple files can be changed with -w/--workers. By default it will be number of CPUs available in the system but limited to 60 for Windows machines due to this.

0.10.0

22 Dec 19:22
Compare
Choose a tag to compare

Added

  • configuration schema that can be used with yaml LSP server, see: JSON Schema and #12
  • yaml header linking to configuration schema in configuration produced by --default-config
  • support for Python 3.12

Fixed

  • meaningless but syntactically valid target_link_libraries with just library name won't crash gersemi

0.9.4

17 Dec 16:10
Compare
Choose a tag to compare

Added

  • support for new keywords in native commands available in CMake 3.28

0.9.3

18 Oct 16:16
Compare
Choose a tag to compare

Fixed

  • warn about conflicting definitions for macros and functions, make usage of conflicting definitions consistent and deterministic (#11)