Mercurial > hg > CbC > CbC_llvm
diff clang/test/Index/index-refs.m @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clang/test/Index/index-refs.m Thu Feb 13 15:10:13 2020 +0900 @@ -0,0 +1,32 @@ + +@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]; +} + +@protocol ForwardProt; + +// 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 + +// CHECK: [indexDeclaration]: kind: objc-protocol | name: ForwardProt | {{.*}} | loc: 24:11 +// CHECK-NEXT: <ObjCContainerInfo>: kind: forward-ref