[CodeComplete] Tweak code completion for `typename`.
authorKadir Cetinkaya <kadircet@google.com>
Fri, 26 Jun 2020 08:31:13 +0000 (10:31 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Fri, 26 Jun 2020 08:32:12 +0000 (10:32 +0200)
commit834c71829cc2e22841bf75e86b988c46252c70dc
tree9cac196fdd0d850c41a519d7d9775c3abbd95f59
parent1a30eab413cefb18e733ef6aec42dc04a4a76592
[CodeComplete] Tweak code completion for `typename`.

Summary:
Currently, clangd always completes `typename` as `typename qualifier::name`, I think the current behavior is not useful when the code completion is triggered in `template <>`. So I tweak it to `typename identifier`.

Patch by @lh123 !

Reviewers: sammccall, kadircet

Reviewed By: kadircet

Subscribers: ilya-biryukov, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82373
clang/lib/Sema/SemaCodeComplete.cpp
clang/test/CodeCompletion/ordinary-name-cxx11.cpp
clang/test/CodeCompletion/ordinary-name.cpp