467,080 Members | 927 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,080 developers. It's quick & easy.

C++ Source Code Viewer

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
  • viewed: 6314
Share:
7 Replies
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
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
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
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
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
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
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.

Similar topics

2 posts views Thread by Simon Harvey | last post: by
6 posts views Thread by shr | last post: by
2 posts views Thread by muttaa | last post: by
135 posts views Thread by Xah Lee | last post: by
7 posts views Thread by Tina | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.