Skip to content

Commit 4d92368

Browse files
authored
Merge pull request #2 from Tolc-Software/ids
Move isStatic from type to variable
2 parents cac1f52 + 149aa49 commit 4d92368

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
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.15.0
5+
VERSION 0.15.1
66
LANGUAGES CXX)
77

88
configure_file(docs/ReleaseNotes/version.in

docs/ReleaseNotes/v0.15.1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# News #
2+
3+
## Fixes ##
4+
5+
A type cannot be static, but a variable or a function can since it is part of how it is stored

include/IR/ir.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ struct Type {
176176
// Qualifiers
177177
bool m_isConst;
178178

179-
bool m_isStatic;
180-
181179
// The numbers of pointers on this variable.
182180
// Ex:
183181
// int* a;
@@ -208,6 +206,8 @@ struct Variable {
208206
std::string m_documentation;
209207

210208
size_t m_id;
209+
210+
bool m_isStatic;
211211
};
212212

213213
struct Function {

0 commit comments

Comments
 (0)