Skip to content

[codex] Use non-reserved header guards#122

Merged
NewYaroslav merged 2 commits into
mainfrom
codex/non-reserved-header-guards
Jul 5, 2026
Merged

[codex] Use non-reserved header guards#122
NewYaroslav merged 2 commits into
mainfrom
codex/non-reserved-header-guards

Conversation

@NewYaroslav

Copy link
Copy Markdown
Owner

Summary

  • rename project-owned header guards to non-reserved LOGIT_CPP_HEADER_*_INCLUDED names
  • add missing guards to pragma-only public headers
  • update agent/style/orientation docs with the new guard rule
  • update the log_macros.hpp include-order check to use the renamed enums.hpp guard

Validation

  • scanned include/: 64 guards, 0 missing, 0 reserved names, 0 duplicates, 0 BOMs
  • git diff --check
  • configured MinGW test build with LOGIT_CPP_BUILD_TESTS=ON
  • built include-contract targets
  • ctest -R "include_.*|include-only|quickstart" passed 9/9

Rename project-owned header guards to the LOGIT_CPP_HEADER_*_INCLUDED pattern and add missing guards to pragma-only headers. Document the rule for future agent work.
Restore the non-ASCII documentation text that was mojibaked during the include guard rewrite.
@NewYaroslav NewYaroslav marked this pull request as ready for review July 5, 2026 15:04
@NewYaroslav NewYaroslav merged commit ba3eac2 into main Jul 5, 2026
13 checks passed
@NewYaroslav NewYaroslav deleted the codex/non-reserved-header-guards branch July 5, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant