Skip to content

[AUTOMATED] Add optional C++ type-name context - #12

Merged
mahaloz merged 36 commits into
Noelo-Lab:mainfrom
sjkim1127:codex/cpp-type-names-split
Nov 9, 2026
Merged

mahaloz merged 36 commits into
Noelo-Lab:mainfrom
sjkim1127:codex/cpp-type-names-split

Conversation

@sjkim1127

@sjkim1127 sjkim1127 commented Oct 29, 2026 •

Copy link
Copy Markdown

[AUTOMATED]

Isolated C++ function slices can omit visible type declarations from their original translation unit, causing braced constructions such as Options{} to be rejected. Add an optional cpp_type_names context to the Rust and Python APIs so a caller can provide proven visible names, and acknowledge the names in the result. Ordinary output omits the field when no context is supplied.

This is split from #5 and independently based on main. The caller must establish visibility; names do not provide declarations, layouts, aliases, function bindings, or constructor semantics. Do not inject source/debug oracle names into producer output. No DecBench policy or default options change.

Validation on this standalone tree:

  • Rust all targets: 208 passed; fmt and clippy passed.
  • Python: 156 run, 16 skipped, including transport and input validation tests.
  • Focused tests cover lexical value shadowing, invalid names, non-C++ input and omission of the field with empty context.

The Snappy examples documented in docs/cpp-source-context.md were measured on an earlier combined prototype, not this final head; exact source visibility was not proven. Corpus-wide parity and semantic qualification remain open.

Integration: #5 and this PR independently edit the same API and parser entry points. A local merge-tree check reports conflicts in five files; after either lands, rebase and revalidate the other.

sjkim1127 and others added 17 commits October 30, 2026 14:18
Keep the GNU case-range operator in the generated table, and the C++ pack-size spelling in the lexical bridge, so the operator port does not change either.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0179iMKNTKZkNX6ZRBmB96eA
mahaloz and others added 7 commits November 9, 2026 16:16
Every other restorable divergence has a joern_* option that original-reference comparisons request. Add joern_cpp_control_flow for the C++ evaluation-order fixes, starting with noexcept operands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0179iMKNTKZkNX6ZRBmB96eA
Keep the lowering this change replaced, so original-reference comparisons can still request it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0179iMKNTKZkNX6ZRBmB96eA
Copilot AI balanced review requested due to automatic review settings November 9, 2026 16:57
@mahaloz
mahaloz merged commit 62c434e into Noelo-Lab:main Nov 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

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.

3 participants