18

gcc4.4.3c89にexuberant-ctags5.8を使用する

私はexuberant-ctagsを使い始めたばかりですが、どのオプションを追加するのか疑問に思っています。

ここにリストがあります、そして私はそれが過剰に殺されるかもしれないあまりにも多くを追加したのではないかと思っています。

$ ctags --list-kinds=c
c  classes
d  macro definitions
e  enumerators (values inside an enumeration)
f  function definitions
g  enumeration names
l  local variables [off]
m  class, struct, and union members
n  namespaces
p  function prototypes [off]
s  structure names
t  typedefs
u  union names
v  variable definitions
x  external and forward variable declarations [off]

私は以下を使用するつもりでした:

ctags -e --c-kinds=+defgpstux -R

私はただ疑問に思っています:それはやり過ぎですか?

c  classes                      No -- I don't have any classes as this is c
d  macro definitions            YES -- I have many macros  
e  enumerators (values inside an enumeration) YES
f  function definitions         YES
g  enumeration names            YES
l  local variables [off]        NO
m  class, struct, and union members NO
n  namespaces NO 
p  function prototypes [off]    YES
s  structure names              YES -- Is there any difference with m
t  typedefs                     YES 
u  union names                  YES
v  variable definitions         NO
x  external and forward variable declarations [off] YES
4

2 に答える 2

8

やり過ぎとは言えませんが、mをオンにします(構造体と組合員の検索は非常に優れています)

一般に、Ctagsは、コマンドラインから、またはそれをサポートするエディター(gvimなど)を使用して作業している場合に適しています。高度な機能が本当に必要な場合は、優れたIDEを使用することをお勧めします。ctagsでは直接できないことがあります(たとえば、hireachyを呼び出す、または優れたC / C++インデックスサポートを備えた優れたIDEが提供するリファクタリングなど)。

于 2010-09-21T00:21:49.447 に答える
4

これらのどれもやり過ぎだとは思いませんが、CScopeを調べて「次のレベルに引き上げる」ことをお勧めします。あなたはctagsから抜け出すことができる最大のものを絞り込んでいるようです、そしてそれはCScopeが拾うところです。

于 2010-09-20T07:20:34.890 に答える