Search code examples
c++objective-clinuxopen-sourcecode-analysis

C++/Objective-C - how to analyse a big project (Unix way)?


Normally, to analyse big C projects, I prefer grep/GNU command line tools, lint, simple Python scripts. Saying "to analyse" C project I mean to collect code statistics, to understand project's structure, its data structures and flow of execution - what function calls what, entry points in different modules, static members, threads, etc. But it works not so good with an object-oriented code.

Whenever I have a big C++ (or Objective-C) project, containing large number of source files and several directories, I would like to see it's class diagram, data fields, methods, messages, instances, etc.

I am looking for a most Unix way solution. Can you help me?


Solution

  • Doxygen is the closest i could find, when i was searching last time. It is not unix way, but it is available free for linux/windows/mac. It generated descent graphs for me. Hope it helps.

    http://www.doxygen.nl/

    http://en.wikipedia.org/wiki/Doxygen