@@ -35,6 +35,10 @@ SELECT "Clang Query Language" LIKE "%Query%"
35
35
SELECT * FROM functions
36
36
SELECT COUNT (name) from functions WHERE return_type = " int"
37
37
SELECT DISTINCT name AS function_name FROM functions
38
+ SELECT name, source_loc FROM functions WHERE m_function(ast_function, m_constructor());
39
+ SELECT name, source_loc FROM functions WHERE m_function(ast_function, m_copy_constructor());
40
+ SELECT name, source_loc FROM functions WHERE m_function(ast_function, m_move_constructor());
41
+ SELECT name, source_loc FROM functions WHERE m_function(ast_function, m_pure_virtual());
38
42
39
43
SELECT * FROM globals
40
44
SELECT COUNT (name) from globals WHERE type = " int"
@@ -47,19 +51,15 @@ SELECT * FROM globals WHERE is_volatile
47
51
48
52
<summary >Classes table</summary >
49
53
50
- | Name | Type | Description |
51
- | ------------- | ------- | ------------------------------- |
52
- | name | Text | Class variable name |
53
- | is_struct | Boolean | True if it a struct declaration |
54
- | bases_count | Integer | Number of bases for this class |
55
- | methods_count | Integer | Number of methods declarations |
56
- | fields_count | Integer | Number of fields declarations |
57
- | size | Integer | The size of class in bits |
58
- | align | Integer | The align of class in bits |
59
- | file | Text | File path |
60
- | line | Integer | Line at the file path |
61
- | column | Integer | Column at the file path |
62
- | offset | Integer | Offset at the file path |
54
+ | Name | Type | Description |
55
+ | ------------- | --------- | ------------------------------- |
56
+ | name | Text | Class variable name |
57
+ | is_struct | Boolean | True if it a struct declaration |
58
+ | bases_count | Integer | Number of bases for this class |
59
+ | methods_count | Integer | Number of methods declarations |
60
+ | fields_count | Integer | Number of fields declarations |
61
+ | source_loc | SourceLoc | Source location of AST node |
62
+
63
63
64
64
</details >
65
65
@@ -69,15 +69,13 @@ SELECT * FROM globals WHERE is_volatile
69
69
70
70
<summary >Enums table</summary >
71
71
72
- | Name | Type | Description |
73
- | --------------- | ------- | -------------------------------- |
74
- | name | Text | Enumeration name |
75
- | constants_count | Integer | Number of constants in this enum |
76
- | type_literal | Text | Type literal for enum constants |
77
- | file | Text | File path |
78
- | line | Integer | Line at the file path |
79
- | column | Integer | Column at the file path |
80
- | offset | Integer | Offset at the file path |
72
+ | Name | Type | Description |
73
+ | --------------- | --------- | -------------------------------- |
74
+ | name | Text | Enumeration name |
75
+ | constants_count | Integer | Number of constants in this enum |
76
+ | type_literal | Text | Type literal for enum constants |
77
+ | source_loc | SourceLoc | Source location of AST node |
78
+
81
79
82
80
</details >
83
81
@@ -87,15 +85,13 @@ SELECT * FROM globals WHERE is_volatile
87
85
88
86
<summary >Unions table</summary >
89
87
90
- | Name | Type | Description |
91
- | ------------ | ------- | ----------------------------- |
92
- | name | Text | Union name |
93
- | size | Integer | The size of union in bits |
94
- | fields_count | Integer | Number of fields declarations |
95
- | file | Text | File path |
96
- | line | Integer | Line at the file path |
97
- | column | Integer | Column at the file path |
98
- | offset | Integer | Offset at the file path |
88
+ | Name | Type | Description |
89
+ | ------------ | --------- | ----------------------------- |
90
+ | name | Text | Union name |
91
+ | size | Integer | The size of union in bits |
92
+ | fields_count | Integer | Number of fields declarations |
93
+ | source_loc | SourceLoc | Source location of AST node |
94
+
99
95
100
96
</details >
101
97
@@ -105,25 +101,13 @@ SELECT * FROM globals WHERE is_volatile
105
101
106
102
<summary >Functions table</summary >
107
103
108
- | Name | Type | Description |
109
- | --------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
110
- | name | Text | Function or Method name |
111
- | signature | Text | Parameters and return type literal |
112
- | args_count | Integer | Number of arguments |
113
- | class_name | Text | Return class name for method |
114
- | return_type | Text | Return type literal |
115
- | is_method | Boolean | True if it's a method |
116
- | is_virtual | Boolean | Return true if a C++ member function or member function template is explicitly declared 'virtual' or if it overrides a virtual method from one of the base classes |
117
- | is_pure_virtual | Boolean | Return ture if a C++ member function or member function template is pure virtual |
118
- | is_static | Boolean | Return ture if a C++ member function is static |
119
- | is_const | Boolean | Return ture if a C++ member function is const |
120
- | has_template | Boolean | True if it's has template |
121
- | access_modifier | Integer | Returns the access control level for method, 1 for public, 2 protected, 3 provide, 0 for invalid |
122
- | is_variadic | Boolean | True if function type is variadic |
123
- | file | Text | File path |
124
- | line | Integer | Line at the file path |
125
- | column | Integer | Column at the file path |
126
- | offset | Integer | Offset at the file path |
104
+ | Name | Type | Description |
105
+ | ------------ | ------------ | ---------------------------------- |
106
+ | name | Text | Function or Method name |
107
+ | signature | Text | Parameters and return type literal |
108
+ | return_type | Text | Return type |
109
+ | ast_function | FunctionNode | AST node of the function |
110
+ | source_loc | SourceLoc | Source location of AST node |
127
111
128
112
</details >
129
113
@@ -133,15 +117,12 @@ SELECT * FROM globals WHERE is_volatile
133
117
134
118
<summary >Globals table</summary >
135
119
136
- | Name | Type | Description |
137
- | ----------- | ------- | --------------------------------- |
138
- | name | Text | Global variable name |
139
- | type | Text | Global variable type literal |
140
- | is_volatile | Boolean | True if variable type is volatile |
141
- | file | Text | File path |
142
- | line | Integer | Line at the file path |
143
- | column | Integer | Column at the file path |
144
- | offset | Integer | Offset at the file path |
120
+ | Name | Type | Description |
121
+ | ----------- | --------- | --------------------------------- |
122
+ | name | Text | Global variable name |
123
+ | type | Text | Global variable type literal |
124
+ | is_volatile | Boolean | True if variable type is volatile |
125
+ | source_loc | SourceLoc | Source location of AST node |
145
126
146
127
</details >
147
128
0 commit comments