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

Commit f29d86e

Browse files
author
Juanjo Alvarez
committed
SDK Update: namespaces and syntax error check disabled
Update fixtures. Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent 2c906e7 commit f29d86e

File tree

72 files changed

+2981
-1172473
lines changed

Some content is hidden

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

72 files changed

+2981
-1172473
lines changed

Gopkg.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# for detailed Gopkg.toml documentation.
33

44
[[constraint]]
5-
version = "v2.4.x"
5+
version = "v2.6.x"
66
name = "gopkg.in/bblfsh/sdk.v2"
77

88
[prune]

driver/normalizer/transforms.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package normalizer
33
import "gopkg.in/bblfsh/sdk.v2/driver"
44

55
var Transforms = driver.Transforms{
6+
Namespace: "cpp",
67
Preprocess: Preprocess,
78
Normalize: Normalize,
89
Annotations: Native,

fixtures/_integration.cpp.sem.uast

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ '@type': "CPPASTTranslationUnit",
1+
{ '@type': "cpp:CPPASTTranslationUnit",
22
'@role': [File, Module],
33
'@pos': { '@type': "uast:Positions",
44
start: { '@type': "uast:Position",
@@ -15,7 +15,7 @@
1515
'Prop_AllPreprocessorStatements': [],
1616
'Prop_BuiltinMacroDefinitions': [],
1717
'Prop_Declarations': [
18-
{ '@type': "CPPASTFunctionDefinition",
18+
{ '@type': "cpp:CPPASTFunctionDefinition",
1919
'@role': [Declaration, Function],
2020
'@pos': { '@type': "uast:Positions",
2121
start: { '@type': "uast:Position",
@@ -31,7 +31,7 @@
3131
},
3232
IsDefaulted: false,
3333
IsDeleted: false,
34-
'Prop_Body': { '@type': "CPPASTCompoundStatement",
34+
'Prop_Body': { '@type': "cpp:CPPASTCompoundStatement",
3535
'@role': [Body, Declaration, Function],
3636
'@pos': { '@type': "uast:Positions",
3737
start: { '@type': "uast:Position",
@@ -46,7 +46,7 @@
4646
},
4747
},
4848
'Prop_Statements': [
49-
{ '@type': "CPPASTExpressionStatement",
49+
{ '@type': "cpp:CPPASTExpressionStatement",
5050
'@role': [Expression],
5151
'@pos': { '@type': "uast:Positions",
5252
start: { '@type': "uast:Position",
@@ -60,7 +60,7 @@
6060
col: 34,
6161
},
6262
},
63-
'Prop_Expression': { '@type': "CPPASTBinaryExpression",
63+
'Prop_Expression': { '@type': "cpp:CPPASTBinaryExpression",
6464
'@token': "<<",
6565
'@role': [Binary, Bitwise, Expression, LeftShift],
6666
'@pos': { '@type': "uast:Positions",
@@ -78,7 +78,7 @@
7878
ExpressionType: "org.eclipse.cdt.internal.core.dom.parser.ProblemType",
7979
ExpressionValueCategory: "PRVALUE",
8080
IsLValue: false,
81-
'Prop_Operand1': { '@type': "CPPASTIdExpression",
81+
'Prop_Operand1': { '@type': "cpp:CPPASTIdExpression",
8282
'@role': [Binary, Expression, Left, Variable],
8383
'@pos': { '@type': "uast:Positions",
8484
start: { '@type': "uast:Position",
@@ -95,7 +95,7 @@
9595
ExpressionType: "org.eclipse.cdt.internal.core.dom.parser.ProblemType",
9696
ExpressionValueCategory: "PRVALUE",
9797
IsLValue: false,
98-
'Prop_Name': { '@type': "CPPASTQualifiedName",
98+
'Prop_Name': { '@type': "cpp:CPPASTQualifiedName",
9999
'@role': [Qualified],
100100
'@pos': { '@type': "uast:Positions",
101101
start: { '@type': "uast:Position",
@@ -113,7 +113,7 @@
113113
IsFullyQualified: false,
114114
Name: "std::cout",
115115
'Prop_AllSegments': [
116-
{ '@type': "CPPASTName",
116+
{ '@type': "cpp:CPPASTName",
117117
'@token': "std",
118118
'@role': [Identifier, Qualified],
119119
'@pos': { '@type': "uast:Positions",
@@ -129,7 +129,7 @@
129129
},
130130
},
131131
},
132-
{ '@type': "CPPASTName",
132+
{ '@type': "cpp:CPPASTName",
133133
'@token': "cout",
134134
'@role': [Identifier, Qualified],
135135
'@pos': { '@type': "uast:Positions",
@@ -148,7 +148,7 @@
148148
},
149149
],
150150
'Prop_Qualifier': [
151-
{ '@type': "CPPASTName",
151+
{ '@type': "cpp:CPPASTName",
152152
'@token': "std",
153153
'@role': [Identifier],
154154
'@pos': { '@type': "uast:Positions",
@@ -167,7 +167,7 @@
167167
],
168168
},
169169
},
170-
'Prop_Operand2': { '@type': "CPPASTLiteralExpression",
170+
'Prop_Operand2': { '@type': "cpp:CPPASTLiteralExpression",
171171
'@token': "\"Hello, World!\"",
172172
'@role': [Binary, Expression, Literal, Right, String],
173173
'@pos': { '@type': "uast:Positions",
@@ -191,7 +191,7 @@
191191
},
192192
],
193193
},
194-
'Prop_DeclSpecifier': { '@type': "CPPASTSimpleDeclSpecifier",
194+
'Prop_DeclSpecifier': { '@type': "cpp:CPPASTSimpleDeclSpecifier",
195195
'@token': "int",
196196
'@role': [Declaration, Function, Number, Return, Type],
197197
'@pos': { '@type': "uast:Positions",
@@ -208,7 +208,7 @@
208208
},
209209
StorageClass: "unspecified",
210210
},
211-
'Prop_Declarator': { '@type': "CPPASTFunctionDeclarator",
211+
'Prop_Declarator': { '@type': "cpp:CPPASTFunctionDeclarator",
212212
'@role': [Declaration, Function],
213213
'@pos': { '@type': "uast:Positions",
214214
start: { '@type': "uast:Position",
@@ -223,7 +223,7 @@
223223
},
224224
},
225225
DeclaresParameterPack: false,
226-
'Prop_Name': { '@type': "CPPASTName",
226+
'Prop_Name': { '@type': "cpp:CPPASTName",
227227
'@token': "main",
228228
'@role': [Declaration, Function, Identifier, Name],
229229
'@pos': { '@type': "uast:Positions",

fixtures/anonymous_class_declaration.cpp.sem.uast

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ '@type': "CPPASTTranslationUnit",
1+
{ '@type': "cpp:CPPASTTranslationUnit",
22
'@role': [File, Module],
33
'@pos': { '@type': "uast:Positions",
44
start: { '@type': "uast:Position",
@@ -14,7 +14,7 @@
1414
},
1515
'Prop_BuiltinMacroDefinitions': [],
1616
'Prop_Declarations': [
17-
{ '@type': "CPPASTSimpleDeclaration",
17+
{ '@type': "cpp:CPPASTSimpleDeclaration",
1818
'@role': [Declaration, Statement],
1919
'@pos': { '@type': "uast:Positions",
2020
start: { '@type': "uast:Position",
@@ -28,7 +28,7 @@
2828
col: 20,
2929
},
3030
},
31-
'Prop_DeclSpecifier': { '@type': "CPPASTCompositeTypeSpecifier",
31+
'Prop_DeclSpecifier': { '@type': "cpp:CPPASTCompositeTypeSpecifier",
3232
'@role': [Declaration, Type],
3333
'@pos': { '@type': "uast:Positions",
3434
start: { '@type': "uast:Position",
@@ -51,7 +51,7 @@
5151
StorageClass: "unspecified",
5252
},
5353
'Prop_Declarators': [
54-
{ '@type': "CPPASTDeclarator",
54+
{ '@type': "cpp:CPPASTDeclarator",
5555
'@role': [Declaration, Name, Variable],
5656
'@pos': { '@type': "uast:Positions",
5757
start: { '@type': "uast:Position",
@@ -67,7 +67,7 @@
6767
},
6868
DeclaresParameterPack: false,
6969
'Prop_ImplicitNames': [
70-
{ '@type': "CPPASTImplicitName",
70+
{ '@type': "cpp:CPPASTImplicitName",
7171
'@token': "",
7272
'@role': [Identifier],
7373
'@pos': { '@type': "uast:Positions",
@@ -86,7 +86,7 @@
8686
IsOverloadedOperator: false,
8787
},
8888
],
89-
'Prop_Name': { '@type': "CPPASTName",
89+
'Prop_Name': { '@type': "cpp:CPPASTName",
9090
'@token': "instance1",
9191
'@role': [Identifier],
9292
'@pos': { '@type': "uast:Positions",

0 commit comments

Comments
 (0)