开发者

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

开发者 https://www.devze.com 2023-01-14 05:39 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

开发者_JAVA技巧 Improve this question

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?


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.


You can try searching this static code analyzer list in Wikipedia. The ones that I've seen in actions would be cppdep and Include Hierarchy Viewer, although the first one is a little rough and the latter is a Windows analyzer only for the include tree. Also that still might not give you all the info if the dependencies are not explicit.

Edit: Also, the following StackOverflow search query seems to have results that might interest you: https://stackoverflow.com/search?q=c%2B%2B+dependency

0

精彩评论

暂无评论...
验证码 换一张
取 消