Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: indigo0086 on February 07, 2007, 05:34:31 pm

Title: Redundant occurances of member functions in class browser.
Post by: indigo0086 on February 07, 2007, 05:34:31 pm
I am using the nightlies (pretty much happens with them all), and when I create a prototype of a member fucntion such as

Code
public:
   Foo(int , char * );

then in the implementation file I would do
Code
Foo::Foo(int a, char * p) : mya(a), myp(p) {}

the class browser would list two occurances
one for the prototype, with no names, and one for the implementation with variable names.  Is there a way to get rid of redundant occurances, it gets really confusing when browsing my class.  Other than of course using variables in the prototypes, which I find redundant and unnecessary.
Title: Re: Redundant occurances of member functions in class browser.
Post by: TDragon on February 07, 2007, 07:35:00 pm
Other than of course using variables in the prototypes, which I find redundant and unnecessary.
-- Until you start using in-code documentation and documentation generators, of which all I've encountered require named parameters to document prototypes.

Nevertheless, this is indeed a small bug in the Code Completion / Class Browser functionality.