Monday, March 22, 2010

OmniCppComplete Issue

OmniCppComplete is a great plugin, but there's something that I can't
get to work. Methods of a variable defined in another namespace won't
complete if the namespace is explicitly defined.

For example, I want to use vim and omnicppcomplete to work on a
Broodwar API project, and one file has this in it to define a variable
that almost every other file in the project uses:

namespace BWAPI {
Game *Broodwar;
}

(NOTE: It was originally contained on one line, but with that
formatting omnicppcomplete never worked with it at all. Not sure if
that counts as a bug, but it's very easy to work around)

In a file with the line "using namespace BWAPI" at the top, Broodwar-
>[complete] works as expected. However, in a file where that line
isn't there, BWAPI::Broodwar->[complete] fails.

Can anyone get this to work?

--
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

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: