bug: class view - strange startup

August Hörandl august.hoerandl at gmx.at
Thu Mar 28 13:49:04 UTC 2002


August Hörandl wrote:
> ... 
> stay tuned for tomorrows example with 3 classes and "deep nesting"
> (nested class inside inner class)
> 
> --> there is a big problem with nested classes ;-)

okay - the problems seems to be the lack of any public/private/...
keywords:
see the attached long example 
this must is the first/only file parsed: everything up to the 
"private:" is shown wrong in the classview 
  class 6_2 is the same as 2 
   2 is shown/parsed wrong, 6_2 after the first private in 5 is ok
  
the classview depends on this "private:" in 5 -- if it is moved up or 
down the class view changes a lot

what magic is done during this first "private:" ? this magic seems
to keep working, because after a refresh everything is shown ok

Gustl

ps: attachment: one example

class outer2 {
  class inner1 {
     inner1();
     int i1;
  };
  class inner2 {
    inner2();
    int i2;
  };
  outer2();
  int o2;
};

class outer3 {
  struct inner1 {
     inner1();
     int i1;
  };
  class inner2 {
    inner2();
    int i2;
  };
  outer2();
  int o2;
};

class outer4 {
  class inner1 {
     inner1();
     int i1;
  };
  struct inner2 {
    inner2();
    int i2;
  };
  outer2();
  int o2;
};

class outer5 {
  class inner1 {
     inner1();
     int i1;
  };
  private:
  class inner2 {
    inner2();
    int i2;
  };

  outer2();
  int o2;
};

class outer6_2 {
  class inner1 {
     inner1();
     int i1;
  };
  class inner2 {
    inner2();
    int i2;
  };
  outer2();
  int o2;
};

class outer7_3 {
  struct inner1 {
     inner1();
     int i1;
  };
  class inner2 {
    inner2();
    int i2;
  };
  outer2();
  int o2;
};

class outer8_4 {
  class inner1 {
     inner1();
     int i1;
  };
  struct inner2 {
    inner2();
    int i2;
  };
  outer2();
  int o2;
};


pps: this genius c++ classes are coprighted, don't even think of
using them in your project ;-)

-- 
August Hörandl                           august.hoerandl at gmx.at
strip;touch;finger;mount;fsck;more;yes;umount;sleep
                            - the way how unix gurus have sex -




More information about the KDevelop-devel mailing list