Bug#2848: Class browser cannot switch to a class definition

Axel Pauli axel.pauli at alcatel.de
Thu Mar 16 08:39:09 UTC 2000

Package: kdevelop
Version: 1.1
Severity: normal

Bugreport ID : 21:01,15.03.00

Originator : Axel Pauli
E-Mail  : axel.pauli at alcatel.de

Subject : Class browser cannot switch to a class definition

Error Class : software bug
Error Location : class browser
Priority : high
Bug Description ---------------------------

When a method uses a return code enumration, defined in the class
declaration it is not necessary, to declare it together with the class
name. But the definition of the method requires the full qualified


declaration: RetCodes readSomething();
definition:  Beispiel::RetCodes readSomething(){}

If I make such allowed definition, the class browser is not able to
find the definition of the method.

How to repeat the error
Please use the following files:

class Beispiel

  // return codes used by class methods

  enum RetCodes {

  // constructor of class

  // destructor
  virtual ~Beispiel();

  RetCodes readSomething();

  void setSomeThing(int arg1, int arg2, int arg3, int arg4);

  RetCodes writeSomething();

  int doSomething() { return 1;};

  const char *getSomething();

#include "Beispiel.h"

Beispiel::Beispiel() {};

Beispiel::~Beispiel() {};

Beispiel::RetCodes Beispiel::readSomething()
  return Beispiel::ProcessingError;

void Beispiel::setSomeThing(int arg1, int arg2, int arg3, int arg4)

Beispiel::RetCodes Beispiel::writeSomething()
  return Beispiel::Success;

const char *Beispiel::getSomething()
  return (char *) 0;

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

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

KDevelop version : 1.1
KDE version  : 1.1.2
QT version  :
OS/Distribution  : Suse 6.3
Compiler  : g++

misc :

More information about the KDevelop-devel mailing list