Skip to content

[NFC] Pass Converter to Mapper - #450

Open
lucic71 wants to merge 2 commits into
Cpp2Rust:masterfrom
lucic71:mapper-args
Open

lucic71 wants to merge 2 commits into
Cpp2Rust:masterfrom
lucic71:mapper-args

Conversation

@lucic71

@lucic71 lucic71 commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

The current string matcher must save string rules for user defined types. For example std::vector<UserDefinedRecord> works by first applying the string rule for vector then the string rule for UserDefinedRecord.

The new AST matcher (#447) won't need string rules for user defined types. After applying the rule for vector it will ask Converter to print UserDefinedRecord.

I also added a test that fails with a current matcher and will pass with the AST matcher: std::vector<S *const *>. There is no string rule for S * const * and the current matcher panics.

This branch has not been deployed

No deployments
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