Skip to content

[codex] Normalize optionx header guards#68

Merged
NewYaroslav merged 1 commit into
mainfrom
codex/header-guard-cleanup
Jul 6, 2026
Merged

[codex] Normalize optionx header guards#68
NewYaroslav merged 1 commit into
mainfrom
codex/header-guard-cleanup

Conversation

@NewYaroslav

Copy link
Copy Markdown
Owner

Summary

  • rename project-owned include/optionx_cpp header guards to the new non-reserved OPTIONX_HEADER_*_INCLUDED form
  • include guarded .ipp files that already have direct include guards
  • leave implementation/platform/compiler macros untouched

Checks

  • guard scan: bad=0, duplicates=0
  • git diff --check
  • cmake -S . -B build-codex-guards -G "MinGW Makefiles" -DOPTIONX_BUILD_DEPS=ON -DOPTIONX_BUILD_TESTS=ON
  • cmake --build build-codex-guards --target header_only_odr_test -- -j1
  • build-codex-guards/header_only_odr_test.exe --gtest_brief=1
  • cmake --build build-codex-guards --target market_data_subscription_contract_test -- -j1
  • build-codex-guards/market_data_subscription_contract_test.exe --gtest_brief=1

Notes

trade_manager_test built and printed PASSED 21, but the local Windows/MinGW process exited with an access violation during teardown. Ubuntu Smoke still covers that test in CI; the guard rewrite itself is preprocessor-only.

@NewYaroslav NewYaroslav force-pushed the codex/header-guard-cleanup branch from fa1fafb to bc21e15 Compare July 5, 2026 23:54
@NewYaroslav NewYaroslav marked this pull request as ready for review July 6, 2026 02:51
@NewYaroslav NewYaroslav merged commit de4c385 into main Jul 6, 2026
1 check passed
@NewYaroslav NewYaroslav deleted the codex/header-guard-cleanup branch July 6, 2026 02:51
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