-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Header inclusion minimization #548
Comments
@MaanooAk, some false positives if the traits are in separate headers. |
@ChipmunkV I know, If you somehow pass all the files in one command, should be ok but it may crash... Not perfect in any way. I just used it recently in a much smaller project and thought could help if someone tries to actually to fix the headers... |
We should definitely include cppclean as part of the code compliance checker. Does it produce any false positives? |
First file checked was a false positive (not needing |
Damnit... have i mentioned how the move to modules would solve everything™? |
We had some discussion about this back in #263. The idea here was not forward declaring manually, but having declaration headers. |
Also we should think about explicit instantiation declaration. http://en.cppreference.com/w/cpp/language/class_template |
The |
In order to reduce compile times and prevent cyclic includes in the first place, all our files should be revisited:
class Bla;
)#include "header"
Thus, complete types are only included in files where they are needed.
Template stuff and inheritance parents etc must be included in header files directly of course.
The text was updated successfully, but these errors were encountered: