Skip to content

Commit

Permalink
Release 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankSpruce committed Mar 26, 2024
1 parent 7c49ca6 commit e48554f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Changelog

## [0.12.0] 2024-03-25
## [0.12.0] 2024-03-26
### 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.
- 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
- improved README and help about heuristic used in `favour-inlining` style
- improve README and help about heuristic used in `favour-inlining` style (#18)

## [0.11.1] 2024-03-04
### Added
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Example:
# Four elements in the list "Oceans_Eleven"
set(Oceans_Eleven Danny Frank Rusty Reuben)
# Five elements in the list "Oceans_Eleven"
# Five elements in the list "Oceans_Twelve"
set(Oceans_Twelve
Danny
Frank
Expand Down Expand Up @@ -416,6 +416,7 @@ seven_samurai(

Otherwise `gersemi` will fallback to only fixing indentation and preserving original formatting. If you find these limitations too strict let me know about your case.

#### `gersemi: ignore`
If your definition should be ignored for purposes of generating specialized formatter you can use `# gersemi: ignore` at the beginning of the custom command:
```cmake
function(harry_potter_and_the_philosophers_stone some standalone arguments)
Expand All @@ -442,6 +443,7 @@ harry_potter_and_the_philosophers_stone(HARRY
```
It should be still preferred simply to not provide that definition instead.

#### `gersemi: hints`
If your definition has `# gersemi: hints` at the beginning then after `hints` you can provide YAML formatted pairs `<keyword>: <specialized_formatting>` to indicate how to treat specific multi-value arguments. `<specialized_formatting>` can be:
- `pairs`: arguments after the keyword will be grouped into pairs, similar to how `set_target_properties(PROPERTIES)` is handled
- `command_line`: arguments after the keyword will be treated like a sequence of words in command line, similar to how `add_custom_command(COMMAND)` is handled
Expand Down

0 comments on commit e48554f

Please sign in to comment.