summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/struct_definition.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-16 21:44:27 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-26 10:55:18 -0300
commita413914c1805ebbcd3b58880e5efa2d9527fd933 (patch)
tree77503787f3086f9ffbb78c5e3affe429b2ffa25f /src/bin/eolian_mono/eolian/mono/struct_definition.hh
parent8e151023b9a713be5fa251d6e182b3796f39a37a (diff)
efl_mono: Move event generators to its own header.
Summary: Making it easier to share code between self and inherited events. During this move, the namespace and keyword headers were merged into the name_helpers header. Also added the first seed of a generic namespace reducer function, to be used by other functions in later commits. Depends on D5994 Reviewers: felipealmeida Reviewed By: felipealmeida Subscribers: segfaultxavi, cedric Differential Revision: https://phab.enlightenment.org/D5995
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/struct_definition.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/struct_definition.hh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/struct_definition.hh b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
index 9ff47de51d..ab5db8f180 100644
--- a/src/bin/eolian_mono/eolian/mono/struct_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
@@ -9,7 +9,6 @@
9#include "name_helpers.hh" 9#include "name_helpers.hh"
10#include "helpers.hh" 10#include "helpers.hh"
11#include "type.hh" 11#include "type.hh"
12#include "keyword.hh"
13#include "using_decl.hh" 12#include "using_decl.hh"
14#include "documentation.hh" 13#include "documentation.hh"
15#include "struct_fields.hh" 14#include "struct_fields.hh"
@@ -444,7 +443,7 @@ struct struct_entities_generator
444 if (blacklist::is_struct_blacklisted(struct_)) 443 if (blacklist::is_struct_blacklisted(struct_))
445 return true; 444 return true;
446 445
447 std::vector<std::string> cpp_namespaces = escape_namespace(attributes::cpp_namespaces(struct_.namespaces)); 446 std::vector<std::string> cpp_namespaces = name_helpers::escape_namespace(attributes::cpp_namespaces(struct_.namespaces));
448 447
449 auto open_namespace = *("namespace " << string << " { ") << "\n"; 448 auto open_namespace = *("namespace " << string << " { ") << "\n";
450 if (!as_generator(open_namespace).generate(sink, cpp_namespaces, add_lower_case_context(context))) 449 if (!as_generator(open_namespace).generate(sink, cpp_namespaces, add_lower_case_context(context)))