Skip to content

Replace explicit 'delete' calls with std::unique_ptr in AST #19366

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

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

jrose-apple
Copy link
Contributor

No functionality change.

@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1164,7 +1162,7 @@ class SourceFile final : public FileUnit {
/// If not None, the underlying vector should contain tokens of this source file.
Optional<std::vector<Token>> AllCorrectedTokens;

SourceFileSyntaxInfo &SyntaxInfo;
std::unique_ptr<SourceFileSyntaxInfo> SyntaxInfo;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wait, this doesn't need to be out-of-line at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

…yes it does, never mind.

@jrose-apple jrose-apple merged commit e1901fd into swiftlang:master Sep 19, 2018
@jrose-apple jrose-apple deleted the delete-delete-AST branch September 19, 2018 02:41
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.

3 participants