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

7 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
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