Sarcasm / irony-mode

A C/C++ minor mode for Emacs powered by libclang
GNU General Public License v3.0
901 stars 98 forks source link

Implement the main part of the xref interface #504

Open ikirill opened 5 years ago

ikirill commented 5 years ago

I left for a while and completely forgot #384.

For the xref interface see https://github.com/emacs-mirror/emacs/blob/master/lisp/progmodes/xref.el, and the lisp xref backend in https://github.com/emacs-mirror/emacs/blob/master/lisp/progmodes/elisp-mode.el

This implements xref-find-{definitions,references}. It's not quite perfect

There are several FIXME's left in the code, which may or may not be issues (please have a look), they were things I wasn't quite sure about.

I tested this in my own code, it seems to work, but I don't have any actual unit tests for it.

ikirill commented 5 years ago

xref-apropos is missing because it is supposed to search for functions by string matching, and I couldn't find a way to make that into something meaningful specifically in C++.