月曜日, 4月 13, 2009

cscope, ctags, & vim

cscope, ctags, & vim

ctags can be used to browser the definition of a variable (e.g., a function, variable, or macro).
cscope can be used to explore the call site of a definition (e.g., all function calls, all variable uses, all macro uses).


Choice of tool:
  • C: Use cscope + ctags
  • C++ or anything else: Use just ctags. It has the benefit of
    knowing about class names, where as cscope does not and will not
    know the difference between namespc1::bob and namespc2::bob.

0 件のコメント: