Wikia

Vim Tips Wiki

Changes: Script:1520

Edit

Back to page

(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
(Brace inside comment or string)
 
(4 intermediate revisions by one user not shown)
Line 42: Line 42:
   
 
Eddie Carle - April 20, 2011
 
Eddie Carle - April 20, 2011
  +
  +
==Brace inside comment or string==
  +
I have something like this:
  +
<pre>
  +
void MyClass::Method(int a){
  +
this->Value=a;//Autocomplete does work
  +
//} - this will break it
  +
this->//Autocomplete does not work
  +
}
  +
</pre>
  +
Or:
  +
<pre>
  +
void MyClass::Method(int a){
  +
this->Value=a;//Autocomplete does work
  +
this->Key="}"; - this will break it
  +
this->//Autocomplete does not work
  +
}
  +
</pre>
   
 
==Comments==
 
==Comments==

Latest revision as of 12:18, August 8, 2013

Use this page to discuss script 1520 OmniCppComplete: C/C++ omni-completion with ctags database

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Bug reportEdit

If I have a declaration within a 'for', 'while', or 'if' conditional like this:

A*  obj;
while (B* obj = getObj() )
{
    obj->......    // Completion list shown here assumes type of obj to be A and not B -- that's a bug
}

Nested structure bugEdit

I've read mention of a nested structure bug having been fixed but I am having trouble with the following snippit:

class A
{
   struct B
   {
      int x;
      int y;

      struct C
      {
         char a;
         char b;
      };
   };

   void testFuntion();
};

void A::testFunction()
{
   B::C object1;
   A::B::C object2;

   object1. // Autocomplete does not work
   object2. // Autocomplete does work
}

Eddie Carle - April 20, 2011

Brace inside comment or stringEdit

I have something like this:

void MyClass::Method(int a){
  this->Value=a;//Autocomplete does work
  //} - this will break it
  this->//Autocomplete does not work
}

Or:

void MyClass::Method(int a){
  this->Value=a;//Autocomplete does work
  this->Key="}"; - this will break it
  this->//Autocomplete does not work
}

CommentsEdit

Around Wikia's network

Random Wiki