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)
commit0c010cddb32775721fcc5dce9ae815d0510578e0
tree37cfd0a7bc4ab52627223e74446baf8b05553444
parent951995821a97969f662ac737e5a54689680b075f
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

llvm-svn: 227309
clang/include/clang/Sema/CodeCompleteConsumer.h
clang/lib/Sema/CodeCompleteConsumer.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/test/Index/code-completion.cpp
clang/test/Index/complete-call.cpp
clang/test/Index/complete-constructor-params.cpp
clang/test/Index/complete-functor-call.cpp
clang/test/Index/complete-optional-params.cpp [new file with mode: 0644]
clang/test/Index/complete-pointer-and-reference-to-functions.cpp
clang/tools/libclang/CIndexCodeCompletion.cpp