File tree 3 files changed +26
-3
lines changed 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15...3.16)
2
2
3
3
project (
4
4
IR
5
- VERSION 0.14 .0
5
+ VERSION 0.15 .0
6
6
LANGUAGES CXX)
7
7
8
8
configure_file (docs/ReleaseNotes/version .in
Original file line number Diff line number Diff line change
1
+ # News #
2
+
3
+ ## Features ##
4
+
5
+ * Add support for unique ids on structures
6
+
7
+ * Remove unnecessary fields from function arguments
Original file line number Diff line number Diff line change @@ -130,6 +130,8 @@ struct Enum {
130
130
std::string m_documentation;
131
131
// Unscoped values
132
132
std::vector<std::string> m_values;
133
+
134
+ size_t m_id;
133
135
// True if it was declared as 'enum class'
134
136
bool m_isScoped;
135
137
};
@@ -189,13 +191,23 @@ struct Type {
189
191
bool m_isReference;
190
192
};
191
193
194
+ struct Argument {
195
+ // Name that should be used to access the variable
196
+ std::string m_name;
197
+
198
+ Type m_type;
199
+ };
200
+
192
201
struct Variable {
193
202
// Name that should be used to access the variable
194
203
std::string m_name;
204
+
205
+ Type m_type;
206
+
195
207
// Documentation string
196
208
std::string m_documentation;
197
209
198
- Type m_type ;
210
+ size_t m_id ;
199
211
};
200
212
201
213
struct Function {
@@ -211,7 +223,9 @@ struct Function {
211
223
212
224
Type m_returnType;
213
225
214
- std::vector<Variable> m_arguments;
226
+ size_t m_id;
227
+
228
+ std::vector<Argument> m_arguments;
215
229
216
230
// Is empty if function is not a template
217
231
std::vector<Type> m_templateArguments;
@@ -254,6 +268,8 @@ struct Struct {
254
268
// Is empty if struct is not a template
255
269
std::vector<Type> m_templateArguments;
256
270
271
+ size_t m_id;
272
+
257
273
bool m_hasImplicitDefaultConstructor;
258
274
};
259
275
You can’t perform that action at this time.
0 commit comments