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

Move function to another file #45

Open
thoni56 opened this issue Sep 4, 2019 · 1 comment
Open

Move function to another file #45

thoni56 opened this issue Sep 4, 2019 · 1 comment

Comments

@thoni56
Copy link
Owner

thoni56 commented Sep 4, 2019

A refactoring for C that would be handy is to move a function to another file.

This requires some heuristics that also needs to be checked before doing the move:

  • is there a header file with the same name both for source and target module

And what about the clients of the module, should their #includes also be changed? I guess they should, otherwise it is not a true refactoring.

@thoni56
Copy link
Owner Author

thoni56 commented Sep 4, 2019

Perhaps it is possible to leverage the existing(no?) move class function...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant