1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-29 00:11:16 +01:00

15 Commits

Author SHA1 Message Date
crasbe
193b5e1a91 dist/tools/headerguards: revert 082a37b
With the migration to #pragma once in the core header in #21405,
the workaround for the header name check when using #include_next
is not necessary anymore and can be dropped.
2025-05-14 12:07:41 +02:00
crasbe
9e06d82a6b dist/tools: improve headerguard check
The headerguard check did not catch the case when a #pragma once
is present in the file followed by classic header guards.

This commit also improves the error messages to give a better
reason why the test failed.
2025-05-14 12:07:41 +02:00
crasbe
ab1356e58c dist/tools: add a leading whitespace check for #pragma once
When adding the #pragma once after a comment block, many editors
will remain at the previous indentation level, adding a leading
whitespace to the #pragma once. This is invalid, but causes the
headerguards check to fail. Since it is a common issue, it
warrants a separate check with a proposed solution, just like
for other headerguard issues that are checked.
2025-04-23 22:56:13 +02:00
crasbe
bf1491ef0d dist/tools: add #pragma once to headerguard check 2025-04-06 22:01:29 +02:00
Benjamin Valentin
082a37b17f dist/tools/headerguards: ignore if #include_next is used
We can't use the same header guard if we include two files with the same name.
2025-04-01 14:29:28 +02:00
Martine Lenders
b52ddefccd
headerguards: move annotation by offset 2021-03-11 13:32:33 +01:00
Martine Lenders
2d27db02f5
headerguards: fix diff annotations 2021-02-23 18:25:50 +01:00
Martine Lenders
0a99a018c2
dist/tools/headerguards: fix comment for current code 2021-01-14 12:26:58 +01:00
Martine Lenders
b711515e76
dist/tools/headerguards: fix annotation for multiple patches per file 2021-01-12 15:04:02 +01:00
Martine Lenders
3ffe6f665f
dist/tools/headerguards: annotate errors in Github Action 2021-01-12 12:52:54 +01:00
Alexandre Abadie
06f3a18f52
tools/headerguards: also catch messages from stderr 2021-01-09 19:13:02 +01:00
smlng
1adb5852ec tools: allow static checks to be run from any directory 2018-06-06 14:03:31 +02:00
Gaëtan Harter
ef13d91bed
tools/check: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-14 15:47:53 +02:00
Alexandre Abadie
cfe2885720 dist/tools/headerguards: fix flake8 issues 2017-12-21 09:21:34 +01:00
de07fe07e5 dist: tools: headerguard: initial commit 2017-05-24 17:54:01 +02:00