Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit e089613

Browse files
author
Juanjo Alvarez
committed
Update fixtures
Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent 24914b5 commit e089613

File tree

63 files changed

+40219
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+40219
-0
lines changed

fixtures/array.cpp.sem.uast

Lines changed: 1361 additions & 0 deletions
Large diffs are not rendered by default.

fixtures/array_initilizer.cpp.sem.uast

Lines changed: 505 additions & 0 deletions
Large diffs are not rendered by default.

fixtures/asm.cpp.sem.uast

Lines changed: 455 additions & 0 deletions
Large diffs are not rendered by default.

fixtures/bitfield.cpp.sem.uast

Lines changed: 345 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,345 @@
1+
{ '@type': "CPPASTTranslationUnit",
2+
'@role': [File, Module],
3+
'@pos': { '@type': "uast:Positions",
4+
start: { '@type': "uast:Position",
5+
offset: 0,
6+
line: 1,
7+
col: 1,
8+
},
9+
end: { '@type': "uast:Position",
10+
offset: 109,
11+
line: 7,
12+
col: 1,
13+
},
14+
},
15+
'Prop_BuiltinMacroDefinitions': [],
16+
'Prop_Declarations': [
17+
{ '@type': "CPPASTSimpleDeclaration",
18+
'@role': [Declaration, Statement],
19+
'@pos': { '@type': "uast:Positions",
20+
start: { '@type': "uast:Position",
21+
offset: 0,
22+
line: 1,
23+
col: 1,
24+
},
25+
end: { '@type': "uast:Position",
26+
offset: 108,
27+
line: 6,
28+
col: 3,
29+
},
30+
},
31+
'Prop_DeclSpecifier': { '@type': "CPPASTCompositeTypeSpecifier",
32+
'@role': [Declaration, Type],
33+
'@pos': { '@type': "uast:Positions",
34+
start: { '@type': "uast:Position",
35+
offset: 0,
36+
line: 1,
37+
col: 1,
38+
},
39+
end: { '@type': "uast:Position",
40+
offset: 107,
41+
line: 6,
42+
col: 2,
43+
},
44+
},
45+
IsFinal: false,
46+
Key: "struct",
47+
'Prop_Members': [
48+
{ '@type': "CPPASTSimpleDeclaration",
49+
'@role': [Declaration, Statement, Type],
50+
'@pos': { '@type': "uast:Positions",
51+
start: { '@type': "uast:Position",
52+
offset: 18,
53+
line: 2,
54+
col: 5,
55+
},
56+
end: { '@type': "uast:Position",
57+
offset: 35,
58+
line: 2,
59+
col: 22,
60+
},
61+
},
62+
'Prop_Declarators': [
63+
{ '@type': "CPPASTFieldDeclarator",
64+
'@role': [Declaration, Incomplete, Type],
65+
'@pos': { '@type': "uast:Positions",
66+
start: { '@type': "uast:Position",
67+
offset: 22,
68+
line: 2,
69+
col: 9,
70+
},
71+
end: { '@type': "uast:Position",
72+
offset: 34,
73+
line: 2,
74+
col: 21,
75+
},
76+
},
77+
DeclaresParameterPack: false,
78+
'Prop_BitFieldSize': { '@type': "CPPASTLiteralExpression",
79+
'@token': "31",
80+
'@role': [Declaration, Expression, Incomplete, Literal, Number, Type],
81+
'@pos': { '@type': "uast:Positions",
82+
start: { '@type': "uast:Position",
83+
offset: 32,
84+
line: 2,
85+
col: 19,
86+
},
87+
end: { '@type': "uast:Position",
88+
offset: 34,
89+
line: 2,
90+
col: 21,
91+
},
92+
},
93+
ExpressionType: "int",
94+
ExpressionValueCategory: "PRVALUE",
95+
IsLValue: false,
96+
kind: "integer_constant",
97+
},
98+
'Prop_Name': { '@type': "CPPASTName",
99+
'@token': "bigfield1",
100+
'@role': [Identifier],
101+
'@pos': { '@type': "uast:Positions",
102+
start: { '@type': "uast:Position",
103+
offset: 22,
104+
line: 2,
105+
col: 9,
106+
},
107+
end: { '@type': "uast:Position",
108+
offset: 31,
109+
line: 2,
110+
col: 18,
111+
},
112+
},
113+
},
114+
},
115+
],
116+
},
117+
{ '@type': "CPPASTSimpleDeclaration",
118+
'@role': [Declaration, Statement, Type],
119+
'@pos': { '@type': "uast:Positions",
120+
start: { '@type': "uast:Position",
121+
offset: 40,
122+
line: 3,
123+
col: 5,
124+
},
125+
end: { '@type': "uast:Position",
126+
offset: 59,
127+
line: 3,
128+
col: 24,
129+
},
130+
},
131+
'Prop_Declarators': [
132+
{ '@type': "CPPASTFieldDeclarator",
133+
'@role': [Declaration, Incomplete, Type],
134+
'@pos': { '@type': "uast:Positions",
135+
start: { '@type': "uast:Position",
136+
offset: 44,
137+
line: 3,
138+
col: 9,
139+
},
140+
end: { '@type': "uast:Position",
141+
offset: 58,
142+
line: 3,
143+
col: 23,
144+
},
145+
},
146+
DeclaresParameterPack: false,
147+
'Prop_BitFieldSize': { '@type': "CPPASTLiteralExpression",
148+
'@token': "1",
149+
'@role': [Declaration, Expression, Incomplete, Literal, Number, Type],
150+
'@pos': { '@type': "uast:Positions",
151+
start: { '@type': "uast:Position",
152+
offset: 57,
153+
line: 3,
154+
col: 22,
155+
},
156+
end: { '@type': "uast:Position",
157+
offset: 58,
158+
line: 3,
159+
col: 23,
160+
},
161+
},
162+
ExpressionType: "int",
163+
ExpressionValueCategory: "PRVALUE",
164+
IsLValue: false,
165+
kind: "integer_constant",
166+
},
167+
'Prop_Name': { '@type': "CPPASTName",
168+
'@token': "littlefield1",
169+
'@role': [Identifier],
170+
'@pos': { '@type': "uast:Positions",
171+
start: { '@type': "uast:Position",
172+
offset: 44,
173+
line: 3,
174+
col: 9,
175+
},
176+
end: { '@type': "uast:Position",
177+
offset: 56,
178+
line: 3,
179+
col: 21,
180+
},
181+
},
182+
},
183+
},
184+
],
185+
},
186+
{ '@type': "CPPASTSimpleDeclaration",
187+
'@role': [Declaration, Statement, Type],
188+
'@pos': { '@type': "uast:Positions",
189+
start: { '@type': "uast:Position",
190+
offset: 64,
191+
line: 4,
192+
col: 5,
193+
},
194+
end: { '@type': "uast:Position",
195+
offset: 81,
196+
line: 4,
197+
col: 22,
198+
},
199+
},
200+
'Prop_Declarators': [
201+
{ '@type': "CPPASTFieldDeclarator",
202+
'@role': [Declaration, Incomplete, Type],
203+
'@pos': { '@type': "uast:Positions",
204+
start: { '@type': "uast:Position",
205+
offset: 68,
206+
line: 4,
207+
col: 9,
208+
},
209+
end: { '@type': "uast:Position",
210+
offset: 80,
211+
line: 4,
212+
col: 21,
213+
},
214+
},
215+
DeclaresParameterPack: false,
216+
'Prop_BitFieldSize': { '@type': "CPPASTLiteralExpression",
217+
'@token': "31",
218+
'@role': [Declaration, Expression, Incomplete, Literal, Number, Type],
219+
'@pos': { '@type': "uast:Positions",
220+
start: { '@type': "uast:Position",
221+
offset: 78,
222+
line: 4,
223+
col: 19,
224+
},
225+
end: { '@type': "uast:Position",
226+
offset: 80,
227+
line: 4,
228+
col: 21,
229+
},
230+
},
231+
ExpressionType: "int",
232+
ExpressionValueCategory: "PRVALUE",
233+
IsLValue: false,
234+
kind: "integer_constant",
235+
},
236+
'Prop_Name': { '@type': "CPPASTName",
237+
'@token': "bigfield2",
238+
'@role': [Identifier],
239+
'@pos': { '@type': "uast:Positions",
240+
start: { '@type': "uast:Position",
241+
offset: 68,
242+
line: 4,
243+
col: 9,
244+
},
245+
end: { '@type': "uast:Position",
246+
offset: 77,
247+
line: 4,
248+
col: 18,
249+
},
250+
},
251+
},
252+
},
253+
],
254+
},
255+
{ '@type': "CPPASTSimpleDeclaration",
256+
'@role': [Declaration, Statement, Type],
257+
'@pos': { '@type': "uast:Positions",
258+
start: { '@type': "uast:Position",
259+
offset: 86,
260+
line: 5,
261+
col: 5,
262+
},
263+
end: { '@type': "uast:Position",
264+
offset: 105,
265+
line: 5,
266+
col: 24,
267+
},
268+
},
269+
'Prop_Declarators': [
270+
{ '@type': "CPPASTFieldDeclarator",
271+
'@role': [Declaration, Incomplete, Type],
272+
'@pos': { '@type': "uast:Positions",
273+
start: { '@type': "uast:Position",
274+
offset: 90,
275+
line: 5,
276+
col: 9,
277+
},
278+
end: { '@type': "uast:Position",
279+
offset: 104,
280+
line: 5,
281+
col: 23,
282+
},
283+
},
284+
DeclaresParameterPack: false,
285+
'Prop_BitFieldSize': { '@type': "CPPASTLiteralExpression",
286+
'@token': "1",
287+
'@role': [Declaration, Expression, Incomplete, Literal, Number, Type],
288+
'@pos': { '@type': "uast:Positions",
289+
start: { '@type': "uast:Position",
290+
offset: 103,
291+
line: 5,
292+
col: 22,
293+
},
294+
end: { '@type': "uast:Position",
295+
offset: 104,
296+
line: 5,
297+
col: 23,
298+
},
299+
},
300+
ExpressionType: "int",
301+
ExpressionValueCategory: "PRVALUE",
302+
IsLValue: false,
303+
kind: "integer_constant",
304+
},
305+
'Prop_Name': { '@type': "CPPASTName",
306+
'@token': "littlefield2",
307+
'@role': [Identifier],
308+
'@pos': { '@type': "uast:Positions",
309+
start: { '@type': "uast:Position",
310+
offset: 90,
311+
line: 5,
312+
col: 9,
313+
},
314+
end: { '@type': "uast:Position",
315+
offset: 102,
316+
line: 5,
317+
col: 21,
318+
},
319+
},
320+
},
321+
},
322+
],
323+
},
324+
],
325+
'Prop_Name': { '@type': "CPPASTName",
326+
'@token': "foo8",
327+
'@role': [Identifier],
328+
'@pos': { '@type': "uast:Positions",
329+
start: { '@type': "uast:Position",
330+
offset: 7,
331+
line: 1,
332+
col: 8,
333+
},
334+
end: { '@type': "uast:Position",
335+
offset: 11,
336+
line: 1,
337+
col: 12,
338+
},
339+
},
340+
},
341+
StorageClass: "unspecified",
342+
},
343+
},
344+
],
345+
}

0 commit comments

Comments
 (0)