Review Request: Feature: Lookahead Match Completions

Olivier Jean de Gaalon olivier.jg at gmail.com
Sun Nov 4 17:54:27 UTC 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/107200/
-----------------------------------------------------------

Review request for KDevelop.


Description
-------

Add a new feature which looks though existing completions for instances of classes, and looks in those classes for declarations which match the desired type. In other words:
------------
struct foo
{
  int a;
};
int main()
{
  foo myFoo;
  int myInt = //offers myFoo.a
}
------------

In my testing, in the worst case (large file, lots of visible declarations), this takes under 60 ms for me. In most cases it will probably be much less.


Diffs
-----

  languages/cpp/codecompletion/context.h b6fb017 
  languages/cpp/codecompletion/context.cpp 6d9c3cc 
  languages/cpp/codecompletion/item.h c220753 
  languages/cpp/codecompletion/item.cpp 2514f9a 
  languages/cpp/tests/test_cppcodecompletion.h 574de0f 
  languages/cpp/tests/test_cppcodecompletion.cpp 88a0df7 

Diff: http://git.reviewboard.kde.org/r/107200/diff/


Testing
-------

Added unit tests, usage.


Thanks,

Olivier Jean de Gaalon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20121104/bb935039/attachment.html>


More information about the KDevelop-devel mailing list