Skip to content

Commit 4de5627

Browse files
cpp
1 parent aa4857f commit 4de5627

33 files changed

+592
-257
lines changed

data/fixtures/scopes/c/interior/interior.class5.scope

Lines changed: 0 additions & 31 deletions
This file was deleted.

data/fixtures/scopes/c/interior/interior.class6.scope

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
enum Foo { };
2+
---
3+
4+
[#1 Content] =
5+
[#1 Removal] = 0:10-0:11
6+
>-<
7+
0| enum Foo { };
8+
9+
[#1 Domain] = 0:0-0:13
10+
>-------------<
11+
0| enum Foo { };
12+
13+
[#1 Insertion delimiter] = " "
14+
15+
16+
[#2 Content] =
17+
[#2 Removal] = 0:10-0:11
18+
>-<
19+
0| enum Foo { };
20+
21+
[#2 Domain] = 0:9-0:12
22+
>---<
23+
0| enum Foo { };
24+
25+
[#2 Insertion delimiter] = " "
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
typedef enum { } Foo;
2+
---
3+
4+
[#1 Content] =
5+
[#1 Removal] = 0:14-0:15
6+
>-<
7+
0| typedef enum { } Foo;
8+
9+
[#1 Domain] = 0:0-0:21
10+
>---------------------<
11+
0| typedef enum { } Foo;
12+
13+
[#1 Insertion delimiter] = " "
14+
15+
16+
[#2 Content] =
17+
[#2 Removal] = 0:14-0:15
18+
>-<
19+
0| typedef enum { } Foo;
20+
21+
[#2 Domain] = 0:13-0:16
22+
>---<
23+
0| typedef enum { } Foo;
24+
25+
[#2 Insertion delimiter] = " "
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
enum Foo {};
2+
---
3+
4+
[Content] = 0:5-0:8
5+
>---<
6+
0| enum Foo {};
7+
8+
[Removal] = 0:5-0:9
9+
>----<
10+
0| enum Foo {};
11+
12+
[Leading delimiter] = 0:4-0:5
13+
>-<
14+
0| enum Foo {};
15+
16+
[Trailing delimiter] = 0:8-0:9
17+
>-<
18+
0| enum Foo {};
19+
20+
[Domain] = 0:0-0:12
21+
>------------<
22+
0| enum Foo {};
23+
24+
[Insertion delimiter] = " "
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
typedef enum {} Foo;
2+
---
3+
4+
[Content] = 0:16-0:19
5+
>---<
6+
0| typedef enum {} Foo;
7+
8+
[Removal] = 0:15-0:19
9+
>----<
10+
0| typedef enum {} Foo;
11+
12+
[Leading delimiter] = 0:15-0:16
13+
>-<
14+
0| typedef enum {} Foo;
15+
16+
[Domain] = 0:0-0:20
17+
>--------------------<
18+
0| typedef enum {} Foo;
19+
20+
[Insertion delimiter] = " "
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
enum Foo {
2+
bar = 0,
3+
baz = 1,
4+
bongo
5+
}
6+
---
7+
8+
[#1 Content] = 0:5-0:8
9+
>---<
10+
0| enum Foo {
11+
12+
[#1 Removal] = 0:5-0:9
13+
>----<
14+
0| enum Foo {
15+
16+
[#1 Leading delimiter] = 0:4-0:5
17+
>-<
18+
0| enum Foo {
19+
20+
[#1 Trailing delimiter] = 0:8-0:9
21+
>-<
22+
0| enum Foo {
23+
24+
[#1 Domain] = 0:0-4:1
25+
>----------
26+
0| enum Foo {
27+
1| bar = 0,
28+
2| baz = 1,
29+
3| bongo
30+
4| }
31+
-<
32+
33+
[#1 Insertion delimiter] = " "
34+
35+
36+
[#2 Content] = 1:4-1:7
37+
>---<
38+
1| bar = 0,
39+
40+
[#2 Removal] = 1:4-1:8
41+
>----<
42+
1| bar = 0,
43+
44+
[#2 Leading delimiter] = 1:0-1:4
45+
>----<
46+
1| bar = 0,
47+
48+
[#2 Trailing delimiter] = 1:7-1:8
49+
>-<
50+
1| bar = 0,
51+
52+
[#2 Domain] = 1:4-1:11
53+
>-------<
54+
1| bar = 0,
55+
56+
[#2 Insertion delimiter] = " "
57+
58+
59+
[#3 Content] = 2:4-2:7
60+
>---<
61+
2| baz = 1,
62+
63+
[#3 Removal] = 2:4-2:8
64+
>----<
65+
2| baz = 1,
66+
67+
[#3 Leading delimiter] = 2:0-2:4
68+
>----<
69+
2| baz = 1,
70+
71+
[#3 Trailing delimiter] = 2:7-2:8
72+
>-<
73+
2| baz = 1,
74+
75+
[#3 Domain] = 2:4-2:11
76+
>-------<
77+
2| baz = 1,
78+
79+
[#3 Insertion delimiter] = " "
80+
81+
82+
[#4 Content] =
83+
[#4 Domain] = 3:4-3:9
84+
>-----<
85+
3| bongo
86+
87+
[#4 Removal] = 3:0-4:0
88+
>---------
89+
3| bongo
90+
4| }
91+
<
92+
93+
[#4 Leading delimiter] = 3:0-3:4
94+
>----<
95+
3| bongo
96+
97+
[#4 Insertion delimiter] = " "
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
enum Foo { };
2+
---
3+
4+
[#1 Range] =
5+
[#1 Domain] = 0:0-0:13
6+
>-------------<
7+
0| enum Foo { };
8+
9+
10+
[#2 Range] =
11+
[#2 Domain] = 0:10-0:11
12+
>-<
13+
0| enum Foo { };
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
enum Foo {};
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:12
7+
>------------<
8+
0| enum Foo {};
9+
10+
[Insertion delimiter] = "\n"
Lines changed: 6 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,10 @@
1-
struct aaa {};
2-
union bbb {};
3-
enum ccc {};
4-
5-
typedef struct {} ggg;
6-
typedef union {} iii;
7-
typedef enum {} lll;
1+
struct Foo {};
82
---
93

10-
[#1 Content] =
11-
[#1 Domain] = 0:0-0:14
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:14
127
>--------------<
13-
0| struct aaa {};
14-
15-
[#1 Removal] = 0:0-1:0
16-
>--------------
17-
0| struct aaa {};
18-
1| union bbb {};
19-
<
20-
21-
[#1 Insertion delimiter] = " "
22-
23-
24-
[#2 Content] =
25-
[#2 Domain] = 1:0-1:13
26-
>-------------<
27-
1| union bbb {};
28-
29-
[#2 Removal] = 1:0-2:0
30-
>-------------
31-
1| union bbb {};
32-
2| enum ccc {};
33-
<
34-
35-
[#2 Insertion delimiter] = " "
36-
37-
38-
[#3 Content] =
39-
[#3 Domain] = 2:0-2:12
40-
>------------<
41-
2| enum ccc {};
42-
43-
[#3 Removal] = 2:0-3:0
44-
>------------
45-
2| enum ccc {};
46-
3|
47-
<
48-
49-
[#3 Insertion delimiter] = " "
50-
51-
52-
[#4 Content] =
53-
[#4 Domain] = 4:0-4:22
54-
>----------------------<
55-
4| typedef struct {} ggg;
56-
57-
[#4 Removal] = 4:0-5:0
58-
>----------------------
59-
4| typedef struct {} ggg;
60-
5| typedef union {} iii;
61-
<
62-
63-
[#4 Insertion delimiter] = " "
64-
65-
66-
[#5 Content] =
67-
[#5 Domain] = 5:0-5:21
68-
>---------------------<
69-
5| typedef union {} iii;
70-
71-
[#5 Removal] = 5:0-6:0
72-
>---------------------
73-
5| typedef union {} iii;
74-
6| typedef enum {} lll;
75-
<
76-
77-
[#5 Insertion delimiter] = " "
78-
79-
80-
[#6 Content] =
81-
[#6 Domain] = 6:0-6:20
82-
>--------------------<
83-
6| typedef enum {} lll;
84-
85-
[#6 Removal] = 5:21-6:20
86-
>
87-
5| typedef union {} iii;
88-
6| typedef enum {} lll;
89-
--------------------<
8+
0| struct Foo {};
909

91-
[#6 Insertion delimiter] = " "
10+
[Insertion delimiter] = " "

0 commit comments

Comments
 (0)