Skip to content

phase2/06: filter attributes, string concat, and header stand-ins - #97

Open
rieske wants to merge 3 commits into
masterfrom
phase2/06-scanner-filters
Open

phase2/06: filter attributes, string concat, and header stand-ins#97
rieske wants to merge 3 commits into
masterfrom
phase2/06-scanner-filters

Conversation

@rieske

@rieske rieske commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Post-gcc -E token filters on Scanner: attributes/asm, dropped markers, wide prefixes, adjacent-string concat, type stand-ins (_Bool, __int128, _FloatN, __func__).
  • Line-oriented # skip in TranslationUnit (including all-# EOF clear so skipped lines are not re-emitted).
  • Three-tier path: unfiltered → base-filtered → wide/concat. Shared test writeTempSource helper.

Stack

Phase 2 PR 6 of 6 (base: phase2/05-typedef). Tip of the stack.

Depends on #96.

Test plan

  • ScannerFilterTest behavioral suite (attrs, asm multi-prefix, concat, stand-ins, noise between strings)
  • TU # skip + all-hash EOF pins
  • Full ctest 19/19 green on tip

Port post-lex token filters for attributes/asm, wide strings, adjacent
string concatenation, and type stand-ins. Skip leftover #pragma lines in
TranslationUnit. Add ScannerFilterTest.
@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/05-typedef to master 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.

1 participant