473,748 Members | 7,377 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Searching for a C++ code browser which will....

I've recently moved onto a C++ project with a large number of directories
(several hundred) containing an even larger number of C++ source files.

There are vastly more ways in C++ to obfuscate a program than there are
in C, and it seems somebody laid a bet on the original development team
to prove that this is the case. ;-( Unfortunately, I have no contact
with the original programmers, who live and work on a different
continent.

In the course of tracking down a bug, I need a browser which can tell me
all the places in the code where `ClimbMountain' , as in:

Arizona::ClimbM ountain (*crevasse lookout) ;

gets called. That is, I want the browser to identify lines of code like

*state.phoenix[i]->ClimbMountai n (Hoi) ;

, because `phoenix' here is an array of Arizona pointers. However, I
want this browser to _avoid_ telling me about lines like

*state.StPaul[i].ClimbMountain (Hi) ;

, because the StPaul in that line is an array of Minnesotas, not an array
of Arizonas. Needless to say, there is no chain of inheritance between
the classes Minnesota and Arizona - at least, none that I'm aware of, but
since there is a great deal of multiple inheritance used within the
program, I could be wrong.

I tried downloading SourceNav from SourceForge yesterday. The
documentation's list of SourceNav's capabilities is somewhat on the vague
side, so I therefore tried the program out - unless I'm mistaken, this
browser can only tell me that `ClimbMountain' is "used" in the definition
of the class `Arizona', not the places where instances of Arizona invoke
`ClimbMountain' .

Does there exist a C++ browser (preferably free or open-source running
on MS-Windows or on Unices), powerful enough to give me the info I need?
If so, please tell me its name and its URL.

Thanks in advance for the help!

--
Alan Mackenzie (Munich, Germany)
Email: aa**@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

Jul 22 '05 #1
5 5401
I use Source Insight http://www.sourceinsight.com

++PLS

In article <eg**********@a cm.acm>, ac*@muc.de says...
I've recently moved onto a C++ project with a large number of directories
(several hundred) containing an even larger number of C++ source files.

There are vastly more ways in C++ to obfuscate a program than there are
in C, and it seems somebody laid a bet on the original development team
to prove that this is the case. ;-( Unfortunately, I have no contact
with the original programmers, who live and work on a different
continent.

In the course of tracking down a bug, I need a browser which can tell me
all the places in the code where `ClimbMountain' , as in:

Arizona::ClimbM ountain (*crevasse lookout) ;

gets called. That is, I want the browser to identify lines of code like

*state.phoenix[i]->ClimbMountai n (Hoi) ;

, because `phoenix' here is an array of Arizona pointers. However, I
want this browser to _avoid_ telling me about lines like

*state.StPaul[i].ClimbMountain (Hi) ;

, because the StPaul in that line is an array of Minnesotas, not an array
of Arizonas. Needless to say, there is no chain of inheritance between
the classes Minnesota and Arizona - at least, none that I'm aware of, but
since there is a great deal of multiple inheritance used within the
program, I could be wrong.

I tried downloading SourceNav from SourceForge yesterday. The
documentation's list of SourceNav's capabilities is somewhat on the vague
side, so I therefore tried the program out - unless I'm mistaken, this
browser can only tell me that `ClimbMountain' is "used" in the definition
of the class `Arizona', not the places where instances of Arizona invoke
`ClimbMountain' .

Does there exist a C++ browser (preferably free or open-source running
on MS-Windows or on Unices), powerful enough to give me the info I need?
If so, please tell me its name and its URL.

Jul 22 '05 #2
I think find&replace with a regex string can do it.. Bot VC++ and Metrowerks
Codewarrior supports these...

"Alan Mackenzie" <ac*@muc.de> wrote in message news:eg******** **@acm.acm...
I've recently moved onto a C++ project with a large number of directories
(several hundred) containing an even larger number of C++ source files.

There are vastly more ways in C++ to obfuscate a program than there are
in C, and it seems somebody laid a bet on the original development team
to prove that this is the case. ;-( Unfortunately, I have no contact
with the original programmers, who live and work on a different
continent.

In the course of tracking down a bug, I need a browser which can tell me
all the places in the code where `ClimbMountain' , as in:

Arizona::ClimbM ountain (*crevasse lookout) ;

gets called. That is, I want the browser to identify lines of code like

*state.phoenix[i]->ClimbMountai n (Hoi) ;

, because `phoenix' here is an array of Arizona pointers. However, I
want this browser to _avoid_ telling me about lines like

*state.StPaul[i].ClimbMountain (Hi) ;

, because the StPaul in that line is an array of Minnesotas, not an array
of Arizonas. Needless to say, there is no chain of inheritance between
the classes Minnesota and Arizona - at least, none that I'm aware of, but
since there is a great deal of multiple inheritance used within the
program, I could be wrong.

I tried downloading SourceNav from SourceForge yesterday. The
documentation's list of SourceNav's capabilities is somewhat on the vague
side, so I therefore tried the program out - unless I'm mistaken, this
browser can only tell me that `ClimbMountain' is "used" in the definition
of the class `Arizona', not the places where instances of Arizona invoke
`ClimbMountain' .

Does there exist a C++ browser (preferably free or open-source running
on MS-Windows or on Unices), powerful enough to give me the info I need?
If so, please tell me its name and its URL.

Thanks in advance for the help!

--
Alan Mackenzie (Munich, Germany)
Email: aa**@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

Jul 22 '05 #3
In message <41************ ***********@nnt p05.dk.telia.ne t>, Jesper
Madsen <ba***@mail.sto fanet.dk> top-posted

"Alan Mackenzie" <ac*@muc.de> wrote in message news:eg******** **@acm.acm...

. That is, I want the browser to identify lines of code like

*state.phoenix[i]->ClimbMountai n (Hoi) ;

, because `phoenix' here is an array of Arizona pointers. However, I
want this browser to _avoid_ telling me about lines like

*state.StPaul[i].ClimbMountain (Hi) ;

, because the StPaul in that line is an array of Minnesotas, not an array
of Arizonas. Needless to say, there is no chain of inheritance between
the classes Minnesota and Arizona - at least, none that I'm aware of, but
since there is a great deal of multiple inheritance used within the
program, I could be wrong.
[...]

I think find&replace with a regex string can do it.. Bot VC++ and Metrowerks
Codewarrior supports these...


You have a remarkable implementation of regex if it can distinguish
between the two ClimbMountain lines above.
--
Richard Herring
Jul 22 '05 #4
Paul Schauble <pl*@thekeep.co m> wrote on Sun, 5 Sep 2004 03:52:42 -0700:
In article <eg**********@a cm.acm>, ac*@muc.de says...
I've recently moved onto a C++ project with a large number of directories
(several hundred) containing an even larger number of C++ source files. There are vastly more ways in C++ to obfuscate a program than there are
in C, and it seems somebody laid a bet on the original development team
to prove that this is the case. ;-( Unfortunately, I have no contact
with the original programmers, who live and work on a different
continent. In the course of tracking down a bug, I need a browser which can tell me
all the places in the code where `ClimbMountain' , as in: Arizona::ClimbM ountain (*crevasse lookout) ; gets called. That is, I want the browser to identify lines of code like *state.phoenix[i]->ClimbMountai n (Hoi) ; , because `phoenix' here is an array of Arizona pointers. However, I
want this browser to _avoid_ telling me about lines like *state.StPaul[i].ClimbMountain (Hi) ; , because the StPaul in that line is an array of Minnesotas, not an array
of Arizonas. Needless to say, there is no chain of inheritance between
the classes Minnesota and Arizona - at least, none that I'm aware of, but
since there is a great deal of multiple inheritance used within the
program, I could be wrong. I tried downloading SourceNav from SourceForge yesterday. The
documentation's list of SourceNav's capabilities is somewhat on the vague
side, so I therefore tried the program out - unless I'm mistaken, this
browser can only tell me that `ClimbMountain' is "used" in the definition
of the class `Arizona', not the places where instances of Arizona invoke
`ClimbMountain' . Does there exist a C++ browser (preferably free or open-source running
on MS-Windows or on Unices), powerful enough to give me the info I need?
If so, please tell me its name and its URL.
I use Source Insight http://www.sourceinsight.com
I've been trying the trial version of Source Insight in an odd few hours
over the last week. Sadly, SI appears to do little more than crude
grepping through the all the sources. I've got a Posix system handy
where I can do all my grepping directly anyway, so SI's searching doesn't
really give me much extra. When I ask it to find
"Arizona.ClimbM ountain", it merely finds the appropriate _declaration_ of
ClimbMountain. This is a pity, because on opening up (almost) any source
file, and hovering the mouse over the pertinent place, it displays the
type of the variable. I find this too cumbersome for the searching I
need to do.

Our sources are even worse than I thought. There are _lots_ of
identifiers with names like "DoIt" which are distinguished only by being
in different namespaces. YUCK! SI can't distinguish these either.

[<rant mode> Why on earth are the various designers of C++ so opposed to
context-free identifiers? OK, C had context-dependant identifiers a bit
(members of a struct or union), and C++ classes are an extension of this.
But namespaces? sheesh! These designers must have really _hated_ us
poor maintenance programmers ;-) <\rant mode>]

Anyhow, I sent an email to SourceInsight, asking them to consider
enhancing their product.

Thanks for the suggestion.
++PLS


--
Alan Mackenzie (Munich, Germany)
Email: aa**@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

Jul 22 '05 #5
Alan Mackenzie wrote:
I use Source Insight http://www.sourceinsight.com

I've been trying the trial version of Source Insight in an odd few hours
over the last week. Sadly, SI appears to do little more than crude
grepping through the all the sources. I've got a Posix system handy
where I can do all my grepping directly anyway, so SI's searching doesn't
really give me much extra. When I ask it to find
"Arizona.ClimbM ountain", it merely finds the appropriate _declaration_ of
ClimbMountain. This is a pity, because on opening up (almost) any source
file, and hovering the mouse over the pertinent place, it displays the
type of the variable. I find this too cumbersome for the searching I
need to do.

Our sources are even worse than I thought. There are _lots_ of
identifiers with names like "DoIt" which are distinguished only by being
in different namespaces. YUCK! SI can't distinguish these either.

[<rant mode> Why on earth are the various designers of C++ so opposed to
context-free identifiers? OK, C had context-dependant identifiers a bit
(members of a struct or union), and C++ classes are an extension of this.
But namespaces? sheesh! These designers must have really _hated_ us
poor maintenance programmers ;-) <\rant mode>]

Anyhow, I sent an email to SourceInsight, asking them to consider
enhancing their product.

Thanks for the suggestion.

++PLS


I've had really good luck with Doxygen (http://www.doxygen.org -- it's
free!), and Understand for C++ (http://www.scitools.com/ucpp.html). Try
em both.
Jul 22 '05 #6

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

Similar topics

1
6179
by: Adrian | last post by:
This script works well for searching thru a SELECT list but doesnt work so well with the MULTIPLE option. I need to modify it to work for a SELECT MULTIPLE but I have no idea where to begin, any tips? <script> var searchString = ""; function clearSearchString() {
0
5614
by: Mike | last post by:
Sites using thumbnail preview for world wide web file navigation and searching. Below are list of sites that are either researching or providing thumbnail preview images for online web documents. Thumbnail previews are useful for web site navigation particularly in search engines and directories such as Google, Altavista and Yahoo. The preview images provide a portion of the content of the electronic file to aid in navigation.
14
5377
by: Ludwig77 | last post by:
I read that there are some tags that can be entered in a web page's meta tags in order to prevent web bot searching and indexing of the web page for search engines. What is the tagging that I would need to use?
3
2093
by: Paul H | last post by:
I have a text file that contains the following: ******************** __StartCustomerID_41 Name: Fred Smith Address: 57 Pew Road Croydon
33
2512
by: Geoff Jones | last post by:
Hiya I have a DataTable containing thousands of records. Each record has a primary key field called "ID" and another field called "PRODUCT" I want to retrieve the rows that satisy the following criteria: I have a list of about 100 numbers which correspond to the ID field and also another 40 say numbers corresponding to the numbers in the PRODUCT field. I want to show the rows that correspond to both these criteria.
7
2405
by: Andrea | last post by:
Hi there - I'm hoping someone can help me; I've been struggling with this for a few days! :-) I have a webpage that is comprised of many forms containing questions. As the user answers one of the questions, that form is hidden and the next is displayed. Also, as the user answers each question a "count" variable is updated based on their response. I would like the question to show up on the left side and the answer to show up in the...
4
1433
by: Jordan S. | last post by:
Using .NET 2.0 (C#) I'm writing a small app that will have a "Person" class that exposes FirstName and LastName properties. At runtime, a "People" collection will be populated with a few thousand "Person" objects. I want to provide users with the ability to search for people by FirstName and/or LastName. My question: How can I enable users to search for people with the last name of "De Leon". I cannot assume that my users know how to...
5
3186
by: lemlimlee | last post by:
hello, this is the task i need to do: For this task, you are to develop a Java program that allows a user to search or sort an array of numbers using an algorithm that the user chooses. The search algorithms that can be used are Linear Search and Binary Search. The sorting algorithms are bubble, selection and Insertion sort. First, the user is asked whether he/she wants to perform a search option, a sort operation, or exit the program. If...
0
8989
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9537
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9319
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8241
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4599
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.