Update dependencies and regenerate CPP parser (#9)

Co-authored-by: mskelton <mskelton@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-04-17 09:57:42 -05:00
committed by GitHub
co-authored by mskelton
parent 79d38cce37
commit 72f972313c
6 changed files with 356920 additions and 350747 deletions
+2 -2
View File
@@ -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#03fa93db133d6048a77d4de154a7b17ea8b9d076",
"resolved": "git+ssh://git@github.com/tree-sitter/tree-sitter-cpp.git#670404d7c689be1c868a46f919ba2a3912f2b7ef",
"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#03fa93db133d6048a77d4de154a7b17ea8b9d076",
"version": "git+ssh://git@github.com/tree-sitter/tree-sitter-cpp.git#670404d7c689be1c868a46f919ba2a3912f2b7ef",
"dev": true,
"from": "tree-sitter-cpp@git://github.com/tree-sitter/tree-sitter-cpp.git",
"requires": {
+211 -24
View File
@@ -8059,6 +8059,10 @@
"type": "SYMBOL",
"name": "concept_definition"
},
{
"type": "SYMBOL",
"name": "friend_declaration"
},
{
"type": "ALIAS",
"content": {
@@ -9596,6 +9600,18 @@
"namespace_definition": {
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "inline"
},
{
"type": "BLANK"
}
]
},
{
"type": "STRING",
"value": "namespace"
@@ -9611,11 +9627,11 @@
"members": [
{
"type": "SYMBOL",
"name": "identifier"
"name": "_namespace_identifier"
},
{
"type": "SYMBOL",
"name": "namespace_definition_name"
"name": "nested_namespace_specifier"
}
]
},
@@ -9647,7 +9663,7 @@
"name": "name",
"content": {
"type": "SYMBOL",
"name": "identifier"
"name": "_namespace_identifier"
}
},
{
@@ -9659,11 +9675,11 @@
"members": [
{
"type": "SYMBOL",
"name": "identifier"
"name": "_namespace_identifier"
},
{
"type": "SYMBOL",
"name": "qualified_identifier"
"name": "nested_namespace_specifier"
}
]
},
@@ -9673,26 +9689,9 @@
}
]
},
"namespace_definition_name": {
"_namespace_specifier": {
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "identifier"
},
{
"type": "SYMBOL",
"name": "namespace_definition_name"
}
]
},
{
"type": "STRING",
"value": "::"
},
{
"type": "CHOICE",
"members": [
@@ -9707,10 +9706,48 @@
},
{
"type": "SYMBOL",
"name": "identifier"
"name": "_namespace_identifier"
}
]
},
"nested_namespace_specifier": {
"type": "PREC",
"value": 1,
"content": {
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_namespace_specifier"
},
{
"type": "BLANK"
}
]
},
{
"type": "STRING",
"value": "::"
},
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "nested_namespace_specifier"
},
{
"type": "SYMBOL",
"name": "_namespace_specifier"
}
]
}
]
}
},
"using_declaration": {
"type": "SEQ",
"members": [
@@ -11169,6 +11206,30 @@
{
"type": "STRING",
"value": "->*"
},
{
"type": "STRING",
"value": "or"
},
{
"type": "STRING",
"value": "and"
},
{
"type": "STRING",
"value": "bitor"
},
{
"type": "STRING",
"value": "xor"
},
{
"type": "STRING",
"value": "bitand"
},
{
"type": "STRING",
"value": "not_eq"
}
]
},
@@ -11846,6 +11907,132 @@
"value": "->*"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "operator",
"content": {
"type": "STRING",
"value": "or"
}
},
{
"type": "STRING",
"value": "..."
},
{
"type": "STRING",
"value": "or"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "operator",
"content": {
"type": "STRING",
"value": "and"
}
},
{
"type": "STRING",
"value": "..."
},
{
"type": "STRING",
"value": "and"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "operator",
"content": {
"type": "STRING",
"value": "bitor"
}
},
{
"type": "STRING",
"value": "..."
},
{
"type": "STRING",
"value": "bitor"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "operator",
"content": {
"type": "STRING",
"value": "xor"
}
},
{
"type": "STRING",
"value": "..."
},
{
"type": "STRING",
"value": "xor"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "operator",
"content": {
"type": "STRING",
"value": "bitand"
}
},
{
"type": "STRING",
"value": "..."
},
{
"type": "STRING",
"value": "bitand"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "operator",
"content": {
"type": "STRING",
"value": "not_eq"
}
},
{
"type": "STRING",
"value": "..."
},
{
"type": "STRING",
"value": "not_eq"
}
]
}
]
},
+37 -9
View File
@@ -2742,6 +2742,30 @@
"type": "^=",
"named": false
},
{
"type": "and",
"named": false
},
{
"type": "bitand",
"named": false
},
{
"type": "bitor",
"named": false
},
{
"type": "not_eq",
"named": false
},
{
"type": "or",
"named": false
},
{
"type": "xor",
"named": false
},
{
"type": "|",
"named": false
@@ -3519,7 +3543,7 @@
"required": true,
"types": [
{
"type": "identifier",
"type": "namespace_identifier",
"named": true
}
]
@@ -3530,11 +3554,11 @@
"required": true,
"types": [
{
"type": "identifier",
"type": "namespace_identifier",
"named": true
},
{
"type": "qualified_identifier",
"type": "nested_namespace_specifier",
"named": true
}
]
@@ -3559,11 +3583,11 @@
"required": false,
"types": [
{
"type": "identifier",
"type": "namespace_identifier",
"named": true
},
{
"type": "namespace_definition_name",
"type": "nested_namespace_specifier",
"named": true
}
]
@@ -3571,19 +3595,19 @@
}
},
{
"type": "namespace_definition_name",
"type": "nested_namespace_specifier",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"required": false,
"types": [
{
"type": "identifier",
"type": "namespace_identifier",
"named": true
},
{
"type": "namespace_definition_name",
"type": "nested_namespace_specifier",
"named": true
}
]
@@ -5346,6 +5370,10 @@
"type": "declaration",
"named": true
},
{
"type": "friend_declaration",
"named": true
},
{
"type": "function_definition",
"named": true
+356617 -350683
View File
File diff suppressed because it is too large Load Diff
+52 -28
View File
@@ -9,27 +9,43 @@ int x;
} // namespace std
namespace A::B { }
namespace A::B::inline C { }
namespace A::B::inline C::D { }
inline namespace A { }
---
(translation_unit
(namespace_definition
name: (identifier)
name: (namespace_identifier)
body: (declaration_list
(declaration
type: (primitive_type)
declarator: (identifier))))
(comment)
(namespace_definition
name: (namespace_definition_name (identifier) (identifier))
name: (nested_namespace_specifier
(namespace_identifier)
(namespace_identifier))
body: (declaration_list))
(namespace_definition
name: (namespace_definition_name
(namespace_definition_name
(namespace_definition_name (identifier) (identifier))
(identifier))
(identifier))
name: (nested_namespace_specifier
(namespace_identifier)
(nested_namespace_specifier
(namespace_identifier)
(namespace_identifier)))
body: (declaration_list))
(namespace_definition
name: (nested_namespace_specifier
(namespace_identifier)
(nested_namespace_specifier
(namespace_identifier)
(nested_namespace_specifier
(namespace_identifier)
(namespace_identifier))))
body: (declaration_list))
(namespace_definition
name: (namespace_identifier)
body: (declaration_list)))
=========================================
@@ -46,30 +62,30 @@ namespace literals = std::chono::literals;
(translation_unit
(namespace_alias_definition
name: (identifier)
(identifier))
name: (namespace_identifier)
(namespace_identifier))
(namespace_alias_definition
name: (identifier)
(qualified_identifier
name: (identifier)))
name: (namespace_identifier)
(nested_namespace_specifier
(namespace_identifier)))
(namespace_alias_definition
name: (identifier)
(qualified_identifier
scope: (namespace_identifier)
name: (identifier)))
name: (namespace_identifier)
(nested_namespace_specifier
(namespace_identifier)
(namespace_identifier)))
(namespace_alias_definition
name: (identifier)
(qualified_identifier
name: (qualified_identifier
scope: (namespace_identifier)
name: (identifier))))
name: (namespace_identifier)
(nested_namespace_specifier
(nested_namespace_specifier
(namespace_identifier)
(namespace_identifier))))
(namespace_alias_definition
name: (identifier)
(qualified_identifier
scope: (namespace_identifier)
name: (qualified_identifier
scope: (namespace_identifier)
name: (identifier)))))
name: (namespace_identifier)
(nested_namespace_specifier
(namespace_identifier)
(nested_namespace_specifier
(namespace_identifier)
(namespace_identifier)))))
=========================================
Using declarations
@@ -478,6 +494,9 @@ struct C {
friend class D;
friend D;
friend int f(C &);
template <typename T>
friend int g();
};
---
@@ -488,7 +507,12 @@ struct C {
(friend_declaration (type_identifier))
(friend_declaration (declaration (primitive_type) (function_declarator
(identifier)
(parameter_list (parameter_declaration (type_identifier) (abstract_reference_declarator)))))))))
(parameter_list (parameter_declaration (type_identifier) (abstract_reference_declarator))))))
(template_declaration
(template_parameter_list (type_parameter_declaration (type_identifier)))
(friend_declaration (declaration (primitive_type) (function_declarator
(identifier)
(parameter_list))))))))
=============================================
Default member initializers