Bug 218711

Summary: Wish: code completion should automatically know the most likely class type
Product: [Applications] kdevelop Reporter: Diederik van der Boor <vdboor>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: CONFIRMED ---    
Severity: normal CC: renan.t.inacio
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Diederik van der Boor 2009-12-14 22:18:31 UTC
Version:           3.9.96 (using KDevPlatform 0.9.96) (using 4.3.4 (KDE 4.3.4) "release 2", KDE:43 / openSUSE_11.2)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31.5-0.1-desktop

In the class constructor, the code completion does not really seam to know the class type.

Example code:

-------------[.h file]---------

class MessagePrivate;

class Message {
  public:
    Message();
  
  private:
    MessagePrivate *d;
}

-------------[.cpp file]--------

Message::Message()
: d(new      ///   <-- hit ctrl space here, and see the suggestions.
{

}

--------------------------------

At that point, KDevelop gives all kind of suggestions, but preselects the wrong class as suggestion. I'd expected either:
- kdevelop to limit the list of possible classes.
- kdevelop to preselect the likely expected class (the MessagePrivate in this case)

Thanks for your time!
Comment 1 Kevin Funk 2012-12-22 23:17:30 UTC
Still an issue.
Comment 2 Justin Zobel 2021-03-09 22:48:03 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 3 Renan InĂ¡cio 2021-03-12 00:28:02 UTC
Still an issue in KDevelop 5.6.1.