summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/qualifier_def.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eolian_cxx/grammar/qualifier_def.hpp')
-rw-r--r--src/lib/eolian_cxx/grammar/qualifier_def.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eolian_cxx/grammar/qualifier_def.hpp b/src/lib/eolian_cxx/grammar/qualifier_def.hpp
index 33e3ed5125..cab3ca8667 100644
--- a/src/lib/eolian_cxx/grammar/qualifier_def.hpp
+++ b/src/lib/eolian_cxx/grammar/qualifier_def.hpp
@@ -72,9 +72,9 @@ inline qualifier_bool operator^(qualifier_bool lhs, qualifier_info rhs)
72 return lhs; 72 return lhs;
73} 73}
74 74
75inline qualifier_info qualifiers(Eolian_Type const* type) 75inline qualifier_info qualifiers(Eolian_Type const* type, bool is_moved)
76{ 76{
77 qualifier_info is_own = ::eolian_type_is_owned(type) ? qualifier_info::is_own : qualifier_info::is_none; 77 qualifier_info is_own = is_moved ? qualifier_info::is_own : qualifier_info::is_none;
78 qualifier_info is_const = ::eolian_type_is_const(type) ? qualifier_info::is_const : qualifier_info::is_none; 78 qualifier_info is_const = ::eolian_type_is_const(type) ? qualifier_info::is_const : qualifier_info::is_none;
79 qualifier_info is_ref = ::eolian_type_is_ptr(type) ? qualifier_info::is_ref : qualifier_info::is_none; 79 qualifier_info is_ref = ::eolian_type_is_ptr(type) ? qualifier_info::is_ref : qualifier_info::is_none;
80 return is_own | is_const | is_ref; 80 return is_own | is_const | is_ref;