|
From: | Shigio YAMAGUCHI |
Subject: | Re: Universal Ctags langmap |
Date: | Wed, 23 Mar 2016 16:59:11 +0900 |
On 22/03/2016 15:12, Shigio YAMAGUCHI wrote:
>> 3. The real problem is suffixes don't accumulate, which stops
>> C++ from working at all - .inl is replacing all the other extensions.
>
> It seems to work well in my Mac.
The problem is not with gtags, but ctags.
T:\>echo void a_function() {} >a.inl
T:\>echo void b_function() {} >b.cpp
T:\>echo void c_function() {} >c.c++
T:\>gtags --gtagslabel=ctags --explain
- File 'b.cpp' is handled as follows:
suffix: |.cpp|
language: |C++|
parser: |parser|
library: |exuberant-ctags|
- File 'c.c++' is handled as follows:
suffix: |.c++|
language: |C++|
parser: |parser|
library: |exuberant-ctags|
- File 'GPATH' is skipped because it is a tag file.
- File 'GRTAGS' is skipped because it is a tag file.
- File 'GTAGS' is skipped because it is a tag file.
T:\>global -x ._function
b_function 1 b.cpp void b_function() {}
c_function 1 c.c++ void c_function() {}
T:\>gtags --gtagslabel=new-ctags --explain
- File 'a.inl' is handled as follows:
suffix: |.inl|
language: |C++|
parser: |parser|
library: |universal-ctags|
- File 'b.cpp' is handled as follows:
suffix: |.cpp|
language: |C++|
parser: |parser|
library: |universal-ctags|
- File 'c.c++' is handled as follows:
suffix: |.c++|
language: |C++|
parser: |parser|
library: |universal-ctags|
- File 'GPATH' is skipped because it is a tag file.
- File 'GRTAGS' is skipped because it is a tag file.
- File 'GTAGS' is skipped because it is a tag file.
T:\>global -x ._function
a_function 1 a.inl void a_function() {}
--
Jason.
[Prev in Thread] | Current Thread | [Next in Thread] |