alex wrote:
> Yes, but cscope is only for C !
>
> Not even for object oriented C++.
>
> I have tried global too, but without too much enthusiasm.
>
> ctags is the better program for generating tags files, and supports a
> lot of languages, including obviously C++ and other "major" object
> oriented languages...
>
> THX
cscope works with c++ too. I'm using it on c++ code.
Cscope and ctags have their respective pros & cons.
cscope does things that ctags does not do. ctags only
finds where things are defined. cscope does that as well,
but can also search for other things. From ":cscope help":
c: Find functions calling this function
d: Find functions called by this function
e: Find this egrep pattern
f: Find this file
g: Find this definition
i: Find files #including this file
s: Find this C symbol
t: Find assignments to
On the other hand, ctags knows more about c++
and works nicely with the omnicppcomplete plugin.
So you should consider using both if you write c++ code
with Vim.
Neither cscope or ctags handle well overloaded functions
though. They cannot guess to which one to jump to when
several functions have the same name.
Cheers
-- Dominique
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---