Friday, September 10, 2010

Re: OmniCppComplete with namesapce can't work

"fix utils.vim in omnicppcomplet file line 287
let namespaces = a:namespaces + [omni#cpp#utils#ExtractScope(tagItem), '::']
"let namespaces = [omni#cpp#utils#ExtractScope(tagItem), '::']
Is ok now.


2010/9/9 777 <vimtexhappy@gmail.com>:
> Hello All:
>  I use OmniCppComplete, when I use namesapce, <c-x><c-o> can't
> complete C1's member.
>  If don't use namespace it work. It a bug? The Omni plugin is too old,
> Now have a new one?
> Thanks.
>
>
> namespace TTT {
> //<------------------ namespace
> class C1 {
>    int a;
>    int b;
>    int c;
> };
> }
> //<--------------------
> using namespace TTT;
> class C2 : C1{
>    int x;
>    int y;
>    int z;
> };
>
> int main(int argc, char *argv[])
> {
>    C2 * y;
>    y-> <c-x><c-o>                                         //
> <---------------- omnicppcomplete
> }
>

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: