Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++: PrintAST support for destructor calls #15270

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MathiasVP
Copy link
Contributor

Note: This should not be merged!

This is simply my attempt at adding destructor calls to PrintAST. This doesn't come for free because they don't have a proper parent / child relationship with the rest of the AST.

The first commit adds printing of destructors (along with a single test case). The next commit breaks everything by adding a test where the same destructor call is placed in two different places in the AST. This breaks the tree'ness of PrintAST, and causing the entire test file to change since it changes the structure from a tree to a graph 🙈.

cc @jketema I hope this is helpful!

@MathiasVP MathiasVP changed the title C++: Print destructor calls in AST C++: PrintAST support for destructor calls Jan 9, 2024
@github-actions github-actions bot added the C++ label Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant