[libc++][NFC] Remove trailing whitespace from release notes
[llvm-project.git] / clang / test / Index / Core / Inputs / sys / system-head.h
blob740aafc336d1c87364f18dc569f47fd7d1bdc4ab
1 // CHECK: [[@LINE+1]]:12 | class/ObjC | Base | [[Base_USR:.*]] | {{.*}} | Decl | rel: 0
2 @interface Base
3 @end
5 // CHECK: [[@LINE+1]]:11 | protocol/ObjC | Prot1 | [[Prot1_USR:.*]] | {{.*}} | Decl | rel: 0
6 @protocol Prot1
7 @end
9 // CHECK: [[@LINE+3]]:11 | protocol/ObjC | Prot2 | [[Prot2_USR:.*]] | {{.*}} | Decl | rel: 0
10 // CHECK: [[@LINE+2]]:17 | protocol/ObjC | Prot1 | [[Prot1_USR]] | {{.*}} | Ref,RelBase,RelCont | rel: 1
11 // CHECK-NEXT: RelBase,RelCont | Prot2 | [[Prot2_USR]]
12 @protocol Prot2<Prot1>
13 @end
15 // CHECK: [[@LINE+7]]:12 | class/ObjC | Sub | [[Sub_USR:.*]] | {{.*}} | Decl | rel: 0
16 // CHECK: [[@LINE+6]]:18 | class/ObjC | Base | [[Base_USR]] | {{.*}} | Ref,RelBase,RelCont | rel: 1
17 // CHECK-NEXT: RelBase,RelCont | Sub | [[Sub_USR]]
18 // CHECK: [[@LINE+4]]:23 | protocol/ObjC | Prot2 | [[Prot2_USR]] | {{.*}} | Ref,RelBase,RelCont | rel: 1
19 // CHECK-NEXT: RelBase,RelCont | Sub | [[Sub_USR]]
20 // CHECK: [[@LINE+2]]:30 | protocol/ObjC | Prot1 | [[Prot1_USR]] | {{.*}} | Ref,RelBase,RelCont | rel: 1
21 // CHECK-NEXT: RelBase,RelCont | Sub | [[Sub_USR]]
22 @interface Sub : Base<Prot2, Prot1>
23 // CHECK-NOT: [[@LINE+1]]:3 | class/ObjC | Sub |
24 -(Sub*)getit;
25 @end
27 // CHECK: [[@LINE+1]]:7 | class/C++ | Cls | [[Cls_USR:.*]] | {{.*}} | Def | rel: 0
28 class Cls {};
30 // CHECK: [[@LINE+3]]:7 | class/C++ | SubCls1 | [[SubCls1_USR:.*]] | {{.*}} | Def | rel: 0
31 // CHECK: [[@LINE+2]]:24 | class/C++ | Cls | [[Cls_USR]] | {{.*}} | Ref,RelBase,RelCont | rel: 1
32 // CHECK-NEXT: RelBase,RelCont | SubCls1 | [[SubCls1_USR]]
33 class SubCls1 : public Cls {
34 // CHECK-NOT: [[@LINE+1]]:3 | class/C++ | SubCls1 |
35 SubCls1 *f;
38 // FIXME: this decl gets reported after the macro definitions, immediately
39 // before the next declaration. Add a dummy declaration so that the checks work.
40 void reset_parser();
42 // CHECK: [[@LINE+1]]:9 | macro/C | SYSTEM_MACRO | c:@macro@SYSTEM_MACRO | Def
43 #define SYSTEM_MACRO 1
44 // CHECK: [[@LINE+1]]:8 | macro/C | SYSTEM_MACRO | c:@macro@SYSTEM_MACRO | Undef
45 #undef SYSTEM_MACRO
46 // CHECK: [[@LINE+1]]:9 | macro/C | SYSTEM_MACRO | c:@macro@SYSTEM_MACRO | Def
47 #define SYSTEM_MACRO int fromSystemMacro = 1
49 // CHECK-NOT: [[@LINE+2]]:1 | macro/C
50 // CHECK: [[@LINE+1]]:1 | variable/C | fromSystemMacro
51 SYSTEM_MACRO;