Bug 394752 - Content Assist offers most irrelevant entries first.
Summary: Content Assist offers most irrelevant entries first.
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.1.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-21 04:47 EST by Jan Sondhauss CLA
Modified: 2020-09-04 15:21 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Sondhauss CLA 2012-11-21 04:47:30 EST
The CDT Content Assistant shows the most distant (i.e. irrelevant) entries first.

Example:

void Foo( int bar)
{
  b<ctrl+space>
}

I would expect bar as one of the first (if not the first) entries. But the content assistant shows all functions beginning with 'b' from external headers first, then follows bar and other project-defined stuff with 'b'.

The following order would work best for me:
1. current context
2. file context
3. project context
4. external header context

Have a nice day!
Comment 1 hooluupog CLA 2013-03-06 21:19:57 EST
+1. When code completing with STL, it shows too many irrelevant entries first.
In addition,it shows some entries which is out of scope(e.g. it shows "fabs()" function even if you didn't include math.h). the current code completion is lack of intelligence.
I have filed a similar bug(Bug 402205) and you can get more details about the problem from it.
Comment 2 Nathan Ridge CLA 2015-03-31 05:02:21 EDT
For me it shows 'bar' before functions defined in headers (or even in the same file), but the order still leaves some things to be desired. For example, it shows names from files in the project that aren't even included, above names from the same file.