Skip to content

pkg: replace header guards with #pragma once#21701

Merged
crasbe merged 1 commit intoRIOT-OS:masterfrom
N11cc00:fix-pkg-headers
Oct 17, 2025
Merged

pkg: replace header guards with #pragma once#21701
crasbe merged 1 commit intoRIOT-OS:masterfrom
N11cc00:fix-pkg-headers

Conversation

@N11cc00
Copy link
Contributor

@N11cc00 N11cc00 commented Sep 5, 2025

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 under pkg/, excluding those that have a path that contains /vendor/.

It should now remove double empty lines around the #ifndef block.

Issues/PRs references

Tracking issue #21335

@github-actions github-actions bot added Area: network Area: Networking Area: pkg Area: External package ports Area: BLE Area: Bluetooth Low Energy support Area: LoRa Area: LoRa radio support labels Sep 5, 2025
@N11cc00 N11cc00 changed the title pkg: replace header guards with #pragma once #21517 pkg: replace header guards with #pragma once Sep 5, 2025
@crasbe crasbe added Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Sep 5, 2025
@riot-ci
Copy link

riot-ci commented Sep 5, 2025

Murdock results

✔️ PASSED

96ad5c3 pkg: replace header guards with #pragma once

Success Failures Total Runtime
10552 0 10552 09m:18s

Artifacts

@N11cc00 N11cc00 force-pushed the fix-pkg-headers branch 3 times, most recently from 52167ef to 512a3fa Compare September 6, 2025 12:23
@crasbe
Copy link
Contributor

crasbe commented Sep 8, 2025

I did not go through these files yet, but maybe you can run the latest revision of the script on this PR too?

Copy link
Contributor

@crasbe crasbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@crasbe
Copy link
Contributor

crasbe commented Sep 12, 2025

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.

@crasbe crasbe added the State: waiting for author State: Action by the author of the PR is required label Oct 17, 2025
@crasbe
Copy link
Contributor

crasbe commented Oct 17, 2025

@N11cc00 ping :)

@N11cc00
Copy link
Contributor Author

N11cc00 commented Oct 17, 2025

Yep, I applied the remaining fixes

@crasbe crasbe removed the State: waiting for author State: Action by the author of the PR is required label Oct 17, 2025
Copy link
Contributor

@crasbe crasbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash :)

@crasbe crasbe enabled auto-merge October 17, 2025 13:21
@crasbe crasbe added this pull request to the merge queue Oct 17, 2025
Merged via the queue into RIOT-OS:master with commit 81ccaba Oct 17, 2025
25 checks passed
@benpicco benpicco added this to the Release 2025.10 milestone Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: BLE Area: Bluetooth Low Energy support Area: LoRa Area: LoRa radio support Area: network Area: Networking Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants