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

Commit 456c612

Browse files
author
Juanjo Alvarez
committed
Removed unneded fields and visitors that only visited them. Added more tests.
Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
1 parent 2911a87 commit 456c612

202 files changed

Lines changed: 20400 additions & 155640 deletions

File tree

Some content is hidden

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

fixtures/_integration.cpp.legacy

Lines changed: 16 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ CPPASTTranslationUnit {
1313
. Properties: {
1414
. . IsActive: true
1515
. . IsFrozen: true
16-
. . Snippet: #include <iostream> ...
1716
. }
1817
. Children: {
1918
. . 0: CPPASTUsingDirective {
@@ -29,13 +28,10 @@ CPPASTTranslationUnit {
2928
. . . . Col: 21
3029
. . . }
3130
. . . Properties: {
32-
. . . . Attribute_Specifier: IASTAttributeOwner.ATTRIBUTE_SPECIFIER
3331
. . . . IsActive: true
3432
. . . . IsFrozen: true
35-
. . . . Qualified_Name: ICPPASTUsingDirective.QUALIFIED_NAME - Name brought into local scope
3633
. . . . Role: IASTTranslationUnit.OWNED_DECLARATION - IASTDeclaration for IASTTranslationUnit
37-
. . . . Snippet: using namespace std;...
38-
. . . . internalRole: childs
34+
. . . . internalRole: IASTTranslationUnit.OWNED_DECLARATION
3935
. . . }
4036
. . . Children: {
4137
. . . . 0: CPPASTName {
@@ -56,8 +52,7 @@ CPPASTTranslationUnit {
5652
. . . . . . IsQualified: false
5753
. . . . . . Name: std
5854
. . . . . . Role: ICPPASTUsingDirective.QUALIFIED_NAME - Name brought into local scope
59-
. . . . . . Snippet: std
60-
. . . . . . internalRole: childs
55+
. . . . . . internalRole: ICPPASTUsingDirective.QUALIFIED_NAME
6156
. . . . . }
6257
. . . . }
6358
. . . }
@@ -75,18 +70,12 @@ CPPASTTranslationUnit {
7570
. . . . Col: 2
7671
. . . }
7772
. . . Properties: {
78-
. . . . Attribute_Specifier: IASTAttributeOwner.ATTRIBUTE_SPECIFIER
79-
. . . . Decl_Specifier: IASTFunctionDefinition.DECL_SPECIFIER - IASTDeclSpecifier for IASTFunctionDefinition
80-
. . . . Declarator: IASTFunctionDefinition.DECLARATOR - IASTFunctionDeclarator for IASTFunctionDefinition
81-
. . . . Function_Body: IASTFunctionDefinition.FUNCTION_BODY - Function Body for IASTFunctionDefinition
8273
. . . . IsActive: true
8374
. . . . IsDefaulted: false
8475
. . . . IsDeleted: false
8576
. . . . IsFrozen: true
86-
. . . . Member_Initializer: ICPPASTFunctionDefinition.MEMBER_INITIALIZER - Role of a member initializer
8777
. . . . Role: IASTTranslationUnit.OWNED_DECLARATION - IASTDeclaration for IASTTranslationUnit
88-
. . . . Snippet: int main() { c...
89-
. . . . internalRole: childs
78+
. . . . internalRole: IASTTranslationUnit.OWNED_DECLARATION
9079
. . . }
9180
. . . Children: {
9281
. . . . 0: CPPASTSimpleDeclSpecifier {
@@ -102,8 +91,6 @@ CPPASTTranslationUnit {
10291
. . . . . . Col: 4
10392
. . . . . }
10493
. . . . . Properties: {
105-
. . . . . . Attribute_Specifier: IASTAttributeOwner.ATTRIBUTE_SPECIFIER
106-
. . . . . . DECLTYPE_EXPRESSION: IASTSimpleDeclSpecifier.EXPRESSION [IASTExpression]
10794
. . . . . . IsActive: true
10895
. . . . . . IsComplex: false
10996
. . . . . . IsConst: false
@@ -123,10 +110,9 @@ CPPASTTranslationUnit {
123110
. . . . . . IsVirtual: false
124111
. . . . . . IsVolatile: false
125112
. . . . . . Role: IASTFunctionDefinition.DECL_SPECIFIER - IASTDeclSpecifier for IASTFunctionDefinition
126-
. . . . . . Snippet: int
127113
. . . . . . StorageClass: unspecified
128114
. . . . . . Type: int
129-
. . . . . . internalRole: childs
115+
. . . . . . internalRole: IASTFunctionDefinition.DECL_SPECIFIER
130116
. . . . . }
131117
. . . . }
132118
. . . . 1: CPPASTFunctionDeclarator {
@@ -142,12 +128,7 @@ CPPASTTranslationUnit {
142128
. . . . . . Col: 11
143129
. . . . . }
144130
. . . . . Properties: {
145-
. . . . . . Attribute_Specifier: IASTAttributeOwner.ATTRIBUTE_SPECIFIER
146-
. . . . . . DECLARATOR_NAME: IASTDeclarator.DECLARATOR_NAME - IASTName for IASTDeclarator
147131
. . . . . . DeclaresParameterPack: false
148-
. . . . . . EXCEPTION_TYPEID: ICPPASTFunctionDeclarator.EXCEPTION_TYPEID [IASTTypeId]
149-
. . . . . . FUNCTION_PARAMETER: IASTStandardFunctionDeclarator.FUNCTION_PARAMETER - IASTParameterDeclaration for IASTStandardFunctionDeclarator
150-
. . . . . . INITIALIZER: IASTDeclarator.INITIALIZER - IASTInitializer for IASTDeclarator
151132
. . . . . . IsActive: true
152133
. . . . . . IsConst: false
153134
. . . . . . IsFinal: false
@@ -156,15 +137,9 @@ CPPASTTranslationUnit {
156137
. . . . . . IsOverride: false
157138
. . . . . . IsPureVirtual: false
158139
. . . . . . IsVolatile: false
159-
. . . . . . NESTED_DECLARATOR: IASTDeclarator.NESTED_DECLARATOR - Nested IASTDeclarator
160-
. . . . . . NOEXCEPT_EXPRESSION: ICPPASTFunctionDeclarator.NOEXCEPT_EXPRESSION [ICPPASTExpression]
161-
. . . . . . POINTER_OPERATOR: IASTDeclarator.POINTER_OPERATOR - IASTPointerOperator for IASTDeclarator
162140
. . . . . . Role: IASTFunctionDefinition.DECLARATOR - IASTFunctionDeclarator for IASTFunctionDefinition
163-
. . . . . . Snippet: main()
164-
. . . . . . TRAILING_RETURN_TYPE: ICPPASTFunctionDeclarator.TRAILING_RETURN_TYPE [IASTTypeId]
165141
. . . . . . TakesVarArgs: false
166-
. . . . . . VIRT_SPECIFIER: ICPPASTFunctionDeclarator.VIRT_SPECIFIER [ICPPASTVirtSpecifier]
167-
. . . . . . internalRole: childs
142+
. . . . . . internalRole: IASTFunctionDefinition.DECLARATOR
168143
. . . . . }
169144
. . . . . Children: {
170145
. . . . . . 0: CPPASTName {
@@ -185,8 +160,7 @@ CPPASTTranslationUnit {
185160
. . . . . . . . IsQualified: false
186161
. . . . . . . . Name: main
187162
. . . . . . . . Role: IASTDeclarator.DECLARATOR_NAME - IASTName for IASTDeclarator
188-
. . . . . . . . Snippet: main
189-
. . . . . . . . internalRole: childs
163+
. . . . . . . . internalRole: IASTDeclarator.DECLARATOR_NAME
190164
. . . . . . . }
191165
. . . . . . }
192166
. . . . . }
@@ -204,13 +178,10 @@ CPPASTTranslationUnit {
204178
. . . . . . Col: 2
205179
. . . . . }
206180
. . . . . Properties: {
207-
. . . . . . Attribute_Specifier: IASTAttributeOwner.ATTRIBUTE_SPECIFIER
208181
. . . . . . IsActive: true
209182
. . . . . . IsFrozen: true
210-
. . . . . . NESTED_STATEMENT: IASTCompoundStatement.NESTED_STATEMENT - nested IASTStatement for IASTCompoundStatement
211183
. . . . . . Role: IASTFunctionDefinition.FUNCTION_BODY - Function Body for IASTFunctionDefinition
212-
. . . . . . Snippet: { cout << "Hell...
213-
. . . . . . internalRole: childs
184+
. . . . . . internalRole: IASTFunctionDefinition.FUNCTION_BODY
214185
. . . . . }
215186
. . . . . Children: {
216187
. . . . . . 0: CPPASTExpressionStatement {
@@ -226,13 +197,10 @@ CPPASTTranslationUnit {
226197
. . . . . . . . Col: 29
227198
. . . . . . . }
228199
. . . . . . . Properties: {
229-
. . . . . . . . Attribute_Specifier: IASTAttributeOwner.ATTRIBUTE_SPECIFIER
230-
. . . . . . . . EXPRESSION: IASTExpressionStatement.EXPRESSION - IASTExpression for IASTExpressionStatement
231200
. . . . . . . . IsActive: true
232201
. . . . . . . . IsFrozen: true
233202
. . . . . . . . Role: IASTCompoundStatement.NESTED_STATEMENT - nested IASTStatement for IASTCompoundStatement
234-
. . . . . . . . Snippet: cout << "Hello, Worl...
235-
. . . . . . . . internalRole: childs
203+
. . . . . . . . internalRole: IASTCompoundStatement.NESTED_STATEMENT
236204
. . . . . . . }
237205
. . . . . . . Children: {
238206
. . . . . . . . 0: CPPASTBinaryExpression {
@@ -248,15 +216,14 @@ CPPASTTranslationUnit {
248216
. . . . . . . . . . Col: 28
249217
. . . . . . . . . }
250218
. . . . . . . . . Properties: {
251-
. . . . . . . . . . ExpressionType: org.eclipse.cdt.internal.core.dom.parser.ProblemType@619713e5
219+
. . . . . . . . . . ExpressionType: org.eclipse.cdt.internal.core.dom.parser.ProblemType@28eaa59a
252220
. . . . . . . . . . ExpressionValueCategory: PRVALUE
253221
. . . . . . . . . . IsActive: true
254222
. . . . . . . . . . IsFrozen: true
255223
. . . . . . . . . . IsLValue: false
256224
. . . . . . . . . . Operator: left <<
257225
. . . . . . . . . . Role: IASTExpressionStatement.EXPRESSION - IASTExpression for IASTExpressionStatement
258-
. . . . . . . . . . Snippet: cout << "Hello, Worl...
259-
. . . . . . . . . . internalRole: childs
226+
. . . . . . . . . . internalRole: IASTExpressionStatement.EXPRESSION
260227
. . . . . . . . . }
261228
. . . . . . . . . Children: {
262229
. . . . . . . . . . 0: CPPASTIdExpression {
@@ -272,15 +239,13 @@ CPPASTTranslationUnit {
272239
. . . . . . . . . . . . Col: 9
273240
. . . . . . . . . . . }
274241
. . . . . . . . . . . Properties: {
275-
. . . . . . . . . . . . ExpressionType: org.eclipse.cdt.internal.core.dom.parser.ProblemType@619713e5
242+
. . . . . . . . . . . . ExpressionType: org.eclipse.cdt.internal.core.dom.parser.ProblemType@28eaa59a
276243
. . . . . . . . . . . . ExpressionValueCategory: PRVALUE
277-
. . . . . . . . . . . . ID_NAME: IASTIdExpression.ID_NAME - IASTName for IASTIdExpression
278244
. . . . . . . . . . . . IsActive: true
279245
. . . . . . . . . . . . IsFrozen: true
280246
. . . . . . . . . . . . IsLValue: false
281247
. . . . . . . . . . . . Role: IASTBinaryExpression.OPERAND_ONE - IASTExpression for LHS
282-
. . . . . . . . . . . . Snippet: cout
283-
. . . . . . . . . . . . internalRole: childs
248+
. . . . . . . . . . . . internalRole: IASTBinaryExpression.OPERAND_ONE
284249
. . . . . . . . . . . }
285250
. . . . . . . . . . . Children: {
286251
. . . . . . . . . . . . 0: CPPASTName {
@@ -301,8 +266,7 @@ CPPASTTranslationUnit {
301266
. . . . . . . . . . . . . . IsQualified: false
302267
. . . . . . . . . . . . . . Name: cout
303268
. . . . . . . . . . . . . . Role: IASTIdExpression.ID_NAME - IASTName for IASTIdExpression
304-
. . . . . . . . . . . . . . Snippet: cout
305-
. . . . . . . . . . . . . . internalRole: childs
269+
. . . . . . . . . . . . . . internalRole: IASTIdExpression.ID_NAME
306270
. . . . . . . . . . . . . }
307271
. . . . . . . . . . . . }
308272
. . . . . . . . . . . }
@@ -327,8 +291,7 @@ CPPASTTranslationUnit {
327291
. . . . . . . . . . . . IsLValue: true
328292
. . . . . . . . . . . . LiteralValue: "Hello, World!"
329293
. . . . . . . . . . . . Role: IASTBinaryExpression.OPERAND_TWO - IASTExpression for RHS
330-
. . . . . . . . . . . . Snippet: "Hello, World!"
331-
. . . . . . . . . . . . internalRole: childs
294+
. . . . . . . . . . . . internalRole: IASTBinaryExpression.OPERAND_TWO
332295
. . . . . . . . . . . . kind: string_literal
333296
. . . . . . . . . . . }
334297
. . . . . . . . . . }
@@ -349,13 +312,10 @@ CPPASTTranslationUnit {
349312
. . . . . . . . Col: 14
350313
. . . . . . . }
351314
. . . . . . . Properties: {
352-
. . . . . . . . Attribute_Specifier: IASTAttributeOwner.ATTRIBUTE_SPECIFIER
353315
. . . . . . . . IsActive: true
354316
. . . . . . . . IsFrozen: true
355-
. . . . . . . . RETURNVALUE: IASTReturnValue.RETURNVALUE - [IASTInitializerClause]
356317
. . . . . . . . Role: IASTCompoundStatement.NESTED_STATEMENT - nested IASTStatement for IASTCompoundStatement
357-
. . . . . . . . Snippet: return 0;
358-
. . . . . . . . internalRole: childs
318+
. . . . . . . . internalRole: IASTCompoundStatement.NESTED_STATEMENT
359319
. . . . . . . }
360320
. . . . . . . Children: {
361321
. . . . . . . . 0: CPPASTLiteralExpression {
@@ -378,8 +338,7 @@ CPPASTTranslationUnit {
378338
. . . . . . . . . . IsLValue: false
379339
. . . . . . . . . . LiteralValue: 0
380340
. . . . . . . . . . Role: IASTReturnValue.RETURNVALUE - [IASTInitializerClause]
381-
. . . . . . . . . . Snippet: 0
382-
. . . . . . . . . . internalRole: childs
341+
. . . . . . . . . . internalRole: IASTReturnValue.RETURNVALUE
383342
. . . . . . . . . . kind: integer_constant
384343
. . . . . . . . . }
385344
. . . . . . . . }

0 commit comments

Comments
 (0)