[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 140800] New: code completion doesnt work with typedefs
From:       Thomas Veith <th_veith () web ! de>
Date:       2007-01-28 22:09:26
Message-ID: 20070128230925.140800.th_veith () web ! de
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=140800         
           Summary: code completion doesnt work with typedefs
           Product: kdevelop
           Version: 3.4.0
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs kdevelop org
        ReportedBy: th_veith web de


Version:           3.4.0 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.1.1 
OS:                Linux

As impressive code completion in 3.4.0 is, typedefs dont work properly.

Take following code:

class Foo {
public:
  void spam();
};

template<typename T>
class Ptr {
  T *ptr;
  
  public:
    Ptr(T* val) : ptr(val) {}

    T* operator->() { return ptr; }
    void dump() {}
};

..


Foo *foo = new Foo();
foo-> ... this works

Ptr<Foo> ptrA(foo);
ptrA-> ... this works (congrats)

#define PtrB Ptr<Foo>
PtrB ptrB(foo);
ptrB-> ... this works also (congrats)

typedef Ptr<Foo> PtrC;
PtrC ptrC(foo);
ptrC-> ... this doesnt work :-(

Hope this is not too hard to fix, because aside of this, kdevelop 3.4 really rocks!


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic