pkg: replace header guards with #pragma once#21701
Merged
crasbe merged 1 commit intoRIOT-OS:masterfrom Oct 17, 2025
Merged
Conversation
8 tasks
52167ef to
512a3fa
Compare
Contributor
|
I did not go through these files yet, but maybe you can run the latest revision of the script on this PR too? |
512a3fa to
7b57ce3
Compare
crasbe
reviewed
Sep 8, 2025
crasbe
reviewed
Sep 9, 2025
Contributor
crasbe
left a comment
There was a problem hiding this comment.
I'm about halfway through, but the script still does not seem to be 100% reliable at the #endifs regarding double newlines. Maybe you can check it again and adapt it?
Contributor
|
I reviewed the rest of the files and found no further issues. So once the remaining review comments are addressed, we can get this merged. |
Contributor
|
@N11cc00 ping :) |
Contributor
Author
|
Yep, I applied the remaining fixes |
01bcef8 to
96ad5c3
Compare
This was referenced Jan 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This is part of a greater effort to replace all header guards in RIOT with
#pragma once. This PR only affects all headers underpkg/, excluding those that have a path that contains/vendor/.It should now remove double empty lines around the
#ifndefblock.Issues/PRs references
Tracking issue #21335