Repository navigation
Recover conditional C++ and Objective-C function profiles - #255
Merged
Merged
Conversation
tob-scott-a
force-pushed
the
codex/v010-signature-macros
branch
from
December 2, 2026 11:04
a04cee7 to
d58444a
Compare
tob-scott-a
force-pushed
the
codex/v010-conditional-profiles
branch
from
December 2, 2026 11:05
2d33f7e to
a313839
Compare
tob-scott-a
force-pushed
the
codex/v010-conditional-profiles
branch
from
December 2, 2026 11:42
a313839 to
e65cbb3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Recover C++ and Objective-C functions hidden by conditional arms that split braces. The parser uses the first syntax profile with fewer grammar errors for the whole file, then unions verified affected declarations and nested callables from other profiles. Namespace and class owners remain distinct, including when one physical function belongs to alternative owners; independent declarations after a group keep their actual owner.
Recovery preserves source offsets, call-site evidence, original diagnostics, and source-file counts. Calls carry conditional provenance and stay uncertain after directory linking. Conflicting operand interpretations remain unknown. Enumeration is bounded at 64 recovery profiles and reports incomplete coverage; strict mode still rejects recovered source. The shared generator preserves C's existing profile bytes. Supported Objective-C nullability handling remains unchanged.
Validation: 7,218 tests passed with one Python-version skip; 878 focused checks passed after rebasing onto tree-sitter 0.27. Ruff, formatting, and ty passed. The focused campaign killed 118 mutants; the remaining zip-strictness mutation has a narrow, documented equivalence review. Tests cover all-arm calls, owner alternatives, nested functions, source boundaries, the profile cap, and real worker equality.
Depends on #253. Closes #224.