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

Add missing header #10

Merged
merged 6 commits into from
Aug 28, 2019
Merged

Add missing header #10

merged 6 commits into from
Aug 28, 2019

Conversation

olemke
Copy link
Member

@olemke olemke commented Aug 27, 2019

While testing clang-format, which reorders includes alphabetically, it became apparent that several of our headers are not self-contained. Not sure how to test for this globally.

@olemke olemke requested a review from simonpf August 27, 2019 13:35
@riclarsson
Copy link
Contributor

About "matpack.h" in constants.h. Using any other source for Numeric and Complex than matpack to define Numeric and Complex might be a good idea. This is all that I used of matpack in those files.

@olemke
Copy link
Member Author

olemke commented Aug 28, 2019

@riclarsson Since constants.h currently only uses Numeric, not Complex, I'd prefer to stick with the minimal approach to only include what's needed.

Copy link
Contributor

@simonpf simonpf left a comment

Choose a reason for hiding this comment

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

Totally approve these changes.

To stop this from happening it should be enough to enforce that the first include in the .cc file is the corresponding header. Then these errors will appear during compilation. Anyhow, since this is a compile
time error, I don't think it is too critical.

@simonpf simonpf merged commit d9e71d9 into atmtools:master Aug 28, 2019
@olemke olemke deleted the add-missing-header branch August 29, 2019 06:43
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