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

Fix/includes #2076

Merged
merged 4 commits into from
Apr 21, 2024
Merged

Fix/includes #2076

merged 4 commits into from
Apr 21, 2024

Conversation

dforsi
Copy link
Contributor

@dforsi dforsi commented Apr 20, 2024

This PR does:

  1. renames the few includes for export.h and for dsptypes.h that were different from the rest
  2. removes some unused includes from *.h files
  3. moves some includes from *.h to *.cpp files
  4. add some includes that were missing according to Qt Creator using clangd

For point 1 there are more includes that could be "canonalized", but since the projects compile anyway, I'm not changing any more path for the moment.
For point 2 I removed the includes only from the files I could compile, but I'm still missing some optional libraries so there may be more. And are already too many...
For point 3 I tried move includes around this as little as possible since those are mostly private includes.
For point 4 there where only a handful of files so I did them even if they were compiling fine.

I compiled this under Linux and I will look for any failure of the CI for Windows/Mac and fix them.

Fixes the 5 includes that are different from the majority:
grep -Ehr "#include .+dsptypes" --include=*.h | sort | uniq -c
    110 #include "dsp/dsptypes.h"
      1 #include <dsp/dsptypes.h>
      4 #include "dsptypes.h"
Fixes the 5 includes that are different from the majority:
grep -Ehr "#include .+export" --include=*.h | sort | uniq -c
    769 #include "export.h"
      5 #include "../../exports/export.h"
@f4exb f4exb merged commit 4d43e53 into f4exb:master Apr 21, 2024
1 of 3 checks passed
@dforsi dforsi deleted the fix/includes branch April 21, 2024 16:42
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.

2 participants