Re: Xcode code analysis tool?
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