Skip to content

[codex] Add runtime string format opt-ins#30

Merged
anthonyprintup merged 1 commit into
mainfrom
codex/runtime-string-format-opt-ins
May 1, 2026
Merged

[codex] Add runtime string format opt-ins#30
anthonyprintup merged 1 commit into
mainfrom
codex/runtime-string-format-opt-ins

Conversation

@anthonyprintup
Copy link
Copy Markdown
Owner

Summary

  • Add PROTOCYTE_ENABLE_STD_FORMAT to enable std::formatter support for protocyte::String<Config>.
  • Add PROTOCYTE_ENABLE_FMT_FORMAT to enable ADL format_as support for {fmt} without adding a hard fmt dependency.
  • Regenerate the smoke runtime header and add direct std::format smoke coverage for runtime strings, width formatting, and embedded NUL preservation.

Test Plan

  • uv run python -m compileall src tests
  • uv run pytest -q
  • cmake --build build\clangcl --target protocyte_host_smoke
  • ctest --test-dir build\clangcl --output-on-failure
  • git diff --check

@anthonyprintup anthonyprintup force-pushed the codex/runtime-string-format-opt-ins branch 2 times, most recently from 0da32ea to dcab33f Compare May 1, 2026 21:53
@anthonyprintup
Copy link
Copy Markdown
Owner Author

@codex review

@anthonyprintup anthonyprintup marked this pull request as ready for review May 1, 2026 22:10
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dcab33ff9e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread smoke/CMakeLists.txt Outdated
@anthonyprintup anthonyprintup force-pushed the codex/runtime-string-format-opt-ins branch from dcab33f to 7638498 Compare May 1, 2026 22:17
Add PROTOCYTE_ENABLE_STD_FORMAT for std::formatter support on protocyte::String<Config>.

Add PROTOCYTE_ENABLE_FMT_FORMAT for ADL format_as support without introducing a fmt dependency.

Regenerate the smoke runtime header and add direct std::format smoke coverage for runtime strings, width formatting, and embedded NUL preservation.
@anthonyprintup anthonyprintup force-pushed the codex/runtime-string-format-opt-ins branch from 7638498 to 62b6965 Compare May 1, 2026 22:20
@anthonyprintup anthonyprintup merged commit 3eee06b into main May 1, 2026
8 checks passed
@anthonyprintup anthonyprintup deleted the codex/runtime-string-format-opt-ins branch May 1, 2026 22:25
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