Questions tagged [gnu-global]

GNU's Source Code Tagging System.

GNU's Source Code Tagging System. The official website for GNU Global is: https://www.gnu.org/software/global/

29 questions
2
votes
1 answer

How do I go to a local variable's definition with Emacs and GNU Global?

Suppose you have a C code like this: void f1() { int var1; var1 = 1; // local use of var1 } void f2() { int var1; var1 = 2; // local use of var1 } void f3() { int var1; var 1 = 3; // local use of var1 } How do I go to…
ivarec
  • 2,542
  • 2
  • 34
  • 57
2
votes
1 answer

Gtags to index global variables

I want gnu global to index global variables of the project. Is that possible (without having to get into the source of gnu global)?
fakedrake
  • 6,528
  • 8
  • 41
  • 64
1
vote
0 answers

How to specify environment variables inside GNU Global gtags.conf file

https://stackoverflow.com/a/26725652/257924 specifies a helpful environment variable called GTAGSFORCECPP to force .h files to be treated as C++ (as otherwise, C++ class definitions are not added as symbols to the tags database). Ideally, I would…
bgoodr
  • 2,744
  • 1
  • 30
  • 51
1
vote
1 answer

Hierarchical GTAGS TAG file

One liner: I am looking for a "Hierarchical" Tags file setup whereas if global cannot find the TAGSDB in the GTAGSDBPATH directory then it climbs up the dir chain till it finds another. long liners: I have this project file…
1
vote
2 answers

VIM: autocomplete plugin to work with gtags

I have just moved from ctags to gtags for my huge C Project. But I couldnt find any vim autocomplete plugin that works with gtags. gtags is so widely used and much more efficient than ctags. I am sure I am missing something here. Someone must have…
Kanwar Saad
  • 2,138
  • 2
  • 21
  • 27
1
vote
1 answer

gtags very slow in Emacs

I am using gnu global in emacs, everything is ok, but command "gtags-find-tag" search is too slow that cannot bear. only this command is very slow, the others like "gtags-find-rtag" is normal I think. I delete other config such as cedet, so that…
user1424963
  • 53
  • 2
  • 9
1
vote
2 answers

Does GNU Global/gtags support taglist vim plugin?

I did some searches, but did not find anything useful. Could someone refer me to some links or give instructions directly? Thanks.
Joe.Z
  • 2,725
  • 4
  • 25
  • 30
0
votes
1 answer

GNU Global - cannot find C++ member definitions

I'm using GNU Global with a C++ project in Emacs and want to find the definition of a class member starting from any use of that member within a member function. Example for illustration: class Foo // Foo.h { int doSomething(); …
Trazom
  • 13
  • 3
0
votes
1 answer

Why GNU Global doesn't index Pascal files of a project?

I'm trying to index the Pascal files of a project, on Linux (modern Ubuntu). I've followed the instructions, but I'm very confused because of several factors. The procedure I've applied is: $ apt install global exuberant-ctags $ python3 -m pip…
Marcus
  • 5,104
  • 2
  • 28
  • 24
0
votes
1 answer

Does Universal Ctags prevent reference lookup when used as a GNU Global "backend"?

In https://stackoverflow.com/a/39905971/257924 I read: Note again that if you use Ctags as the parser for your Gtags, you lose the ability to treat references (e.g., variable usage, function calls) which Gtags would otherwise provide. Essentially,…
bgoodr
  • 2,744
  • 1
  • 30
  • 51
0
votes
0 answers

GNU Global do not see a variables

I am tried to get to work GNU Globals in my Emacs, and found that it is couldn't find a function definitions. After a long searching I end up that GNU Globals itself just somehow broken for me, it doesn't index almost anything! Consider an…
Hi-Angel
  • 4,933
  • 8
  • 63
  • 86
0
votes
1 answer

Load gtags with given gtags root

I have a log file(in say /home/logs) with file names and line numbers. I want to look up the files in a project rooted at say /x/projects/project12/ . How do use gtags to look up files while log file is opened in vim ? One clumsy way is to copy log…
Zxcv Mnb
  • 733
  • 8
  • 19
0
votes
1 answer

Update gtag file in emacs for a single file once on saving

My configuration is copied from http://www.emacswiki.org/emacs/GnuGlobal#toc4 . The purpose is to update existing tag file once i save source file. But the result is the same as expected. The full configuration is: (gtags-mode 1) (defun…
shijie xu
  • 1,975
  • 21
  • 52
0
votes
1 answer

How do I build a GNU Global tags file with files not in the root directory?

Say I have a directory structure like this: ~/sourcecode1/myproject ~/sourcecode2/myproject I want to use gtags in vim to find calls to functions declared in both the sourcecode1 and sourcecode2 trees, with calls coming from either of those trees…
quant
  • 21,507
  • 32
  • 115
  • 211
1
2