-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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++: Add implicit destructors for named variables to the IR #15506
Merged
MathiasVP
merged 34 commits into
github:main
from
rdmarsh2:rdmarsh2/cpp/ir-synthetic-destructors
Feb 27, 2024
Merged
Changes from 20 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
47720e0
C++: generate instructions for destructor calls in IR
rdmarsh2 3a404ce
C++: Add `getLastInstruction` to IR generation
rdmarsh2 85d1d07
C++: Add implicit named destructosrs to the IR CFG
rdmarsh2 820f4a5
C++: custom destructor handling for `for` loops
rdmarsh2 4513fd1
C++: test for destructors in range-based for
rdmarsh2 984c7ab
C++: test for declarations in `if` statement
rdmarsh2 2d010f6
C++: Test for destructors in declaration as `if` condition
rdmarsh2 bbabf1d
C++: add test for constructors in C++17 decl-in-if
rdmarsh2 8013c2a
C++: QLDoc and naming updates for implicit destructors in IR
rdmarsh2 40e06b7
C++: suppress destructor calls on delete in IR generation
rdmarsh2 5653c3f
C++: Update IR test expectations for named destructors
rdmarsh2 1749661
Merge branch 'main' into rdmarsh2/cpp/ir-synthetic-destructors
rdmarsh2 1b571f8
C++: Accept test changes
rdmarsh2 d1160f8
C++: Autoformat for named destructors in IR
rdmarsh2 bac7e46
C++: tests for destructors after a while-loop condition
rdmarsh2 b94c4a6
C++: fix for destructor of while-loop condition
rdmarsh2 6663420
C++: test for multiple for loop variables with destructors
rdmarsh2 7d8872b
C++: Fix for multiple for-loop variables with destructors
rdmarsh2 b6cf64c
C++: simplify TranslatedBlock::getLastChild
rdmarsh2 f791b0e
C++: Model for smart pointer destructors
rdmarsh2 b9785ea
C++: autoformat
rdmarsh2 128bc99
C++: delete some FIXMEs that turned out fine
rdmarsh2 7e23ccd
Merge branch 'main' into rdmarsh2/cpp/ir-synthetic-destructors
rdmarsh2 2c8ed64
C++: test for return in if
rdmarsh2 2494b7d
C++: fix for IR CFG problem with return in if
rdmarsh2 e0c7849
C++: fix incorrect use of getChildInternal
rdmarsh2 66743fb
C++: refactor TranslatedReturnStmt
rdmarsh2 875ab74
Merge branch 'main' into rdmarsh2/cpp/ir-synthetic-destructors
rdmarsh2 ebe6ee5
C++: accept test changes from extractor fixes
rdmarsh2 942a4ed
C++: move handlesDestructorsExplicitly up to TranslatedReturnStmt
rdmarsh2 6f7f68f
Merge branch 'main' into rdmarsh2/cpp/ir-synthetic-destructors
rdmarsh2 dd97584
C++: fix for duplicated parent of ReturnVoid statements
rdmarsh2 da5e3d6
C++: autoformat
rdmarsh2 a513598
C++: Change note for IR named destructors.
rdmarsh2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Redundant import Warning