Displaying the #Include Hierarchy For a C++ File in Visual Studio

Displaying the #include hierarchy for a C++ file in Visual Studio

There is a setting:

Project Settings -> Configuration Properties -> C/C++ -> Advanced -> Show Includes

that will generate the tree. It maps to the compiler switch /showIncludes

Show #include hierarchy in C++Builder

Sadly, there are no Borland C Compiler options for displaying the hierarchy of #included files. See Embarcadero's BCC32 CLI docs.

However, an alternative (granted, not as clean) is to use the Borland C Compiler Preprocessor, e.g.

CPP32 -Sr source.cpp # outputs source.i with comments and indentation retained


Related Topics



Leave a reply



Submit