diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2018-03-09 22:31:44 -0300 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2018-03-16 11:12:49 -0300 |
commit | 78251aa0d2d4092d95d95e37de4980cee6a9698d (patch) | |
tree | 5c5443090355d865aa1d5cb493f659468c1654da /src/lib/eolian_cxx | |
parent | 0749a3f6af98f547bfc1c50829be999a051b2cfb (diff) |
eolian_cxx: Add 'unknown' to parameter direction
It'll be used in eolian_mono as the 'direction' of return types in some
helper functions.
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r-- | src/lib/eolian_cxx/grammar/klass_def.hpp | 2 | ||||
-rw-r--r-- | src/lib/eolian_cxx/grammar/parameter.hpp | 5 |
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) | |||
413 | 413 | ||
414 | enum class parameter_direction | 414 | enum class parameter_direction |
415 | { | 415 | { |
416 | in, inout, out | 416 | unknown, in, inout, out |
417 | }; | 417 | }; |
418 | 418 | ||
419 | namespace detail { | 419 | 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 | |||
23 | break; | 23 | break; |
24 | case attributes::parameter_direction::in: | 24 | case attributes::parameter_direction::in: |
25 | dir = "in"; | 25 | dir = "in"; |
26 | break; | 26 | break; |
27 | case attributes::parameter_direction::unknown: | ||
28 | dir = ""; | ||
29 | break; | ||
27 | } | 30 | } |
28 | 31 | ||
29 | attributes::regular_type_def const* typ = | 32 | attributes::regular_type_def const* typ = |