klogg icon indicating copy to clipboard operation
klogg copied to clipboard

Cleanup includes

Open variar opened this issue 4 years ago • 3 comments

There are many unneeded includes. And some unusual style for Qt includes (may be from clangd). Need to cleanup the mess.

variar avatar Jun 17 '21 12:06 variar

Hello @variar ...

I happened to see what happened to you. Yes, I also encountered the same problem, because my development environment uses vscode + clangd extension, clangd often automatically fills in some unnecessary header files for me, so I had to check(by git status) and remove these files manually.

This is too troublesome for me, I would like to know if you have any good way to clear those useless header file inclusions now. Thanks in advance ...

Junbo-Zheng avatar Jun 13 '23 15:06 Junbo-Zheng

I think I changed some arguments to VSCode clangd extension to make it stop adding includes automatically. No easy way to do a cleanup. There is an include what you use (https://github.com/include-what-you-use/include-what-you-use) but when I tried it last time it was doing something wrong.

variar avatar Jun 14 '23 17:06 variar

I think I changed some arguments to VSCode clangd extension to make it stop adding includes automatically. No easy way to do a cleanup. There is an include what you use (https://github.com/include-what-you-use/include-what-you-use) but when I tried it last time it was doing something wrong.

Sure, thanks, I will have a try...

Junbo-Zheng avatar Jun 15 '23 08:06 Junbo-Zheng