Menu

#208 completion: place matching types at top of list

open
None
5
2012-09-26
2003-10-03
No

it would be nice if code completion placed all
suggestions with matching types at the top of the list,
as these most likely contain the completion the user
wants. it should be easy to deterine the type of an
rvalue based on the context. for example:

foo.h:
class Foo
{
public:
int foo_a();
bool foo_b();
double foo_c();
};

main.cpp:
#include "foo.h"

int main(int argc, char argv[])
{
Foo f;
bool b=f.foo_|; // * cursor at '|'

}

completion should place 'foo_b()' at the top of the
list, as the return type matches the type of the rvalue.

thanks,
alvin

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.