]> granicus.if.org Git - clang/commit
[completion] Add completions for @"..." and @(...), and tidy up @[] and @{}.
authorJordan Rose <jordan_rose@apple.com>
Fri, 15 Jun 2012 18:19:56 +0000 (18:19 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 15 Jun 2012 18:19:56 +0000 (18:19 +0000)
commit1f6e22d14419db7162202854190f690f393daf2d
tree202c87e28bf7167e36baf14866819cfe7ca01a63
parent50571a9fd8871c722e8655c7c2c3b2871a0d14c1
[completion] Add completions for @"..." and @(...), and tidy up @[] and @{}.

Specifically, @[] and @{} didn't have a type associated with them; we now
use "NSArray *" and "NSDictionary *", respectively. @"" has the type
"NSString *". @(), unfortunately, has type "id", since it (currently) may
be either an NSNumber or an NSString.

Add a test for all the Objective-C at-expression completions.

<rdar://problem/11507708&11507668&11507711>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158533 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCodeComplete.cpp
test/CodeCompletion/objc-expr.m [new file with mode: 0644]
test/Index/complete-exprs.m