Vim Tips Wiki
Advertisement

Use this page to discuss script 1520 1520

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

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 Bug

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

in test.h file //==================================================

  1. ifndef TEST_H_
  2. define TEST_H_
  1. ifndef TEST_C_
  2. define TEST_EXT extern
  3. else
  4. define TEST_EXT
  5. endif

typedef struct {

   int a;
   int b;

}myType;

TEST_EXT myType gVar;

  1. endif /* END OF TEST_H_ */

//===================================================

in test.c file //===================================================

  1. define TEST_C_
  1. include "test.h"

gVar. //Autocomplete does not work //===================================================

Advertisement