Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A tool to tell you what source files are needed in a C++ project? [closed]

I am porting a large, messy, 10 year old cold base in C++ from Metrowerks on OS X to XCode. There are so many files and all the other people that touched this over the years are gone. Nobody know what files are actually needed and which are just cruft.

Is there any tool that I could run and have it produce a list of what files are ACTUALLY needed?

like image 659
ator Avatar asked Sep 04 '10 17:09

ator


People also ask

How do you use the Source Insight tool?

You can just double click on a local or global symbol, and Source Insight takes you to the definition, or can pop up a quick information window. You can click on a symbol, and within seconds, have a list of all references to that symbol anywhere in the project.

What is source code in C?

Source code is generally understood to mean programming statements that are created by a programmer with a text editor or a visual programming tool and then saved in a file. Object code generally refers to the output, a compiled file, which is produced when the Source Code is compiled with a C compiler.

What is a VS solution?

In Visual Studio, a solution isn't an "answer". A solution is simply a container Visual Studio uses to organize one or more related projects. When you open a solution, Visual Studio automatically loads all the projects that the solution contains.


1 Answers

You could run doxygen on your project and have it generate inheritance diagrams for your classes. It can also generate caller graphs to help you find dead code.

like image 57
Eric Skroch Avatar answered Oct 01 '22 20:10

Eric Skroch