Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
What changed in each version of the template, and what a project has to do when `copier update`
brings it.

## Unreleased

- **`misc-include-cleaner` leaves out `avr/common.h`, as `avr/io*.h`:** avr-libc keeps `SREG`,
the stack pointer and the other registers every AVR has in `avr/common.h`, which `<avr/io.h>`
includes, and include-cleaner asked a file that wrote `SREG` for that header, though
`<avr/io.h>` is the one to include. Found in MaxMatrix, which saves and restores `SREG` around
a write to a port.

On the update: nothing to do. A project that added `avr/common.h` to `IgnoreHeaders` itself, or
included it, can drop that.

## v0.12.0

A project of several targets can have an example for one board alone: `EXAMPLES` names the
Expand Down
6 changes: 4 additions & 2 deletions template/.clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ CheckOptions:
# it, at times through a second one, as iom2560.h through iomxx0_1.h, which
# include-cleaner does not take back to <avr/io.h>. Any core's folder, not
# only cores/arduino/ of Arduino's: a third party's core has its own, as
# cores/xmega/ of XMegaForArduino's, where Serial comes from.
misc-include-cleaner.IgnoreHeaders: '.*/cores/[^/]+/.*;.*/variants/.*;.*/avr/io[^/]*\.h'
# cores/xmega/ of XMegaForArduino's, where Serial comes from. And
# avr/common.h, which <avr/io.h> includes as well, for the registers every
# AVR has, SREG and the stack pointer among them.
misc-include-cleaner.IgnoreHeaders: '.*/cores/[^/]+/.*;.*/variants/.*;.*/avr/io[^/]*\.h;.*/avr/common\.h'
# Google's names, which readability-identifier-naming checks only once it is told them; the
# same block in every project, so that every project names alike. Two exceptions Google
# makes itself are general: an accessor is named like the variable it gives (group(),
Expand Down
Loading