]> granicus.if.org Git - clang/commit
Improve code completion for Objective-C message sends when the opening
authorDouglas Gregor <dgregor@apple.com>
Wed, 15 Sep 2010 16:23:04 +0000 (16:23 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 15 Sep 2010 16:23:04 +0000 (16:23 +0000)
commit78edf515544f0b9dddf69d6c1678fd83e94d8352
treeebbc3d8638d96124c58b1136d6541d5932efe3c8
parent5f81d8aa26ad4de6568772c4768b272af96c18be
Improve code completion for Objective-C message sends when the opening
'[' is missing. Prior commits improving recovery also improved code
completion beyond the first selector, e.g., at or after the "to" in

  calculator add:x to:y

but not after "calculator". We now provide the same completions for

  calculator <CC>

that we would for

  [calculator <CC>

if "calculator" is an expression whose type is something that can
receive Objective-C messages.

This code completion works for instance and super message sends, but not
class message sends.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113976 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Parse/ParseExpr.cpp
lib/Sema/SemaCodeComplete.cpp
test/Index/complete-objc-message.m
test/Index/complete-super.m