Skip to content

[NFC][ConstraintSystem] Move some inlined header methods to implementation file #32107

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 4 commits into from
Jun 6, 2020

Conversation

LucianoPAlmeida
Copy link
Contributor

The initial intention was just to audit and see if some methods could be moved to implementation instead of inline in the header. As commented in another PR normally is recommended to inline only small methods.
There is not a precise definition of what is a small method, but I thought in propose moving those in this PR.
While moving I note, that these specific methods have almost exactly the same implementation, so I try to abstract the common logic which seems like an improvement, but TBH not sure if it is worthed nor got much better ... but sending anyway to see what you think cc @xedin @DougGregor

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

I like this, I left a couple of minor comments inline.

@LucianoPAlmeida
Copy link
Contributor Author

@DougGregor as you were one of the last people to modify those methods, pinging for a review :)

@LucianoPAlmeida
Copy link
Contributor Author

@xedin We haven't heard from @DougGregor yet, but since this is a quite simple NFC change I wonder if we could move on? No problem waiting, I'm just doing some checking in some open PR's :)

@xedin
Copy link
Contributor

xedin commented Jun 6, 2020

I think this is good to go. Do you want me to merge it? (I thought that you going to merge it once you get committer access).

@LucianoPAlmeida
Copy link
Contributor Author

I think this is good to go. Do you want me to merge it? (I thought that you going to merge it once you get committer access).

Ahh, yes I have the commit access so I can merge it, but still waiting for the access to trigger the CI... so can you kick it then? :)

@xedin
Copy link
Contributor

xedin commented Jun 6, 2020

@swift-ci please smoke test

@LucianoPAlmeida
Copy link
Contributor Author

Thanks :)
Windows build failure seems unrelated, should we kick it again?

@xedin
Copy link
Contributor

xedin commented Jun 6, 2020

@swift-ci please smoke test Windows platform

@xedin
Copy link
Contributor

xedin commented Jun 6, 2020

If it fails with unrelated problem again - don’t worry and merge.

@LucianoPAlmeida
Copy link
Contributor Author

If it fails with unrelated problem again - don’t worry and merge.

Oh right, thanks :)

@LucianoPAlmeida LucianoPAlmeida merged commit 3e280b8 into swiftlang:master Jun 6, 2020
@LucianoPAlmeida LucianoPAlmeida deleted the nfc-move-to-cpp branch June 6, 2020 19:40
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