-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
src: rework includes as per cppclean #7563
Conversation
WARNING:
Pipeline 7955 |
No, any include cleanups I've done in the past have been related to other fixups, so no specific include cleanup ticket yet. |
Would be great if we could get this to work, as in remove all unecessary includes from headers, then source files. Would make it much easier to proceed with some manual cleanup, and logical organization with respect to libsuricata and what we consider private and public. |
0160a53
to
3a94c16
Compare
WARNING:
Pipeline 7962 |
3a94c16
to
03579a7
Compare
Codecov Report
@@ Coverage Diff @@
## master #7563 +/- ##
==========================================
- Coverage 75.80% 75.75% -0.06%
==========================================
Files 658 658
Lines 186526 186522 -4
==========================================
- Hits 141399 141297 -102
- Misses 45127 45225 +98
Flags with carried forward coverage won't be shown. Click here to find out more. |
WARNING:
Pipeline 7965 |
WARNING:
Pipeline 7966 |
579d9c8
to
c5eb49d
Compare
WARNING:
Pipeline 7967 |
WARNING:
Pipeline 7968 |
WARNING:
Pipeline 7970 |
8686d84
to
5afbf7e
Compare
WARNING:
Pipeline 7973 |
WARNING:
Pipeline 7974 |
ERROR: ERROR: QA failed on ips_afp_drop_chk. Pipeline 7975 |
782e67a
to
5c78ffc
Compare
ERROR: ERROR: QA failed on ips_afp_drop_chk. Pipeline 7979 |
@@ -24,11 +24,6 @@ | |||
#ifndef __APP_LAYER_NBSS_H__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this file can be removed instead? Should have been removed as part of the smb to rust work years ago I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh and so are decode-null.h and util-vector.h :-)
Looks good to me. Will run in my own ci setup as well to get a few more build types |
|
Replaced by #7570 fixing util-mpm-hs.c to include detect-engine-build.h (and also in detect-dce-iface.c detect-dce-opnum.c tests/detect.c) |
Link to redmine ticket:
Is there already one @jasonish ?
Describe changes:
Still to do : add
cppclean
as part of CII used this patched version myint/cppclean#165
There are still exceptions :
TAILQ
with including queue.h (or red and black tree)The result is less includes from header file to another, nothing is done for C files including a useless header