core: replace header guards with #pragma once#21405
Conversation
|
Hello @JerelJr, First all all welcome to the RIOT community and thank you for your first contribution. :) It seems like the changes broke something, as the CI build does not complete anymore: https://ci.riot-os.org/details/9d47c2b748804fc4820232a5810c9d0e Generally speaking, the Today the Hard Freeze will start and the Soft Freeze is already in place, so this is not a feature that could be merged before the next release: https://forum.riot-os.org/t/release-2025-04-soft-freeze-in-effect/4497/1 Perhaps you can look at the error in the CI system to try to locate which change broke the build in the meantime :) |
|
Thank you for your feedback! I started with |
maribu
left a comment
There was a problem hiding this comment.
Thanks a lot! Would you mind squashing the commits into one?
core/lib/include/ringbuffer.h: removed trailing newline core/lib/include/irq.h: restored header guard for irq.h to resolve build errors core/lib/include/irq.h: added trailing newline to irq.h
121d118 to
04dafd5
Compare
|
Since an agreement to use |
|
Thx a lot! |
|
Thanks for your review and feedback! |
With the migration to #pragma once in the core header in RIOT-OS#21405, the workaround for the header name check when using #include_next is not necessary anymore and can be dropped.
With the migration to #pragma once in the core header in RIOT-OS#21405, the workaround for the header name check when using #include_next is not necessary anymore and can be dropped.
| #ifndef THREAD_FLAGS_H | ||
| #define THREAD_FLAGS_H | ||
|
|
There was a problem hiding this comment.
This PR (partly) introduced a regression that if no empty line was present in front of the #ifndef, the end of the Doxygen comment block "touches" the #include.
I'm not 100% sure if this is worth fixing though.
Contribution description
Updated header files in the
coredirectory and its subdirectories by switching from header guards to#pragma onceTesting procedure
I used this script to find and correct header files that need to be changed. Change
RIOT_PATHto the directory to be fixedIssues/PRs references
See issue #21335