test(extraction): dense-header regression guard for UE class recovery (#1160)#1206
Merged
Conversation
…#1160) The integration tests that shipped with #1158 use inputs too small to trigger the tree-sitter class_specifier collapse, so they pass with OR without the fix (verified: 0/3 reproduce on the pre-fix build) — only the offset-preserving unit tests actually guard the behavior. This adds a real guard: a ~240-in-body-macro reflected class (the density of the real CharacterMovementComponent.h) plus a UENUM whose values carry mid-line UMETA. Asserting the decorated members and the enum are extracted flips false->true across the three blank passes — verified the same assertions FAIL on the pre-fix source (2a06d9a) and PASS on the fix. The full class collapse is emergent from real engine-header content that can't be shipped (Unreal source is EULA-licensed); this reproduces the recoverable-member signal the collapse leaves, which regresses if any of blankCppAnnotationMacroCalls / blankCppApiPrefixMacros / blankCppInlineAnnotationMacros is reverted. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 7, 2026
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.
Follow-up to #1158. The integration tests that landed with that fix use inputs too small to trigger the tree-sitter
class_specifiercollapse, so they pass with or without the fix (verified: 0/3 reproduce on the pre-fix build) — only the offset-preserving unit tests actually guarded the behavior.This adds a genuine guard: a ~240-in-body-macro reflected class (the density of the real
CharacterMovementComponent.h) plus aUENUMwhose values carry mid-lineUMETA. It asserts the decorated members (Compute0, a middle one, and the last) and the enum are extracted — signals that flip false → true across the three blank passes.Verified both directions: the same assertions fail on the pre-fix source (
2a06d9a, before #1158) and pass on the fix — so reverting any ofblankCppAnnotationMacroCalls/blankCppApiPrefixMacros/blankCppInlineAnnotationMacrosregresses at least one assertion.The full class collapse is emergent from real engine-header content that can't be shipped (Unreal source is EULA-licensed); this reproduces the recoverable-member signal the collapse leaves. Test-only; full extraction suite 578/578.
🤖 Generated with Claude Code