473,480 Members | 2,123 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Variable assignment and dependency tool?

I've been tasked with cleaning up a big C++ project that extensively
uses global variables.

What would be very useful is a tool that would parse the code and
create a dependency tree of variables. So the parser would look at
the rvalue symbols in an assigment and make them dependencies of the
lvalue. So you'd know how all the variables are related and delete
unused branches of variables etc. I realize that a tool like this
could get much more complex than what I've mentioned...

Does anyone know if a tool like this exists? Can you point me in the
right direction if it does?

Thanks,
Kurt Schwemmer
Jul 22 '05 #1
1 1620
Kurt Schwemmer wrote:
I've been tasked with cleaning up a big C++ project that extensively
uses global variables.

What would be very useful is a tool that would parse the code and
create a dependency tree of variables. So the parser would look at
the rvalue symbols in an assigment and make them dependencies of the
lvalue. So you'd know how all the variables are related and delete
unused branches of variables etc. I realize that a tool like this
could get much more complex than what I've mentioned...

Does anyone know if a tool like this exists? Can you point me in the
right direction if it does?


No, but I regulary toss doxygen at code to make it more understandable.
It takes a little time to create a config file but I wrote a "dox"
target in MakeXS that performs all that magic. (If you want to use
MakeXS, drop me a note and I'll put a newer version of the doxygen
config template that will create a better result).
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2167
by: Liang | last post by:
Hi, I'm a newbie to graphic theory. Now, I need to draw dependency graphic. The input is a description of dependency graphic in array or XML. The output shall be in one of the format: pdf, ps,...
50
3733
by: Charles Stapleton | last post by:
Given the folowing class class Ctest{ public: Ctest( int i, int j) :a(i) { b = j; } private: int a, b; } When creating an object of type Ctest, what advantage is there to setting
2
2669
by: Dr Evil | last post by:
Greetings. Has anyone ever seen a tool that will read directories of header file source code and generate a dependency tree? I've often encountered large projects where such a tool would be useful....
2
1781
by: Chad | last post by:
I am under the impression that either there are deficiencies in the way SQL Server 2000 is keeping track of depedencies or perhaps the dependencies simply need to be re-evaulated / recompiled. ...
134
7737
by: James A. Donald | last post by:
I am contemplating getting into Python, which is used by engineers I admire - google and Bram Cohen, but was horrified to read "no variable or argument declarations are necessary." Surely that...
166
8471
by: Graham | last post by:
This has to do with class variables and instances variables. Given the following: <code> class _class: var = 0 #rest of the class
3
1818
by: prabhu.desai | last post by:
I'm compiling a huge(900 files ) embedded application written in C . Over a period of time , the code has developed a lot of inter crossed dependenc. The current scenario is , i make a change to...
22
8379
by: Laura T. | last post by:
In the following example, c# 2.0 compiler says that a3 and ret are used before assigned. as far as I can see, definite assignment is made. If I add finally { ret = true; a3 = "b3";
2
2999
by: =?Utf-8?B?SmF6eg==?= | last post by:
Hello, Anyone knows which tool is able to find out the dependency of a .lib file. Seems Depends.exe only works for .dll. Thanks, Jazz
0
7050
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7091
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6743
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5344
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2999
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2988
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
564
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.