When performing code completion after at @interface, allow both

already-defined and forward-declared results. Already-defined results
are fine because they could be the start of a category. Fixes
<rdar://problem/9811691>.

llvm-svn: 136559
This commit is contained in:
Douglas Gregor
2011-07-30 06:55:39 +00:00
parent 7e1eb935db
commit 2c595adf2e
6 changed files with 35 additions and 25 deletions

View File

@@ -438,7 +438,7 @@ static unsigned long long getContextsForContextKind(
contexts = CXCompletionContext_ObjCClassMessage;
break;
}
case CodeCompletionContext::CCC_ObjCSuperclass: {
case CodeCompletionContext::CCC_ObjCInterfaceName: {
contexts = CXCompletionContext_ObjCInterface;
break;
}