By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,851 Members | 2,097 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,851 IT Pros & Developers. It's quick & easy.

C++ Source Code Viewer

P: n/a
Hi,

I was wondering if someone might know of any C++ source code viewers
for linux / unix that are also free. I just want something that will
allow me to explore the class, function, and variable relationships
within my source. I don't really want an "army swiss knife" IDE, i.e.
something that has a builtin editor, scm interface, build system,
etcetera.

TIA,
Kent

Mar 23 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
ke***********@gmail.com wrote:
Hi,

I was wondering if someone might know of any C++ source code viewers
for linux / unix that are also free. I just want something that will
allow me to explore the class, function, and variable relationships
within my source. I don't really want an "army swiss knife" IDE, i.e.
something that has a builtin editor, scm interface, build system,
etcetera.
Look up "cscope". It's curses based, but I've used it for years.
Mar 23 '07 #2

P: n/a
On Mar 23, 10:21 am, red floyd <no.s...@here.dudewrote:
kenton.wil...@gmail.com wrote:
Hi,
I was wondering if someone might know of any C++ source code viewers
for linux / unix that are also free. I just want something that will
allow me to explore the class, function, and variable relationships
within my source. I don't really want an "army swiss knife" IDE, i.e.
something that has a builtin editor, scm interface, build system,
etcetera.

Look up "cscope". It's curses based, but I've used it for years.
I used to use cscope for my 'C' development but I don't think it can
handle C++ (unless cscope has been changed, I'll check).

Kent

Mar 23 '07 #3

P: n/a
ke***********@gmail.com wrote:
I was wondering if someone might know of any C++ source code viewers
for linux / unix that are also free. I just want something that will
allow me to explore the class, function, and variable relationships
within my source. I don't really want an "army swiss knife" IDE, i.e.
something that has a builtin editor, scm interface, build system,
etcetera.
I've not personally used it, but Doxygen might help: I hear it can
produce call graphs and such.

--
Marcus Kwok
Replace 'invalid' with 'net' to reply
Mar 23 '07 #4

P: n/a
ke***********@gmail.com wrote:
Hi,

I was wondering if someone might know of any C++ source code viewers
for linux / unix that are also free. I just want something that will
allow me to explore the class, function, and variable relationships
within my source. I don't really want an "army swiss knife" IDE, i.e.
something that has a builtin editor, scm interface, build system,
etcetera.

TIA,
Kent
What's wrong with vi? Nothing a little tag magic cann't resolve...
Mar 23 '07 #5

P: n/a
On Fri, 23 Mar 2007 08:24:36 -0700, kenton.wilson wrote:
I used to use cscope for my 'C' development but I don't think it can
handle C++ (unless cscope has been changed, I'll check).
cscope can't really handle C++, but it can parse enough info out
of it to be useful in my experience.

You might also look at Anjuta, KDevelop, or the Eclipse CDT.

- Michael
Mar 24 '07 #6

P: n/a
try http://sourcenav.sourceforge.net
imho, a very handy tool. especially for oo-languages.

thanks,

On Mar 23, 8:18 pm, kenton.wil...@gmail.com wrote:
Hi,

I was wondering if someone might know of any C++ source code viewers
for linux / unix that are also free. I just want something that will
allow me to explore the class, function, and variable relationships
within my source. I don't really want an "army swiss knife" IDE, i.e.
something that has a builtin editor, scm interface, build system,
etcetera.

TIA,
Kent
Mar 24 '07 #7

P: n/a
On Fri, 23 Mar 2007 15:24:03 +0000 (UTC), Marcus Kwok <ri******@gehennom.invalidwrote:
ke***********@gmail.com wrote:
>I was wondering if someone might know of any C++ source code viewers
for linux / unix that are also free. I just want something that will
allow me to explore the class, function, and variable relationships
within my source. I don't really want an "army swiss knife" IDE, i.e.
something that has a builtin editor, scm interface, build system,
etcetera.

I've not personally used it, but Doxygen might help: I hear it can
produce call graphs and such.
It can, where "such" is class diagrams and #include dependencies. And
I am 99% sure you can have it include all source code, pretty-printed
and all. Use a recent version.

But my first tool of choice would be the same I use when writing code:
emacs and a good TAGS file. I don't really see the use case for a
viewer which isn't also an editor (except for the kind of things that
Doxygen does).

/Jorgen

--
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.dyndns.org R'lyeh wgah'nagl fhtagn!
Mar 26 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.