Skip to content

[arc-codemotion] Do not call virtual methods in constructors. #17188

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

Conversation

gottesmm
Copy link
Contributor

Moved the setting to the run section of arc-code motion.

In this case I think it is safe to do this, but calling a virtual function is
generally a code smell, so no reason to keep it in the code base unless we need
to.

Caught by the clang static analyzer.

rdar://41102667

(cherry picked from commit f1533db)

Moved the setting to the run section of arc-code motion.

In this case I think it is safe to do this, but calling a virtual function is
generally a code smell, so no reason to keep it in the code base unless we need
to.

Caught by the clang static analyzer.

rdar://41102667

(cherry picked from commit f1533db)
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm gottesmm merged commit db10c68 into swiftlang:swift-4.2-branch Jun 14, 2018
@gottesmm gottesmm deleted the swift-4.2-branch-41102667 branch June 14, 2018 17:02
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