[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gtags fail to index C++ exported class
From: |
Jason Hood |
Subject: |
Re: gtags fail to index C++ exported class |
Date: |
Wed, 19 Nov 2014 10:14:13 +1000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
On 17/11/2014 0:05, Julien Montmartin wrote:
>
> Looking at the code, I found an easy way to fix it. Not sure if it's the best
> way to go, but at least "It works on my machine" ;)
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.
--
Jason.
class.txt
Description: Text document
- gtags fail to index C++ exported class, Julien Montmartin, 2014/11/16
- Re: gtags fail to index C++ exported class, Shigio YAMAGUCHI, 2014/11/16
- Re: gtags fail to index C++ exported class,
Jason Hood <=
- Message not available
- Re: gtags fail to index C++ exported class, Jason Hood, 2014/11/18
- Re: gtags fail to index C++ exported class, Shigio YAMAGUCHI, 2014/11/19
- Re: gtags fail to index C++ exported class, Jason Hood, 2014/11/19
- Re: gtags fail to index C++ exported class, Shigio YAMAGUCHI, 2014/11/19
- Re: gtags fail to index C++ exported class, Julien Montmartin, 2014/11/19
- Re: gtags fail to index C++ exported class, Shigio YAMAGUCHI, 2014/11/25
- Re: gtags fail to index C++ exported class, Jason Hood, 2014/11/27
- Re: gtags fail to index C++ exported class, Shigio YAMAGUCHI, 2014/11/27
- Re: gtags fail to index C++ exported class, Jason Hood, 2014/11/30
- Re: gtags fail to index C++ exported class, Shigio YAMAGUCHI, 2014/11/30