Skip to content

fix(cpp): add regression tests for functor and type conversion operators (#1759) - #1784

Closed
squid-protocol wants to merge 5 commits into
mainfrom
fix/cpp-operator-conversion-support
Closed

fix(cpp): add regression tests for functor and type conversion operators (#1759)#1784
squid-protocol wants to merge 5 commits into
mainfrom
fix/cpp-operator-conversion-support

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Resolves #1759. Correctly extracts C++ operator overloads (like operator()) and properly parses their arguments. Tree-sitter accuracy audit shows 0 regressions, with improved found_functions and args_exact_match.

emre155 and others added 5 commits August 16, 2026 17:00
…_start regex

When parsing non-primitive conversion operators like MyClass::operator std::string(), the return type loop previously consumed MyClass::operator
as a return type prefix, leaving only std::string captured as the function
name. Add a negative lookahead to prevent the return type loop from consuming
operator identifiers.

Addresses part of #1752
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants