Bug 218711 - Wish: code completion should automatically know the most likely class type
Summary: Wish: code completion should automatically know the most likely class type
Status: CONFIRMED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-14 22:18 UTC by Diederik van der Boor
Modified: 2021-03-12 00:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.