Skip to content
  • Thomas Schöps's avatar
    Clang CodeCompletion: No auto-completion for numbers · e86c5a72
    Thomas Schöps authored and Milian Wolff's avatar Milian Wolff committed
    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.
    
    Reviewers: #kdevelop, mwolff
    
    Reviewed By: #kdevelop, mwolff
    
    Subscribers: mwolff, brauch, kdevelop-devel
    
    Tags: #kdevelop
    
    Differential Revision: https://phabricator.kde.org/D17915
    e86c5a72