Add #pragma once to all header files #86
Open
+2,856
−8
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.
Summary
This PR implements the LinksPlatform decision to use
#pragma onceinstead of traditional header guards in all C++ headers, as discussed in this decision.Changes Made
#pragma onceat the top#pragma onceat the top#pragma onceat the top#pragma onceat the top#ifndef/#define/#endifguards with#pragma onceBenefits
Platform.Ranges.hwhich already uses#pragma onceCompatibility
All modern C++ compilers support
#pragma once. The trade-off of dropping support for very old compilers was accepted per the organizational decision.Test plan
#pragma onceat the top#pragma onceinPlatform.Ranges.hremains unchangedpch.hsuccessfully replacedCloses #43
🤖 Generated with Claude Code