bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gtags fail to index C++ exported class


From: Julien Montmartin
Subject: Re: gtags fail to index C++ exported class
Date: Wed, 19 Nov 2014 20:02:47 +0100
User-agent: Postbox 3.0.11 (Macintosh/20140602)

Obviously I did overthink it :)

Thanks to both of you, a very usefull fix, as far as I'm concerned !
19 novembre 2014 10:29
I have committed it.
Thnak you.

Shigio





--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
19 novembre 2014 09:29

Here it is.

19 novembre 2014 07:02
Thank you.
Is obtaining a completed patch possible?

Shigio





--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
19 novembre 2014 01:20

After sending this to Julien (forgetting to CC bug-global) I realised that it should always push back the last token, so I edited that and sent it to bug-global, but with the original patch instead. Sheesh. So, remove the else and outdent pushbacktoken and you should be good to go.

18 novembre 2014 09:39

I think you and Shigio are both overthinking it, as it seems ctags & pygments simply take the identifier before the brace, so that's what I've done, too (as well as doing it for struct).

C:\test>cat test.cpp
class EXTERNAL1 EXTERNAL2 Class {};
struct EXTERNAL1 EXTERNAL2 Struct {};

C:\test>gtags % the current version %

C:\test>global -x .*
EXTERNAL1 1 test.cpp class EXTERNAL1 EXTERNAL2 Class {};

C:\test>gtags % the patched version %

C:\test>global -x .*
Class 1 test.cpp class EXTERNAL1 EXTERNAL2 Class {};
Struct 2 test.cpp struct EXTERNAL1 EXTERNAL2 Struct {};

Testing has been *really* minimal (just the above :) ), so I hope it doesn't break anything else.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]