Other than using Emacs / Vim with ctags or cscope or both, are there alternatives to C++ code navigation of an existing code base? I used to use Source Insight on Windows and it worked for me fairly well. The main functionality I am looking for is quickly find definition of macros, variables and functions and places a function is referenced.

closed as off-topic by MetaFight, gnat, Scant Roger, Ixrec, GlenH7 Jan 4 '16 at 16:57

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to find or recommend tools, libraries, programming languages, resources (including books, blogs, tutorials, and examples), or projects to undertake are off-topic here as they attract opinionated answers that won't have lasting value to others. You may be able to get help in The Whiteboard, our chat room." – MetaFight, gnat, Scant Roger, Ixrec, GlenH7
If this question can be reworded to fit the rules in the help center, please edit the question.


In XCode, which comes with the OS, you have the "Jump to Definition" function, which I usually assign to Cmd-F1 (VC has some similar shortcut if I remember correctly). You will have to create an XCode project for your code base though. I don't know if there are any automatic converters, say, from Makefile to XCode project.

Most of the time Jump to Definition works fine, except when the name of your .cpp module differs from the .h header name; also doesn't work for overloaded operators. There are some intermittent failures that I can't explain, but overall, on simple and straightforward C++ code it can do the job OK.

P.S. there is no such thing like find references in XCode, but you have a project-wide Find function with an option to look for "Symbols", which I think is almost exact equivalent of finding references.

Not the answer you're looking for? Browse other questions tagged or ask your own question.