Re: about *.hpp

"masanori higashihara" <[email protected]>
Newsgroups gmane.comp.gnu.global.general
Message-ID <000701c38952$69fc93b0$b40218ac@ibmtv0txrl9o5x>
Hi

I attempted to try as bellow ,but it was not generated crossreference of
*.hpp and *.cpp.
Sorry,why?

> By default, gtags considers only the following file to be a source file of
C++.
>
> *.c++
> *.cc
> *.cpp
> *.cxx
> *.hxx
> *.C
> *.H
>
> To treat *.hpp as C++ source file, you have to setup the configuration
file
> of GLOBAL like follows:
>
> 1. Copy 'gtags.conf' from GLOBAL package to $HOME/.globalrc.
>
> 2. Modify the file like follows:
>
>    a) Add 'hpp' to suffixes list.
>    b) Add --langmap option which include 'hpp'.
>
> [$HOME/.globalrc]
>
+---------------------------------------------------------------------------
> |gctags|tag command for GLOBAL:\
> | :tc=common:\
> | :suffixes=c,h,y,c++,cc,cpp,cxx,hxx,C,H,s,S,java,php,php3,phtml:\
> | :sort_command=sort:\
> | :sed_command=sed:\
> | :GTAGS=gctags -dt %s:\
> | :GRTAGS=gctags -dtr %s:\
> | :GSYMS=gctags -dts %s:
> |
> v
>
+---------------------------------------------------------------------------
> |gctags|tag command for GLOBAL:\
> | :tc=common:\
> | :suffixes=c,h,y,c++,cc,cpp,cxx,hxx,C,H,hpp,s,S,java,php,php3,phtml:\
> | :sort_command=sort:\
> | :sed_command=sed:\
> |
:GTAGS=gctags --langmap=c\:.c.h,yacc\:.y,cpp\:.c++.cc.cpp.cxx.hxx.C.H.hpp -d
t %s:\
> |
:GRTAGS=gctags --langmap=c\:.c.h,yacc\:.y,cpp\:.c++.cc.cpp.cxx.hxx.C.H.hpp -
dtr %s:\
> |
:GSYMS=gctags --langmap=c\:.c.h,yacc\:.y,cpp\:.c++.cc.cpp.cxx.hxx.C.H.hpp -d
ts %s:
>
> Then gtags will pick up *.hpp as a C++ source file.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.