]> granicus.if.org Git - clang/commit
Improves overload completion result chunks.
authorFrancisco Lopes da Silva <oblita@gmail.com>
Wed, 28 Jan 2015 14:17:22 +0000 (14:17 +0000)
committerFrancisco Lopes da Silva <oblita@gmail.com>
Wed, 28 Jan 2015 14:17:22 +0000 (14:17 +0000)
commit90ffec0e7ebba3cd7f2cd582b39e62ff40ceacb5
tree64f4e3d48457d104ea1dc459901d9d864502a000
parent18a541723125a193231dbb1b9fb2250c0577bf8d
Improves overload completion result chunks.

The code building the code completion string for overloads was providing
less detail compared to the one building completion strings for function
declarations. There was no information about optionals and no information
about what's a parameter and what's a function identifier, everything
besides ResultType, CurrentParameter and special characters was classified
as Text.

This makes code completion strings for overload candidates to follow a
pattern very similar, but not identical, to the one in use for function
declarations:

 - return type chunk: ResultType
 - function identifier chunk: Text
 - parameter chunks: Placeholder
 - optional parameter chunks: Optional
 - current parameter chunk: CurrentParameter

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227309 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/CodeCompleteConsumer.h
lib/Sema/CodeCompleteConsumer.cpp
lib/Sema/SemaCodeComplete.cpp
test/Index/code-completion.cpp
test/Index/complete-call.cpp
test/Index/complete-constructor-params.cpp
test/Index/complete-functor-call.cpp
test/Index/complete-optional-params.cpp [new file with mode: 0644]
test/Index/complete-pointer-and-reference-to-functions.cpp
tools/libclang/CIndexCodeCompletion.cpp