Skip to content

cpp: template-qualified out-of-line member definitions (Part of #5462) - #5495

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5462-20261018T1550Z
Oct 18, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5462-20261018T1550Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5462.

C++ func_start and args now accept a template argument list on any qualifier segment (Foo<A, B>::m), via a shared bounded _TPL_QUAL (2-level nesting, delimited by ::, no new unbounded quantifier).

Class table (qualified out-of-line definition forms)

member status
Cls::m handled before
Cls<T>::m, Cls<A, B>::m, nested/default template args fixed here, tested
ns::Cls<T>::m, Outer<T>::Inner::m, Outer::Inner<T>::m fixed here, tested
Cls<T>::Cls, Cls<T>::~Cls fixed here, tested
operator[], operator==, operator bool on Cls<T> fixed here, tested
template<> void Cls<int>::m() explicit specialisation fixed here, tested

Captured name keeps the qualifier text, matching the existing convention (Foo<A, B>::m).

Evidence

  • Raw func_start over the pinned doom-study repos: doom-nano 13 template-qualified matches (ctags 13); doom3-bfg 362 (issue counted 326 missed).
  • Tests: test_cpp_template_member.py (valid x16, invalid x3, ReDoS x3) plus existing cpp suites: pass.
  • Gates: pr_gates --fast (after ruff format) and --ratchets 8/8 pass; crucible_check.py both legs PASS with no diff (no golden re-bless needed).

Not done: a full galaxyscope rescan of doom3-bfg / 3% ctags comparison (see report).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 18, 2026 16:12
@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 16:17
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5495 @ 89e8995: 1 failed check(s)

== tree-sitter-accuracy-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39144352993/job/117725179258
repro: python tests/tools/pr_gates.py --fast
errors:
MISSING CLASSES IN threejs_app_ui/editor_main.css: {'.Label', '.type', '.Mesh', '#outliner', '.Camera', '.title', '.dragTop', '.Number', '#viewport', '.closed', '.options', '.Dialog-title', '.success', '.Object3D', '.Material', '.Input', '.
##[error]Process completed with exit code 1.
log tail:
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== rust ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== scala ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== shell ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== solidity ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== swift ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== tcl ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== typescript ===
tree_sitter_accuracy_audit: OK -- matches the committed baseline, no regressions.
=== zig ===
tree_sitter_accuracy_audit: ground-truth metric(s) drifted from the pinned corpus's expected values:
files_scanned: baseline=35 current=36
real_functions: baseline=2839 current=3538
real_classes: baseline=673 current=734
This means the corpus changed. Investigate before regenerating.
tree_sitter_accuracy_audit --all: 30 language(s) checked.
tree_sitter_accuracy_audit --all: 1 FAILED: zig
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/f9eff646-9323-43d8-b6ec-8a02607c68e8' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant