D17915: Clang CodeCompletion: No auto-completion for numbers

Thomas Schöps noreply at phabricator.kde.org
Wed Jan 2 12:27:58 GMT 2019


thomassc created this revision.
thomassc added a reviewer: KDevelop.
thomassc added a project: KDevelop.
Herald added a subscriber: kdevelop-devel.
thomassc requested review of this revision.

REVISION SUMMARY
  When typing a number, code-completion is undesirable in my opinion, since most likely no completion item applies and it only distracts, obstructs the view, or is triggered accidentally. Thus, this patch prevents code completion from automatically getting triggered for numbers. It does not cover all cases (code completion will still show something for floating-point numbers that start with a dot, such as .1f) but should cover the most common cases. Manual completion with Ctrl+Space is still possible.

TEST PLAN
  Tested manually.

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D17915

AFFECTED FILES
  plugins/clang/codecompletion/model.cpp

To: thomassc, #kdevelop
Cc: kdevelop-devel, glebaccon, hase, antismap, iodelay, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20190102/db568e5b/attachment.html>


More information about the KDevelop-devel mailing list