Note that clangd now (I think as of version 14) warns about unused includes, and there is a [proposal](https://discourse.llvm.org/t/rfc-lifting-include-cleaner-missing-unused-include-detection-out-of-clangd/61228) to lift the functionality that enables this warning (called "include cleaner", in the future intended to also suggest missing headers) out of clangd and into a reusable library within LLVM; that might comein handy.
Bug 1682477 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Note that clangd now (I think as of version 14) warns about unused includes, and there is a [proposal](https://discourse.llvm.org/t/rfc-lifting-include-cleaner-missing-unused-include-detection-out-of-clangd/61228) to lift the functionality that enables this warning (called "include cleaner", in the future intended to also suggest missing headers) out of clangd and into a reusable library within LLVM; that might come in handy.