• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: looking for C++ code navigation in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: looking for C++ code navigation in Xcode


  • Subject: Re: looking for C++ code navigation in Xcode
  • From: David Fang <email@hidden>
  • Date: Tue, 5 Sep 2006 17:41:53 -0400 (EDT)

> I'm looking for an add on to Xcode that will allow me to easily
> navigate my C++ code.  I know in Xcode I can usually find the
> declaration and definition of a given symbol with option-click.  But
> what I can't do is find all uses of that symbol.  I want that ability.
>
> I'm looking for something smarter than just doing textual find:  For
> example, when I click on MyClassFoo::distance() I want to find only
> calls to that distance() method to objects of that class or it's
> subclasses.  If I search for "distance()" I get too much - if there
> are other classes with distance() methods that are in unrelated class
> heirarchies, you get 'em.  And in our large project such name reuse
> is inevitable.

Hi,
	While it's not perfect, the doxygen documentation tool
(http://www.stack.nl/~dimitri/doxygen/) is pretty decent at computing
static call-graphs, which is what you're asking for.  It works fine until
you use template heavy-code, which requires actual instantiation for an
accurate argument-dependent lookup of identifiers and symbols.  Even then,
it does a reasonable job.  For example, you can use navigate through the
generated html in the sections where it says X is called from Y.  You have
to enable CALL_GRAPH = YES (see documentation) in the doxygen
configuration file for the call-graph features.

> All this information is surely available in the debugging symbol
> output of the compiler.  Why is there no tool that lets me get at it?
>
> I'm not looking for tools that run over the whole source and
> statically produce such cross-references that I have to go read.  I'm
> looking for stuff to use as I'm coding, preferably from within the
> editor.  I want it to be up-to-date with each compile.

On large code-bases it can be quite slow, I'm not aware whether it is
capable of incrementally compiling documentation yet.

> What I'm looking for is something like Smalltalk's code navigation
> tools.  The ability to look up senders, implementors and called
> methods easily from the code editor.  On Unix, the closest thing I've
> found is Source Navigator - though that project is several years out
> of development, and doesn't compile on Mac OS X.  Further, it is a
> separate tool from any development environment and it's UI is clumsy
> at best.
>
> Does this exist?  Don't you all want this too?

Give doxygen a shot.


Fang


David Fang
Computer Systems Laboratory
Electrical & Computer Engineering
Cornell University
http://www.csl.cornell.edu/~fang/
	-- (2400 baud? Netscape 3.0?? lynx??? No problem!)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >looking for C++ code navigation in Xcode (From: Mark Lentczner <email@hidden>)

  • Prev by Date: looking for C++ code navigation in Xcode
  • Next by Date: Re: SSE performance library
  • Previous by thread: looking for C++ code navigation in Xcode
  • Next by thread: Static Libs + Ignored Breakpoints
  • Index(es):
    • Date
    • Thread