Skip to content

[chore/headers-interface-defines] feat: add PYBIND11_NOINLINE_ATTR and PYBIND11_INLINE macros - #6131

Merged
henryiii merged 1 commit into
masterfrom
feat/precompile-macro-infra
Oct 3, 2026
Merged

henryiii merged 1 commit into
masterfrom
feat/precompile-macro-infra

Conversation

@henryiii

@henryiii henryiii commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

🤖 AI text below 🤖

Description

Stacked on #6130.

Decompose PYBIND11_NOINLINE into PYBIND11_NOINLINE_ATTR + inline (all three current expansions are reproduced exactly), and add PYBIND11_INLINE: inline by default, empty when PYBIND11_PRECOMPILED is defined. This is the macro groundwork for optional pre-compilation (CLI11 and fmt use the same pattern; see also #2445 and #4001). PYBIND11_INLINE has no uses yet, so this PR is a no-op refactor.

Suggested changelog entry:

  • Placeholder.

@rwgk rwgk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also reviewed with codex gpt-5.6-sol ultra: no issues found.

Base automatically changed from chore/headers-interface-defines to master August 17, 2026 04:50
@henryiii
henryiii force-pushed the feat/precompile-macro-infra branch from 59ba815 to 723bc46 Compare August 17, 2026 04:50
Decompose PYBIND11_NOINLINE into the attribute part plus inline, and
add PYBIND11_INLINE, which becomes empty under PYBIND11_PRECOMPILED.
Groundwork for optional pre-compilation; all current expansions are
unchanged and PYBIND11_INLINE is not used yet.

Assisted-by: ClaudeCode:claude-fable-5
@henryiii
henryiii force-pushed the feat/precompile-macro-infra branch from 723bc46 to e5f1ff9 Compare September 27, 2026 02:19
@henryiii
henryiii merged commit ef7892d into master Oct 3, 2026
85 of 86 checks passed
@github-actions github-actions Bot added the needs changelog Possibly needs a changelog entry label Oct 3, 2026
@henryiii
henryiii deleted the feat/precompile-macro-infra branch October 3, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs changelog Possibly needs a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants