aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-03-09 22:31:44 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-03-16 11:12:49 -0300
commit78251aa0d2d4092d95d95e37de4980cee6a9698d (patch)
tree5c5443090355d865aa1d5cb493f659468c1654da
parentefl-cxx: Fix installation of efl_part_impl header (diff)
downloadefl-78251aa0d2d4092d95d95e37de4980cee6a9698d.tar.gz
eolian_cxx: Add 'unknown' to parameter direction
It'll be used in eolian_mono as the 'direction' of return types in some helper functions.
-rw-r--r--src/lib/eolian_cxx/grammar/klass_def.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/parameter.hpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp
index 83e84abb54..124c99ba42 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -413,7 +413,7 @@ inline void type_def::set(Eolian_Expression_Type eolian_exp_type)
enum class parameter_direction
{
- in, inout, out
+ unknown, in, inout, out
};
namespace detail {
diff --git a/src/lib/eolian_cxx/grammar/parameter.hpp b/src/lib/eolian_cxx/grammar/parameter.hpp
index e06cfeaaf0..c82345b685 100644
--- a/src/lib/eolian_cxx/grammar/parameter.hpp
+++ b/src/lib/eolian_cxx/grammar/parameter.hpp
@@ -23,7 +23,10 @@ struct parameter_type_generator
break;
case attributes::parameter_direction::in:
dir = "in";
- break;
+ break;
+ case attributes::parameter_direction::unknown:
+ dir = "";
+ break;
}
attributes::regular_type_def const* typ =