deheader icon indicating copy to clipboard operation
deheader copied to clipboard

Better behavior for redundant headers

Open mcandre opened this issue 4 years ago • 0 comments

Some common headers will be automatically pulled into a project indirectly via other headers, for example errno. Yet, it is good form to explicitly include such headers when making direct use of their symbols.

The current deheader algorithm relies on accidents of indirect inclusion when deciding whether to include a header or not. But a more accurate algorithm would involve scanning for the use of exported symbols.

mcandre avatar Aug 29 '21 20:08 mcandre