Dismiss
The IQ application will be unavailable on Sunday, November 24th, starting at 9:00am ET while we make system improvements. Access will be restored as quickly as possible.
Browse Prior Art Database

Process & Tool support for Analysing C Header File Inclusion Order

IP.com Disclosure Number: IPCOM000010102D
Original Publication Date: 2002-Oct-23
Included in the Prior Art Database: 2002-Oct-23

Publishing Venue

IBM

Abstract

The C preprocessor provides a very advanced and flexible tool for C/C++ programmers. One problem that is encountered by programmers is with the use of header files in the order of inclusion. It is quite possible to write header files which mean that the code can work differently according to the order in which the header files are included. The solution presented here allows the order of inclusion of header files to be displayed graphically. By providing graphical feedback problems of mutual inclusion can be identified. This is achieved by taking advantage of the C preprocessor functions to output information during the compilation process. The resultant code is not affected, and no extra code parsing is required. This information is then processed by a graphical tool to show the order of header file inclusion as a tree.