• 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: Xcode code analysis tool?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode code analysis tool?


  • Subject: Re: Xcode code analysis tool?
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 13 Apr 2011 18:59:26 -0700

On Apr 13, 2011, at 1:00 PM, Nathan Sims wrote:

> Hmm. I would think this would be a fairly simple thing to, scanning through the source code and tabulating the method invocations. The compiler must already do this, so if it could generate a report... Maybe I'll have to write my own tool, not that I have the time. What do others do in such a situation, just slog through the code manually?

Xcode doesn't currently include any call-graph reporting.

You could build the clang index library <http://clang.llvm.org/docs/libIndex.html>, and then use it to build your own tool to derive call-graph information by actually traversing the same AST the compiler uses.

The clang index library also has a C API <http://clang.llvm.org/doxygen/Index_8h.html>, as well as its C++ implementation (if you need to fix bugs or add features to achieve what you need).

  -- Chris

 _______________________________________________
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: 
 >Xcode code analysis tool? (From: Nathan Sims <email@hidden>)
 >Re: Xcode code analysis tool? (From: Laurent Daudelin <email@hidden>)
 >Re: Xcode code analysis tool? (From: Nathan Sims <email@hidden>)

  • Prev by Date: Re: Xcode code analysis tool?
  • Next by Date: Re: Xcode code analysis tool?
  • Previous by thread: Fwd: Xcode code analysis tool?
  • Next by thread: iPhone Provisioning
  • Index(es):
    • Date
    • Thread