diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-08-26 01:42:22 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-08-26 01:42:22 +0000 |
commit | 95f33555a6d51b6537a9ed3968c3d1c2e4991b51 (patch) | |
tree | 3c81eccf2bf7be2c9a886f9915235871d8727d14 /test | |
parent | 2dc70ad391cb75ea90a2fb5d14a7f1d271534da3 (diff) |
Add libclang API hook "clang_getIBOutletCollectionType" to query the collection type for iboutletcollection attributes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Index/c-index-api-loadTU-test.m | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/Index/c-index-api-loadTU-test.m b/test/Index/c-index-api-loadTU-test.m index a86bf629ea..5fe7cd669b 100644 --- a/test/Index/c-index-api-loadTU-test.m +++ b/test/Index/c-index-api-loadTU-test.m @@ -56,7 +56,7 @@ int main (int argc, const char * argv[]) { // Test attribute traversal. #define IBOutlet __attribute__((iboutlet)) -#define IBOutletCollection(ClassName) __attribute__((iboutletcollection)) +#define IBOutletCollection(ClassName) __attribute__((iboutletcollection(ClassName))) #define IBAction void)__attribute__((ibaction) @interface TestAttributes { @@ -143,10 +143,15 @@ struct X0 {}; // CHECK: c-index-api-loadTU-test.m:63:19: ObjCIvarDecl=anOutlet:63:19 (Definition) Extent=[63:19 - 63:27] // CHECK: <invalid loc>:0:0: attribute(iboutlet)= // CHECK: c-index-api-loadTU-test.m:64:29: ObjCIvarDecl=anOutletCollection:64:29 (Definition) Extent=[64:29 - 64:47] -// CHECK: <invalid loc>:0:0: attribute(iboutletcollection)= +// CHECK: <invalid loc>:0:0: attribute(iboutletcollection)= [IBOutletCollection=ObjCObjectPointer] // CHECK: c-index-api-loadTU-test.m:64:26: TypeRef=id:0:0 Extent=[64:26 - 64:28] // CHECK: c-index-api-loadTU-test.m:66:1: ObjCInstanceMethodDecl=actionMethod::66:1 Extent=[66:1 - 66:35] // CHECK: <invalid loc>:0:0: attribute(ibaction)= // CHECK: c-index-api-loadTU-test.m:66:31: ParmDecl=arg:66:31 (Definition) Extent=[66:28 - 66:34] // CHECK: c-index-api-loadTU-test.m:66:28: TypeRef=id:0:0 Extent=[66:28 - 66:30] +// CHECK: c-index-api-loadTU-test.m:69:16: StructDecl=X0:69:16 Extent=[69:9 - 69:18] +// CHECK: c-index-api-loadTU-test.m:69:19: TypedefDecl=X1:69:19 (Definition) Extent=[69:19 - 69:21] +// CHECK: c-index-api-loadTU-test.m:69:16: TypeRef=struct X0:71:8 Extent=[69:16 - 69:18] +// CHECK: c-index-api-loadTU-test.m:70:8: StructDecl=X0:70:8 Extent=[70:1 - 70:10] +// CHECK: c-index-api-loadTU-test.m:71:8: StructDecl=X0:71:8 (Definition) Extent=[71:1 - 71:14] |