summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/qualifier_def.hpp
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-09 18:10:02 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-09 18:10:02 +0200
commit165921ec040f427875fc0b32b1f03d4a45efd25e (patch)
tree64c719b432dcc55d4fec60d8c88cda2dbf9d1913 /src/lib/eolian_cxx/grammar/qualifier_def.hpp
parent1148ab3393080b9ed616b0efa1e979a9ed1266cf (diff)
eolian_cxx: Add support for @by_ref
Summary: It will coexist with `eolian_type_is_ptr` while we phase out the latter. Fixes: T8211 Depends on D9866 Reviewers: q66, felipealmeida Reviewed By: q66 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9867
Diffstat (limited to '')
-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 cab3ca8667..0823010437 100644
--- a/src/lib/eolian_cxx/grammar/qualifier_def.hpp
+++ b/src/lib/eolian_cxx/grammar/qualifier_def.hpp
@@ -72,11 +72,11 @@ 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, bool is_moved) 75inline qualifier_info qualifiers(Eolian_Type const* type, bool is_moved, bool is_by_ref)
76{ 76{
77 qualifier_info is_own = is_moved ? 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 = is_by_ref ? qualifier_info::is_ref : qualifier_info::is_none;
80 return is_own | is_const | is_ref; 80 return is_own | is_const | is_ref;
81} 81}
82 82