2 ms·
If you're using a modern IDE, clangd can be configured to automatically insert #include statements (--header-insertion=iwyu).
by duskwuff 3y ago
If you're using a modern IDE, clangd can be configured to automatically insert #include statements (--header-insertion=iwyu).
- saagarjha 3y agoThe thing I hate about this is that it really has no idea what a “public” header is. If I have it on I’ll use something like uintptr_t and get a random include for <__bits/std/uintptr.h> or something that I don’t want. I assume there’s like some manual auditing one can do to go “don’t peek through stdint.h” but either nobody does this reliably or it doesn’t work.