Skip to content

Commit 6236b0c

Browse files
committed
Remove docs and id from function arguments
1 parent 1acfb70 commit 6236b0c

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15...3.16)
22

33
project(
44
IR
5-
VERSION 0.14.0
5+
VERSION 0.15.0
66
LANGUAGES CXX)
77

88
configure_file(docs/ReleaseNotes/version.in

docs/ReleaseNotes/v0.15.0.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# News #
2+
3+
## Features ##
4+
5+
* Add support for unique ids on structures
6+
7+
* Remove unnecessary fields from function arguments

include/IR/ir.hpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,22 @@ struct Type {
191191
bool m_isReference;
192192
};
193193

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+
194201
struct Variable {
195202
// Name that should be used to access the variable
196203
std::string m_name;
197-
// Documentation string
198-
std::string m_documentation;
199204

200205
Type m_type;
201206

207+
// Documentation string
208+
std::string m_documentation;
209+
202210
size_t m_id;
203211
};
204212

@@ -217,7 +225,7 @@ struct Function {
217225

218226
size_t m_id;
219227

220-
std::vector<Variable> m_arguments;
228+
std::vector<Argument> m_arguments;
221229

222230
// Is empty if function is not a template
223231
std::vector<Type> m_templateArguments;

0 commit comments

Comments
 (0)