Dependency Tool

C

Christopher

Maybe OT.

I've got a mess of circular depenencies that all came to light at one
in a preexisting project. Trying to make sense of it all manaully is
beginning to melt my mind. Does anyone know of a tool that can track
these down and make some sort of followable diagram or the like for
me?

I also worry that this code doesn't exactly conform to the C
complation model. Misuse of precompiled headers etc. Tools might have
problems with that.

The solution does compile somehow, which is beyond me.

Any suggestions?
 
D

Dombo

Op 29-Feb-12 23:06, Christopher schreef:
Maybe OT.

I've got a mess of circular depenencies that all came to light at one
in a preexisting project. Trying to make sense of it all manaully is
beginning to melt my mind. Does anyone know of a tool that can track
these down and make some sort of followable diagram or the like for
me?

I also worry that this code doesn't exactly conform to the C
complation model. Misuse of precompiled headers etc. Tools might have
problems with that.

The solution does compile somehow, which is beyond me.

Any suggestions?

You might want to take a look at Doxygen, when used i.c.w. Graphviz it
can produce dependency graphs. Doxygen has its limitations however,
sometimes it can get confused or produce misleading graphs. But in spite
of this it has served me well, and it is free.
 
A

AnonMail2005

Maybe OT.

I've got a mess of circular depenencies that all came to light at one
in a preexisting project. Trying to make sense of it all manaully is
beginning to melt my mind. Does anyone know of a tool that can track
these down and make some sort of followable diagram or the like for
me?

I also worry that this code doesn't exactly conform to the C
complation model. Misuse of precompiled headers etc. Tools might have
problems with that.

The solution does compile somehow, which is beyond me.

Any suggestions?

I second the Doxygen recomendation. You can have it generate
dependency graphs.

HTH
 
M

MikeWhy

Maybe OT.

I've got a mess of circular depenencies that all came to light at one
in a preexisting project. Trying to make sense of it all manaully is
beginning to melt my mind. Does anyone know of a tool that can track
these down and make some sort of followable diagram or the like for
me?

I also worry that this code doesn't exactly conform to the C
complation model. Misuse of precompiled headers etc. Tools might have
problems with that.

The solution does compile somehow, which is beyond me.

Any suggestions?

For MSVC:

E:\Devl\Foo\fooSize\fooSize>cl /showIncludes fooSize.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for
80x86
Copyright (C) Microsoft Corporation. All rights reserved.

fooSize.cpp
Note: including file: e:\devl\foo\foosize\foosize\stdafx.h
Note: including file: e:\devl\foo\foosize\foosize\targetver.h
Note: including file: G:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\iostream
Note: including file: G:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\istream
Note: including file: G:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\ostream
....
 
P

pth81

Op 29-Feb-12 23:06, Christopher schreef:






You might want to take a look at Doxygen, when used i.c.w. Graphviz it
can produce dependency graphs. Doxygen has its limitations however,
sometimes it can get confused or produce misleading graphs. But in spite
of this it has served me well, and it is free.

When you really have a mess on your hands a combination of Doxygen and
Graphviz is more likely to depress you than help you. Graphs are
likely to be so complex they you won't be able to see the wood for the
trees.

There are specialist tools in this area, like Structure101 and Lattix.
As it turns out Structure101 has just added C/C++ support via either
Doxygen or SCItools Understand. Both are focused on controlling and
communicating architecture as much just understanding it. Structure101
has a companion product, Restructure101, focused on refactoring messy
architectures.

http://www.structure101.com
http://www.lattix.com


Disclaimer: I work for Headway who produce Structure101.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top