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

cleanup includes #4763

Closed

Conversation

Disservin
Copy link
Member

Reorder a few includes and include "position.h" where it was previously missing. Also make the order of the includes consistent, in the following way.

  1. Related header (for .cpp files)
  2. A blank line
  3. C/C++ headers
  4. A blank line
  5. All other header files

No functional change

Reorder a few includes and include "position.h" where it was previously missing.
Also make the order of the includes consistent, in the following way.

1. Related header (for .cpp files)
2. A blank line
3. C/C++ headers
4. A blank line
5. All other header files

No functional change
@Disservin
Copy link
Member Author

For now I've only made the order consistent and included "position.h" where it was used. There are still other headers which are implictly included but fixing all of them needs a bit more time and is perhaps better todo in another pr.

@UniQP
Copy link
Contributor

UniQP commented Aug 24, 2023

This should also fix #4707 because of the #include <cmath> in nnue/evaluate_nnue.cpp.

@Disservin
Copy link
Member Author

This should also fix #4707 because of the #include <cmath> in nnue/evaluate_nnue.cpp.

and make the current version of #4760 redundant

@Disservin Disservin requested a review from vondele August 26, 2023 10:50
@snicolet snicolet added the to be merged Will be merged shortly label Sep 3, 2023
@snicolet snicolet closed this in 3c0e86a Sep 3, 2023
@snicolet
Copy link
Member

snicolet commented Sep 3, 2023

Merged via 3c0e86a, thanks :-)

@Disservin
Copy link
Member Author

@UniQP thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-bench-change to be merged Will be merged shortly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants