Skip to content

Conversation

@mattangus
Copy link

@mattangus mattangus commented Jan 31, 2025

This PR adds support for arbitrary nesting of namespaces (any number of nested levels).

This PR updates the template code and I'm not sure how you would like me to deal with the reference files in the test folder. Should I replace everything? The tests still pass because the --always-success flag is enabled.

Copy link
Member

@lyskov lyskov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for putting this together @mattangus ! Could you please elaborate on why this PR is needed, ie what exactly does not work properly in current version of the code? Maybe add minimal header-file-snippet to PR description that will trigger errors/wrong-behavior?
Thanks,

}

res.push_back (s.substr (pos_start));
return res;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please say a few words why do you want to rewrite this function? Thanks,

@mattangus
Copy link
Author

I wrote this code a while ago but just never got around to making the PR. I did find an edge case but I can't remember what it is now. I've run the new test that I created on master and it's producing the right output. I'll find the code that has that edge case and update the test!

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