Checkout
Julian Foad
committed
on 13 Nov 04
Rationalize #includes in C source files.

If a file does not use symbols from a given header, then do not include
that header.

If a file us… Show more
Rationalize #includes in C source files.

If a file does not use symbols from a given header, then do not include

that header.

If a file uses symbols from a given header 'H', and H was only being

included via another header that neither needs nor guarantees to include

H, then include H directly.

(By "symbols from a given header" I mean symbols that it either defines

itself or pulls in from other headers with the specific intention of

providing them to its users.)

Show less