Bug#2418: Bugs in Class View (more)

Pétur Runólfsson petur_r at usa.net
Mon Dec 13 19:22:07 UTC 1999


Package: kdevelop
Version: 1.0
Severity: normal

Bugreport ID : 22:00,12.12.99

Originator	: Pétur Runólfsson
E-Mail		: petur_r at usa.net

Subject : Bugs in Class View (more)

Error Class	: software bug
Error Location	: class tree
Priority	: low
Bug Description ---------------------------

1. Class view displays implicit conversion functions strangely.
Given the following input:

class Wilma;

class Fred
{
        Wilma& operator*() const;
        operator Wilma* () const;
};

both functions appear in the Class View as "*()".

2.  Given an unnamed namespace containing several functors:

namespace
{
        struct func1 {
                void operator()();
        };
        void func1::operator()() { }

        struct func2 {
                void operator()();
        };
        void func2::operator()() {}

         ....more functors.......
};

Only func1 and func1::operator()() appear under the namespace,
the rest appear as global structs and functions.

3.  Given a struct defined in a header with inline
constructors containing initializer lists:

struct Fred
{
        int foo;
        int bar;
        int foobar;

        Fred() throw() : foo(0), bar(0), foobar(0) { };
        Fred(int a, int b, int c) throw()
                : foo(a), bar(b), foobar(c) { };
};

Class View displays one function named Fred among the global
functions, clicking on this brings the cursor to the later
constructor. However, Class View also displays the global
functions bar(b) and foobar(c) (no mention of foo :-). 

How to repeat the error -------------------




Bugfix or Workaround ----------------------



System Information ------------------------

KDevelop version	: 1.0
KDE version		: 1.1.2
QT version		: 1.44
OS/Distribution		: Linux - kernel 2.2.13, glibc 2.1.1
Compiler		: egcs-2.91.66

misc :


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1




More information about the KDevelop-devel mailing list