unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* gtags-find-tag and gtags-find-rtag in C-code
@ 2015-06-02 13:28 Peter Münster
  2015-06-02 15:06 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Peter Münster @ 2015-06-02 13:28 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I would like to be able to jump do definitions and references of
identifiers in C-code.

Here an example:

--8<---------------cut here---------------start------------->8---
enum my_enum
{
    E_1,
    E_2
};

int my_var;

void my_func1(void)
{
}

void my_func2(void)
{
    my_func1();
    my_var = E_1;
}
--8<---------------cut here---------------end--------------->8---

When ":tc=native:" in gtags.conf:

function                                result
----------------------------------------------------
gtags-find-tag  my_func1                    OK
gtags-find-tag  my_var                  Not OK
gtags-find-tag  E_1                     Not OK
gtags-find-rtag my_func1                    OK
gtags-find-rtag my_var                  Not OK
gtags-find-rtag E_1                     Not OK


And when ":tc=exuberant-ctags:" in gtags.conf:

function                                result
----------------------------------------------------
gtags-find-tag  my_func1                    OK
gtags-find-tag  my_var                      OK
gtags-find-tag  E_1                         OK
gtags-find-rtag my_func1                Not OK
gtags-find-rtag my_var                  Not OK
gtags-find-rtag E_1                     Not OK


Do you know a solution, where all 6 lines are OK?

TIA for any help,
-- 
           Peter




^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-06-03 18:53 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02 13:28 gtags-find-tag and gtags-find-rtag in C-code Peter Münster
2015-06-02 15:06 ` Eli Zaretskii
2015-06-02 16:01   ` Peter Münster
2015-06-02 16:13     ` Eli Zaretskii
2015-06-02 19:09       ` Dmitry Gutov
2015-06-02 20:34       ` Peter Münster
2015-06-02 19:17 ` understanding backquote Olaf Rogalsky
2015-06-03 11:05   ` Nicolas Richard
     [not found]   ` <mailman.4231.1433345880.904.help-gnu-emacs@gnu.org>
2015-06-03 18:53     ` Stefan Monnier
     [not found] ` <mailman.4175.1433272668.904.help-gnu-emacs@gnu.org>
2015-06-02 20:03   ` Pascal J. Bourguignon
2015-06-02 23:00     ` Olaf Rogalsky
2015-06-03 10:40       ` Nicolas Richard
     [not found]     ` <mailman.4191.1433286041.904.help-gnu-emacs@gnu.org>
2015-06-02 23:08       ` Pascal J. Bourguignon
2015-06-02 21:22   ` Barry Margolin
2015-06-02 22:53     ` Olaf Rogalsky
     [not found]     ` <mailman.4189.1433285612.904.help-gnu-emacs@gnu.org>
2015-06-02 23:07       ` Pascal J. Bourguignon
2015-06-02 23:54         ` Olaf Rogalsky
     [not found]         ` <mailman.4193.1433289260.904.help-gnu-emacs@gnu.org>
2015-06-03  1:14           ` Stefan Monnier
2015-06-03  7:57             ` Olaf Rogalsky
2015-06-03 10:23               ` Olaf Rogalsky
2015-06-03  2:37           ` Pascal J. Bourguignon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).