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 what we use (header tidy) #1484

Closed
wants to merge 38 commits into from
Closed

Include what we use (header tidy) #1484

wants to merge 38 commits into from

Conversation

ZedThree
Copy link
Member

@ZedThree ZedThree commented Jan 7, 2019

Includes #1464. Done automatically using include-what-you-use plus some manual tinkering. I can add the mapping file I used, but it has hardcoded absolute paths in it.

  • Include all needed headers for each file
  • Use forward declarations wherever possible
  • Consistent use of "" when including our headers
  • Consistent position of include guards on outside of files
  • Use clang-format to sort headers

This is an enormous change, but it should be entirely backwards compatible -- bout/physicsmodel.hxx includes more headers than it actually needs in order to maintain this.
The compilation speedup is about 20%, but it does also make all our headers consistent (albeit using a sledgehammer!)

I think we should do this at some point, along with moving all the headers inside include/bout/, but we could put both off till 5.0. They can (mostly) be done automatically now too, so it's not a great effort to re-do at a later point.

This removes the requirement to include the interpolation header
As we provide header guards for boutcomm we can avoid including mpi.h
multiple times.
@ZedThree
Copy link
Member Author

ZedThree commented Feb 6, 2019

As expected, this has a million conflicts. Given my changes were either from a tool or basically just mechanical, I'm closing this and will revisit later.

@ZedThree ZedThree closed this Feb 6, 2019
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.

None yet

2 participants