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

Include order fix #890

Merged
merged 26 commits into from
Jul 17, 2017
Merged

Include order fix #890

merged 26 commits into from
Jul 17, 2017

Conversation

reuk
Copy link
Contributor

@reuk reuk commented May 7, 2017

Header files should include everything that they need in order to compile cleanly. The simplest way to ensure that this is the case is to have each source file include its corresponding header file first, before declaring anything else.

This patch moves includes in source files so that the corresponding header file is always included first. In some cases, this broke the build because the header files weren't standalone. In these cases, the header files have been updated to properly reflect their dependencies.

@reuk reuk force-pushed the include-order-fix branch from f909a32 to cae004b Compare May 7, 2017 14:23
Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

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

Thank you very much, this has been long overdue!

@reuk reuk force-pushed the include-order-fix branch 2 times, most recently from 1941d94 to 242d224 Compare May 22, 2017 16:14
@kroening
Copy link
Member

Needs a rebase, but otherwise ready to go

@reuk reuk force-pushed the include-order-fix branch 2 times, most recently from 80adcd4 to db1168a Compare June 20, 2017 08:48
@peterschrammel
Copy link
Member

@kroening, looks ready to go.

@reuk reuk force-pushed the include-order-fix branch from db1168a to a48686f Compare July 10, 2017 14:13
@kroening
Copy link
Member

Apologies, another rebase is needed.

@reuk reuk force-pushed the include-order-fix branch from a48686f to f6527d3 Compare July 16, 2017 19:38
@reuk
Copy link
Contributor Author

reuk commented Jul 16, 2017

Rebased.

@reuk reuk force-pushed the include-order-fix branch from f6527d3 to ba73db3 Compare July 17, 2017 08:55
@kroening kroening merged commit 5f7ff99 into diffblue:master Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants