@@ -35,6 +35,10 @@ SELECT "Clang Query Language" LIKE "%Query%"
3535SELECT * FROM functions
3636SELECT COUNT (name) from functions WHERE return_type = " int"
3737SELECT 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());
3842
3943SELECT * FROM globals
4044SELECT COUNT (name) from globals WHERE type = " int"
@@ -47,19 +51,15 @@ SELECT * FROM globals WHERE is_volatile
4751
4852 <summary >Classes table</summary >
4953
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+
6363
6464</details >
6565
@@ -69,15 +69,13 @@ SELECT * FROM globals WHERE is_volatile
6969
7070 <summary >Enums table</summary >
7171
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+
8179
8280</details >
8381
@@ -87,15 +85,13 @@ SELECT * FROM globals WHERE is_volatile
8785
8886 <summary >Unions table</summary >
8987
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+
9995
10096</details >
10197
@@ -105,25 +101,13 @@ SELECT * FROM globals WHERE is_volatile
105101
106102 <summary >Functions table</summary >
107103
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 |
127111
128112</details >
129113
@@ -133,15 +117,12 @@ SELECT * FROM globals WHERE is_volatile
133117
134118 <summary >Globals table</summary >
135119
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 |
145126
146127</details >
147128
0 commit comments