help-global
[Top][All Lists]
Advanced

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

Re: about *.hpp


From: masanori higashihara
Subject: Re: about *.hpp
Date: Fri, 3 Oct 2003 11:02:35 +0900

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.






reply via email to

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