[CodeComplete] Include more text into typed chunks of pattern completions
authorIlya Biryukov <ibiryukov@google.com>
Tue, 4 Jun 2019 09:26:08 +0000 (09:26 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Tue, 4 Jun 2019 09:26:08 +0000 (09:26 +0000)
commit30977fc3a97b6172431749402ed4ed0b565d902c
tree2ea895c27254f4043d3d8ecc7d04233abf641fc5
parentc3c686f5f8c4368b374e110f722ab44e388b9602
[CodeComplete] Include more text into typed chunks of pattern completions

Summary:
To allow filtering on any of the words in the editors.
In particular, the following completions were changed:
    - 'using namespace <#name#>'
      Typed text before: 'using', after: 'using namespace'.
    - 'else if (#<condition#>)'
      Before: 'else', after: 'else if'.
    - 'using typename <#qualifier#>::<#name#>'
      Before: 'using', after: 'using typename'.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D62615

llvm-svn: 362479
clang/lib/Sema/SemaCodeComplete.cpp
clang/test/CodeCompletion/ordinary-name-cxx11.cpp
clang/test/CodeCompletion/ordinary-name.cpp
clang/test/Index/complete-stmt.c