Skip to content

phase2/05: typedef end-to-end with reduce-time registry and shadows - #96

Merged
rieske merged 2 commits into
masterfrom
phase2/05-typedef
Aug 1, 2026
Merged

phase2/05: typedef end-to-end with reduce-time registry and shadows#96
rieske merged 2 commits into
masterfrom
phase2/05-typedef

Conversation

@rieske

@rieske rieske commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Typedef end-to-end: storage-class leaves, PE registerInitializedDeclaration / maybeRegisterParameterShadow, real typedefName creator.
  • TokenStream lifecycle: push+flush pending on {, pop on }, clear pending on ; (prototypes do not poison later uses).
  • Object shadows brace-scoped; param shadows pending until next { (product limit: intermediate braces mid-param-list).

Stack

Phase 2 PR 5 of 6 (base: phase2/04-enums).

Depends on #95.

Test plan

  • PE / registry / TokenStream unit pins (including empty typedef specs soft-return)
  • TypedefTest functional ladder (basic/chained/struct, shadows, f(T T), prototype non-poison, after-int)
  • Full ctest green on stack tip

Register typedef names at declaration reduce into LexicalSession, look up
typedef_name in CSNB, skip SA object insert for typedef, and shadow object
declarators that reuse typedef spellings. Port TypedefTest.
@mergify

mergify Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Base automatically changed from phase2/04-enums to master July 31, 2026 20:09
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 92.4% (+0.3%) from 92.13% — phase2/05-typedef into master

@rieske
rieske merged commit 1e45e9e into master Aug 1, 2026
4 checks passed
@rieske
rieske deleted the phase2/05-typedef branch August 1, 2026 09:07
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.

2 participants