forked from OSchip/llvm-project
[libclang] Fix crash when indexing attributes, rdar://10702250.
llvm-svn: 148524
This commit is contained in:
parent
5d34322811
commit
908c4dcc5d
|
@ -0,0 +1,7 @@
|
|||
@class Foo;
|
||||
@interface Bar
|
||||
@property (retain) __attribute__((iboutletcollection(Foo))) Foo *prop;
|
||||
@end
|
||||
|
||||
// RUN: c-index-test -index-file %s | FileCheck %s
|
||||
// CHECK: <attribute>: attribute(iboutletcollection)= [IBOutletCollection=ObjCInterface]
|
|
@ -49,7 +49,7 @@ IndexingContext::ObjCProtocolListInfo::ObjCProtocolListInfo(
|
|||
|
||||
IBOutletCollectionInfo::IBOutletCollectionInfo(
|
||||
const IBOutletCollectionInfo &other)
|
||||
: AttrInfo(CXIdxAttr_IBOutletCollection, other.cursor, other.loc, A) {
|
||||
: AttrInfo(CXIdxAttr_IBOutletCollection, other.cursor, other.loc, other.A) {
|
||||
|
||||
IBCollInfo.attrInfo = this;
|
||||
IBCollInfo.classCursor = other.IBCollInfo.classCursor;
|
||||
|
|
Loading…
Reference in New Issue