摘要 |
A method and system for detecting and resolving unnecessary source module dependencies is described. One embodiment comprises a method of removing unnecessary preprocessor directives from a source module, wherein each of the preprocessor directives references a header file included in the source module, the method comprising removing from the source module a designated header file, subsequent to the removing, attempting to compile the source module, and responsive to a successful attempt to compile the source file, deeming the designated header file unnecessary.
|