]> granicus.if.org Git - clang/commit
When providing a code completion for an Objective-C message send, drop
authorDouglas Gregor <dgregor@apple.com>
Sun, 29 Aug 2010 19:47:46 +0000 (19:47 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 29 Aug 2010 19:47:46 +0000 (19:47 +0000)
commitaba480862485ea1140a81f25c23f43bb080edc90
treec98c011acd930093bf175a4561eb89b9e2d35829
parent0c431c8c001e4c1f7488663d98700a8ce1e89e2a
When providing a code completion for an Objective-C message send, drop
the parameter names from the completions, e.g., provide

  withString:(NSString *)

instead of

  withString:(NSString *)string

since the parameter name is, by convention, redundant with the
selector piece that precedes it and the completions can get
unnecessarily long.

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