view tools/clang/test/Index/index-refs.m @ 53:f679cc5126db

include setjmp.h automatically
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Sat, 18 Jan 2014 23:56:19 +0900
parents 95c75e76d11b
children 1172e4bd9c6f
line wrap: on
line source


@class Protocol;

@protocol Prot
@end

struct FooS {
  int x;
};

void foo() {
  Protocol *p = @protocol(Prot);
  @encode(struct FooS);
}

@interface I
+(void)clsMeth;
@end

void foo2() {
  [I clsMeth];
}

// RUN: c-index-test -index-file %s | FileCheck %s
// CHECK: [indexEntityReference]: kind: objc-protocol | name: Prot | {{.*}} | loc: 12:27
// CHECK: [indexEntityReference]: kind: struct | name: FooS | {{.*}} | loc: 13:18
// CHECK: [indexEntityReference]: kind: objc-class | name: I | {{.*}} | loc: 21:4