Skip to content

refactor: drive visit() switches from existing X-macro .inc files#1194

Merged
gennaroprota merged 1 commit into
cppalliance:developfrom
gennaroprota:refactor/drive_visit_switches_from_existing_xmacro_inc_files
May 5, 2026
Merged

refactor: drive visit() switches from existing X-macro .inc files#1194
gennaroprota merged 1 commit into
cppalliance:developfrom
gennaroprota:refactor/drive_visit_switches_from_existing_xmacro_inc_files

Conversation

@gennaroprota
Copy link
Copy Markdown
Collaborator

The hand-coded visit() switches in Type.hpp, TArg.hpp, and TParam.hpp were duplicating the type list already enumerated by their respective *Nodes.inc X-macro files. This rewrites each to consume the .inc file, instead, matching the pattern Symbol.hpp, Name.hpp, Block.hpp, Inline.hpp already use, so the .inc is the single source of truth.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

⚠️ Warnings

Warning

Add a brief note about how this change was tested (or why tests are not needed).

🧾 Changes by Scope

Scope Lines Δ% Lines Δ Lines + Lines - Files Δ Files + Files ~ Files ↔ Files -
🛠️ Source 100% 80 19 61 3 - 3 - -
Total 100% 80 19 61 3 - 3 - -

Legend: Files + (added), Files ~ (modified), Files ↔ (renamed), Files - (removed)

🔝 Top Files

  • include/mrdocs/Metadata/Type.hpp (Source): 44 lines Δ (+7 / -37)
  • include/mrdocs/Metadata/TArg.hpp (Source): 18 lines Δ (+6 / -12)
  • include/mrdocs/Metadata/TParam.hpp (Source): 18 lines Δ (+6 / -12)

Generated by 🚫 dangerJS against d352f49

@gennaroprota gennaroprota force-pushed the refactor/drive_visit_switches_from_existing_xmacro_inc_files branch from 6bc06db to a0dcd2b Compare May 1, 2026 10:47
@codecov
Copy link
Copy Markdown

codecov Bot commented May 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.12%. Comparing base (5ca01a2) to head (d352f49).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1194   +/-   ##
========================================
  Coverage    82.12%   82.12%           
========================================
  Files           33       33           
  Lines         3149     3149           
  Branches       734      734           
========================================
  Hits          2586     2586           
  Misses         387      387           
  Partials       176      176           
Flag Coverage Δ
bootstrap 82.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cppalliance-bot
Copy link
Copy Markdown

cppalliance-bot commented May 1, 2026

An automated preview of the documentation is available at https://1194.mrdocs.prtest2.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-05-04 06:03:58 UTC

@gennaroprota gennaroprota force-pushed the refactor/drive_visit_switches_from_existing_xmacro_inc_files branch from a0dcd2b to 5b2c18c Compare May 1, 2026 16:00
The hand-coded `visit()` switches in Type.hpp, TArg.hpp, and TParam.hpp
were duplicating the type list already enumerated by their respective
*Nodes.inc X-macro files. This rewrites each to consume the .inc file,
instead, matching the pattern Symbol.hpp, Name.hpp, Block.hpp,
Inline.hpp already use, so the .inc is the single source of truth.
@gennaroprota gennaroprota force-pushed the refactor/drive_visit_switches_from_existing_xmacro_inc_files branch from 5b2c18c to d352f49 Compare May 4, 2026 05:55
@gennaroprota gennaroprota merged commit ec99c4a into cppalliance:develop May 5, 2026
25 checks passed
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