Update dependencies and regenerate CPP parser (#6)
Co-authored-by: mskelton <mskelton@users.noreply.github.com>
This commit is contained in:
co-authored by
mskelton
parent
a4cbc80045
commit
426194bcc3
Generated
+2
-2
@@ -60,7 +60,7 @@
|
||||
},
|
||||
"node_modules/tree-sitter-cpp": {
|
||||
"version": "0.20.0",
|
||||
"resolved": "git+ssh://git@github.com/tree-sitter/tree-sitter-cpp.git#3845ff48d6e370616cec189eb43ddce4fd57f4d4",
|
||||
"resolved": "git+ssh://git@github.com/tree-sitter/tree-sitter-cpp.git#56cec4c2eb5d6af3d2942e69e35db15ae2433740",
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
@@ -96,7 +96,7 @@
|
||||
"dev": true
|
||||
},
|
||||
"tree-sitter-cpp": {
|
||||
"version": "git+ssh://git@github.com/tree-sitter/tree-sitter-cpp.git#3845ff48d6e370616cec189eb43ddce4fd57f4d4",
|
||||
"version": "git+ssh://git@github.com/tree-sitter/tree-sitter-cpp.git#56cec4c2eb5d6af3d2942e69e35db15ae2433740",
|
||||
"dev": true,
|
||||
"from": "tree-sitter-cpp@git://github.com/tree-sitter/tree-sitter-cpp.git",
|
||||
"requires": {
|
||||
|
||||
Vendored
+261
-487
@@ -1899,7 +1899,7 @@
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "virtual_function_specifier"
|
||||
"name": "virtual"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2768,88 +2768,16 @@
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "PREC",
|
||||
"value": 1,
|
||||
"type": "FIELD",
|
||||
"name": "declarator",
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "declarator",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "_declarator"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "parameters",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "parameter_list"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "attribute_specifier"
|
||||
}
|
||||
}
|
||||
]
|
||||
"type": "SYMBOL",
|
||||
"name": "_declarator"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "type_qualifier"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "ref_qualifier"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "virtual_specifier"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "noexcept"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "throw_specifier"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "trailing_return_type"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "requires_clause"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
"type": "SYMBOL",
|
||||
"name": "_function_declarator_seq"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -2861,81 +2789,16 @@
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "PREC",
|
||||
"value": 1,
|
||||
"type": "FIELD",
|
||||
"name": "declarator",
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "declarator",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "_field_declarator"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "parameters",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "parameter_list"
|
||||
}
|
||||
}
|
||||
]
|
||||
"type": "SYMBOL",
|
||||
"name": "_field_declarator"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "type_qualifier"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "ref_qualifier"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "virtual_specifier"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "noexcept"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "throw_specifier"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "trailing_return_type"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "requires_clause"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
"type": "SYMBOL",
|
||||
"name": "_function_declarator_seq"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -2966,94 +2829,29 @@
|
||||
}
|
||||
},
|
||||
"abstract_function_declarator": {
|
||||
"type": "PREC_RIGHT",
|
||||
"value": 0,
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "PREC",
|
||||
"value": 1,
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "declarator",
|
||||
"content": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_abstract_declarator"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "parameters",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "parameter_list"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "type_qualifier"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "ref_qualifier"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "noexcept"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "throw_specifier"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "declarator",
|
||||
"content": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "trailing_return_type"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "requires_clause"
|
||||
"name": "_abstract_declarator"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_function_declarator_seq"
|
||||
}
|
||||
]
|
||||
},
|
||||
"array_declarator": {
|
||||
"type": "PREC",
|
||||
@@ -3832,210 +3630,30 @@
|
||||
]
|
||||
},
|
||||
"struct_specifier": {
|
||||
"type": "PREC_RIGHT",
|
||||
"value": 0,
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "struct"
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "ms_declspec_modifier"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "attribute_declaration"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "name",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "_class_name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "name",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "_class_name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "virtual_specifier"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "base_class_clause"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "body",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "field_declaration_list"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "struct"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_class_declaration"
|
||||
}
|
||||
]
|
||||
},
|
||||
"union_specifier": {
|
||||
"type": "PREC_RIGHT",
|
||||
"value": 0,
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "union"
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "ms_declspec_modifier"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "attribute_declaration"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "name",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "_class_name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "name",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "_class_name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "virtual_specifier"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "base_class_clause"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "body",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "field_declaration_list"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "union"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_class_declaration"
|
||||
}
|
||||
]
|
||||
},
|
||||
"field_declaration_list": {
|
||||
"type": "SEQ",
|
||||
@@ -4153,8 +3771,17 @@
|
||||
"name": "friend_declaration"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "access_specifier"
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "access_specifier"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": ":"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
@@ -7961,16 +7588,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"class_specifier": {
|
||||
"_class_declaration": {
|
||||
"type": "PREC_RIGHT",
|
||||
"value": 0,
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "class"
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
@@ -7984,16 +7607,11 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "attribute_declaration"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "attribute_declaration"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
@@ -8064,6 +7682,19 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"class_specifier": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "class"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_class_declaration"
|
||||
}
|
||||
]
|
||||
},
|
||||
"_class_name": {
|
||||
"type": "PREC_RIGHT",
|
||||
"value": 0,
|
||||
@@ -8103,7 +7734,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"virtual_function_specifier": {
|
||||
"virtual": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
@@ -8159,6 +7790,13 @@
|
||||
{
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "attribute_declaration"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
@@ -8166,16 +7804,34 @@
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "public"
|
||||
"type": "SYMBOL",
|
||||
"name": "access_specifier"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "private"
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "access_specifier"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "virtual"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "protected"
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "virtual"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "access_specifier"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -8214,6 +7870,13 @@
|
||||
{
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "attribute_declaration"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
@@ -8221,16 +7884,34 @@
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "public"
|
||||
"type": "SYMBOL",
|
||||
"name": "access_specifier"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "private"
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "access_specifier"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "virtual"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "protected"
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "virtual"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "access_specifier"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -9345,28 +9026,19 @@
|
||||
]
|
||||
},
|
||||
"access_specifier": {
|
||||
"type": "SEQ",
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "public"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "private"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "protected"
|
||||
}
|
||||
]
|
||||
"type": "STRING",
|
||||
"value": "public"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": ":"
|
||||
"value": "private"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "protected"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -9519,6 +9191,113 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"_function_declarator_seq": {
|
||||
"type": "PREC_RIGHT",
|
||||
"value": 0,
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "FIELD",
|
||||
"name": "parameters",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "parameter_list"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "attribute_specifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "type_qualifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "ref_qualifier"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "noexcept"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "throw_specifier"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "attribute_declaration"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "trailing_return_type"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "virtual_specifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "requires_clause"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"trailing_return_type": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
@@ -9995,16 +9774,11 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "attribute_declaration"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "attribute_declaration"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
|
||||
Vendored
+39
-11
@@ -502,6 +502,14 @@
|
||||
"multiple": true,
|
||||
"required": false,
|
||||
"types": [
|
||||
{
|
||||
"type": "attribute_declaration",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "attribute_specifier",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "noexcept",
|
||||
"named": true
|
||||
@@ -525,6 +533,10 @@
|
||||
{
|
||||
"type": "type_qualifier",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "virtual_specifier",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -616,7 +628,7 @@
|
||||
}
|
||||
},
|
||||
"children": {
|
||||
"multiple": false,
|
||||
"multiple": true,
|
||||
"required": false,
|
||||
"types": [
|
||||
{
|
||||
@@ -929,6 +941,14 @@
|
||||
"multiple": true,
|
||||
"required": true,
|
||||
"types": [
|
||||
{
|
||||
"type": "access_specifier",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "attribute_declaration",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "qualified_identifier",
|
||||
"named": true
|
||||
@@ -940,6 +960,10 @@
|
||||
{
|
||||
"type": "type_identifier",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "virtual",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1967,7 +1991,7 @@
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "virtual_function_specifier",
|
||||
"type": "virtual",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
@@ -2382,7 +2406,7 @@
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "virtual_function_specifier",
|
||||
"type": "virtual",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
@@ -2824,7 +2848,7 @@
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "virtual_function_specifier",
|
||||
"type": "virtual",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
@@ -2960,6 +2984,10 @@
|
||||
"multiple": true,
|
||||
"required": false,
|
||||
"types": [
|
||||
{
|
||||
"type": "attribute_declaration",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "attribute_specifier",
|
||||
"named": true
|
||||
@@ -3091,7 +3119,7 @@
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "virtual_function_specifier",
|
||||
"type": "virtual",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
@@ -3694,7 +3722,7 @@
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "virtual_function_specifier",
|
||||
"type": "virtual",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
@@ -3775,7 +3803,7 @@
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "virtual_function_specifier",
|
||||
"type": "virtual",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
@@ -3861,7 +3889,7 @@
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "virtual_function_specifier",
|
||||
"type": "virtual",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
@@ -5401,7 +5429,7 @@
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "virtual_function_specifier",
|
||||
"type": "virtual",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
@@ -6072,7 +6100,7 @@
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "virtual_function_specifier",
|
||||
"type": "virtual",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
@@ -6094,7 +6122,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "virtual_function_specifier",
|
||||
"type": "virtual",
|
||||
"named": true,
|
||||
"fields": {}
|
||||
},
|
||||
|
||||
Vendored
+327631
-346661
File diff suppressed because it is too large
Load Diff
@@ -87,6 +87,7 @@ template <typename T>
|
||||
using a = typename b<T>::c;
|
||||
|
||||
using foobar [[deprecated]] = int;
|
||||
using foobar [[deprecated]] [[maybe_unused]] = int;
|
||||
|
||||
---
|
||||
|
||||
@@ -119,6 +120,11 @@ using foobar [[deprecated]] = int;
|
||||
(alias_declaration
|
||||
(type_identifier)
|
||||
(attribute_declaration (attribute (identifier)))
|
||||
(type_descriptor (primitive_type)))
|
||||
(alias_declaration
|
||||
(type_identifier)
|
||||
(attribute_declaration (attribute (identifier)))
|
||||
(attribute_declaration (attribute (identifier)))
|
||||
(type_descriptor (primitive_type))))
|
||||
|
||||
=========================================
|
||||
@@ -222,7 +228,9 @@ struct B : A {
|
||||
int bar() const override { return 4; }
|
||||
int baz() const final { return 5; }
|
||||
int bag() const final override { return 6; }
|
||||
int bah() const override final { return 7; }
|
||||
int bah() const override final;
|
||||
auto bai() const -> int override { return 7; }
|
||||
auto baj() const -> int override;
|
||||
};
|
||||
|
||||
---
|
||||
@@ -249,10 +257,17 @@ struct B : A {
|
||||
(primitive_type)
|
||||
(function_declarator (field_identifier) (parameter_list) (type_qualifier) (virtual_specifier) (virtual_specifier))
|
||||
(compound_statement (return_statement (number_literal))))
|
||||
(function_definition
|
||||
(field_declaration
|
||||
(primitive_type)
|
||||
(function_declarator (field_identifier) (parameter_list) (type_qualifier) (virtual_specifier) (virtual_specifier))
|
||||
(compound_statement (return_statement (number_literal)))))))
|
||||
(function_declarator (field_identifier) (parameter_list) (type_qualifier) (virtual_specifier) (virtual_specifier)))
|
||||
(function_definition
|
||||
(placeholder_type_specifier (auto))
|
||||
(function_declarator (field_identifier) (parameter_list) (type_qualifier) (trailing_return_type (type_descriptor (primitive_type))) (virtual_specifier))
|
||||
(compound_statement (return_statement (number_literal))))
|
||||
(field_declaration
|
||||
(placeholder_type_specifier (auto))
|
||||
(function_declarator (field_identifier) (parameter_list) (type_qualifier) (trailing_return_type (type_descriptor (primitive_type))) (virtual_specifier))))))
|
||||
|
||||
|
||||
=====================================
|
||||
Virtual method declarations
|
||||
@@ -274,31 +289,31 @@ class A {
|
||||
(type_identifier)
|
||||
(field_declaration_list
|
||||
(declaration
|
||||
(virtual_function_specifier)
|
||||
(virtual)
|
||||
(function_declarator (destructor_name (identifier)) (parameter_list)))
|
||||
(field_declaration
|
||||
(primitive_type)
|
||||
(function_declarator (field_identifier) (parameter_list)))
|
||||
(function_definition
|
||||
(virtual_function_specifier)
|
||||
(virtual)
|
||||
(primitive_type)
|
||||
(function_declarator
|
||||
(field_identifier)
|
||||
(parameter_list))
|
||||
(compound_statement))
|
||||
(field_declaration
|
||||
(virtual_function_specifier)
|
||||
(virtual)
|
||||
(primitive_type)
|
||||
(function_declarator
|
||||
(field_identifier)
|
||||
(parameter_list)))
|
||||
(field_declaration
|
||||
(storage_class_specifier)
|
||||
(virtual_function_specifier)
|
||||
(virtual)
|
||||
(primitive_type)
|
||||
(function_declarator (field_identifier) (parameter_list) (virtual_specifier)))
|
||||
(field_declaration
|
||||
(virtual_function_specifier)
|
||||
(virtual)
|
||||
(storage_class_specifier)
|
||||
(primitive_type)
|
||||
(function_declarator (field_identifier) (parameter_list) (virtual_specifier))))))
|
||||
@@ -342,7 +357,7 @@ class C {
|
||||
(field_initializer_list
|
||||
(field_initializer
|
||||
(qualified_identifier
|
||||
(namespace_identifier)
|
||||
(namespace_identifier)
|
||||
(template_method
|
||||
(field_identifier)
|
||||
(template_argument_list (type_descriptor (type_identifier)))))
|
||||
@@ -354,23 +369,45 @@ class C {
|
||||
Classes with inheritance
|
||||
=========================================
|
||||
|
||||
class A : public B {
|
||||
};
|
||||
|
||||
class C : C::D, public E {
|
||||
};
|
||||
class A : public B {};
|
||||
class C : C::D, public E {};
|
||||
class F : [[deprecated]] public G {};
|
||||
class H : public virtual I {};
|
||||
class J : virtual protected I {};
|
||||
|
||||
---
|
||||
|
||||
(translation_unit
|
||||
(class_specifier
|
||||
(type_identifier)
|
||||
(base_class_clause (type_identifier))
|
||||
(base_class_clause (access_specifier) (type_identifier))
|
||||
(field_declaration_list))
|
||||
(class_specifier
|
||||
(type_identifier)
|
||||
(base_class_clause
|
||||
(qualified_identifier (namespace_identifier) (type_identifier))
|
||||
(access_specifier)
|
||||
(type_identifier))
|
||||
(field_declaration_list))
|
||||
(class_specifier
|
||||
(type_identifier)
|
||||
(base_class_clause
|
||||
(attribute_declaration (attribute (identifier)))
|
||||
(access_specifier)
|
||||
(type_identifier))
|
||||
(field_declaration_list))
|
||||
(class_specifier
|
||||
(type_identifier)
|
||||
(base_class_clause
|
||||
(access_specifier)
|
||||
(virtual)
|
||||
(type_identifier))
|
||||
(field_declaration_list))
|
||||
(class_specifier
|
||||
(type_identifier)
|
||||
(base_class_clause
|
||||
(virtual)
|
||||
(access_specifier)
|
||||
(type_identifier))
|
||||
(field_declaration_list)))
|
||||
|
||||
@@ -391,7 +428,9 @@ struct D final {};
|
||||
(class_specifier
|
||||
(type_identifier)
|
||||
(virtual_specifier)
|
||||
(base_class_clause (type_identifier))
|
||||
(base_class_clause
|
||||
(access_specifier)
|
||||
(type_identifier))
|
||||
(field_declaration_list))
|
||||
(class_specifier
|
||||
(type_identifier)
|
||||
@@ -420,7 +459,14 @@ class A {
|
||||
(class_specifier (type_identifier) (field_declaration_list
|
||||
(access_specifier)
|
||||
(field_declaration
|
||||
(class_specifier (type_identifier) (base_class_clause (type_identifier) (type_identifier)) (field_declaration_list)))
|
||||
(class_specifier
|
||||
(type_identifier)
|
||||
(base_class_clause
|
||||
(access_specifier)
|
||||
(type_identifier)
|
||||
(access_specifier)
|
||||
(type_identifier))
|
||||
(field_declaration_list)))
|
||||
(field_declaration
|
||||
(type_identifier) (field_identifier) (field_identifier)))))
|
||||
|
||||
@@ -504,6 +550,9 @@ class [[gnu::visibility("default")]] A {};
|
||||
struct [[gnu::visibility("default")]] A {};
|
||||
union [[gnu::visibility("default")]] A {};
|
||||
|
||||
class [[gnu::visibility("default")]] [[deprecated]] A {};
|
||||
class A final : [[deprecated]] public B {};
|
||||
|
||||
---
|
||||
|
||||
(translation_unit
|
||||
@@ -541,7 +590,20 @@ union [[gnu::visibility("default")]] A {};
|
||||
(union_specifier
|
||||
(attribute_declaration (attribute (identifier) (identifier) (argument_list (string_literal))))
|
||||
(type_identifier)
|
||||
(field_declaration_list)))
|
||||
(field_declaration_list))
|
||||
(class_specifier
|
||||
(attribute_declaration (attribute (identifier) (identifier) (argument_list (string_literal))))
|
||||
(attribute_declaration (attribute (identifier)))
|
||||
(type_identifier)
|
||||
(field_declaration_list))
|
||||
(class_specifier
|
||||
(type_identifier)
|
||||
(virtual_specifier)
|
||||
(base_class_clause
|
||||
(attribute_declaration (attribute (identifier)))
|
||||
(access_specifier)
|
||||
(type_identifier))
|
||||
(field_declaration_list)))
|
||||
|
||||
=========================================
|
||||
Operator overload declarations
|
||||
@@ -1227,7 +1289,7 @@ operator T*();
|
||||
(placeholder_type_specifier (auto))
|
||||
(abstract_function_declarator (parameter_list) (type_qualifier))))
|
||||
(declaration
|
||||
(virtual_function_specifier)
|
||||
(virtual)
|
||||
(operator_cast (type_identifier) (abstract_function_declarator (parameter_list))) (number_literal))
|
||||
(declaration
|
||||
(qualified_identifier
|
||||
@@ -1289,7 +1351,7 @@ class A {
|
||||
(placeholder_type_specifier (auto))
|
||||
(abstract_function_declarator (parameter_list) (type_qualifier))))
|
||||
(declaration
|
||||
(virtual_function_specifier)
|
||||
(virtual)
|
||||
(operator_cast (type_identifier) (abstract_function_declarator (parameter_list))) (number_literal))
|
||||
(declaration
|
||||
(qualified_identifier
|
||||
|
||||
@@ -148,7 +148,9 @@ class A : public B {
|
||||
(translation_unit
|
||||
(class_specifier
|
||||
(type_identifier)
|
||||
(base_class_clause (type_identifier))
|
||||
(base_class_clause
|
||||
(access_specifier)
|
||||
(type_identifier))
|
||||
(field_declaration_list
|
||||
(function_definition
|
||||
(function_declarator (identifier) (parameter_list))
|
||||
|
||||
@@ -767,6 +767,7 @@ void f(T...) {}
|
||||
(class_specifier
|
||||
name: (type_identifier)
|
||||
(base_class_clause
|
||||
(access_specifier)
|
||||
(type_identifier))
|
||||
body: (field_declaration_list
|
||||
(access_specifier)
|
||||
|
||||
+1
-1
Submodule tree-sitter-cpp updated: 3845ff48d6...56cec4c2eb
Reference in New Issue
Block a user