]> granicus.if.org Git - clang/commit
When providing a block literal as a code completion for a
authorDouglas Gregor <dgregor@apple.com>
Sat, 2 Oct 2010 23:49:58 +0000 (23:49 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 2 Oct 2010 23:49:58 +0000 (23:49 +0000)
commitc2760bc8e99510c4b3848fcd21323afd711ee269
tree68b6c8014d28bdba80170d52cf04dd52b4b16a37
parent358559d8d7b458c5f64941842383a16e61f0828d
When providing a block literal as a code completion for a
function/method argument, include the parameter name and always
include parentheses (even for zero-parameter blocks). Otherwise, the
block literal placeholder '^' can look very weird.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115444 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCodeComplete.cpp
test/Index/complete-blocks.m