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

unnecessary <stdlib.h> suggested for QList #1655

Open
firewave opened this issue Nov 22, 2024 · 1 comment
Open

unnecessary <stdlib.h> suggested for QList #1655

firewave opened this issue Nov 22, 2024 · 1 comment

Comments

@firewave
Copy link
Contributor

#include <QList>

void f()
{
    QList<int> l;
}
$ include-what-you-use $(pkg-config --cflags-only-I Qt6Core) input.cpp

input.cpp should add these lines:
#include <stdlib.h>  // for free

input.cpp should remove these lines:

The full include-list for input.cpp:
#include <stdlib.h>  // for free
#include <QList>     // for QList
---

This started with 0.23.

@firewave firewave changed the title unnecessary <stdint.h> suggested for QList unnecessary <stdlib.h> suggested for QList Nov 22, 2024
@firewave
Copy link
Contributor Author

I assume this might apply to other Qt containers.

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

No branches or pull requests

1 participant