Skip to content

Conversation

N11cc00
Copy link
Contributor

@N11cc00 N11cc00 commented May 21, 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 cpu/, excluding those that have a path that contains /vendor/.

Issues/PRs references

Tracking issue #21335

@github-actions github-actions bot added Platform: native Platform: This PR/issue effects the native platform Platform: MSP Platform: This PR/issue effects MSP-based platforms Platform: ARM Platform: This PR/issue effects ARM-based platforms Platform: AVR Platform: This PR/issue effects AVR-based platforms Platform: ESP Platform: This PR/issue effects ESP-based platforms Platform: RISC-V Platform: This PR/issue effects RISC-V-based platforms Area: cpu Area: CPU/MCU ports labels May 21, 2025
@maribu maribu added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label May 21, 2025
@crasbe crasbe added the Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation label May 21, 2025
@riot-ci
Copy link

riot-ci commented May 21, 2025

Murdock results

✔️ PASSED

fe821ea cpu: replace header guards with #pragma once

Success Failures Total Runtime
10363 0 10363 13m:02s

Artifacts

@maribu maribu enabled auto-merge May 21, 2025 15:47
@maribu maribu added this pull request to the merge queue May 21, 2025
@gschorcht
Copy link
Contributor

gschorcht commented May 21, 2025

Could we please wait with merging this PR until I have checked if the rebase of PR #21261, which touches almost all headers in cpu/esp32 and cpu/esp_common, ends in a nightmare of conflicts or not, and if it might be better to do the header guard changes for cpu/esp* in a separate PR once PR #21261 is merged.

@mguetschow mguetschow removed this pull request from the merge queue due to a manual request May 21, 2025
@gschorcht gschorcht added this pull request to the merge queue May 21, 2025
@gschorcht
Copy link
Contributor

@mguetschow Thanks

Ok, I tried to rebase PR #21261 oto this PR. There were only about 15 merge conflicts, but most of them only for the #pragma once directive in header files, in which I had already replaced the header guards by #pragma once directives during the migration process or for files that no longer exist. So the changes are also OK for cpu/esp*.

Merged via the queue into RIOT-OS:master with commit 9156357 May 21, 2025
28 checks passed
@crasbe
Copy link
Contributor

crasbe commented May 21, 2025

@maribu you were a bit too quick. This PR caused a lot of static errors for consecutive empty lines:

image

@maribu
Copy link
Member

maribu commented May 21, 2025

Those are easy to fix, though: #21502

@Teufelchen1 Teufelchen1 added this to the Release 2025.07 milestone Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ARM Platform: This PR/issue effects ARM-based platforms Platform: AVR Platform: This PR/issue effects AVR-based platforms Platform: ESP Platform: This PR/issue effects ESP-based platforms Platform: MSP Platform: This PR/issue effects MSP-based platforms Platform: native Platform: This PR/issue effects the native platform Platform: RISC-V Platform: This PR/issue effects RISC-V-based platforms 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.

6 participants