summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-27 23:54:43 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-05 10:15:40 +0900
commit0f812f15847e9127b19e9711f9cb1dd26d938f0a (patch)
treea45c8fceb1e69227eeddf1b5bf81043730aab239 /src/lib/eolian_cxx
parentc372e5e6c77bdd28ac1fd3b922a60d263f7d94ef (diff)
cxx: Fix indentation of ifdef guard
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/base_class_definition.hpp4
-rw-r--r--src/lib/eolian_cxx/grammar/class_definition.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/function_declaration.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/part_declaration.hpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/eolian_cxx/grammar/base_class_definition.hpp b/src/lib/eolian_cxx/grammar/base_class_definition.hpp
index edc6afb86a..f8a704d4fd 100644
--- a/src/lib/eolian_cxx/grammar/base_class_definition.hpp
+++ b/src/lib/eolian_cxx/grammar/base_class_definition.hpp
@@ -34,10 +34,10 @@ struct base_class_definition_generator
34 "struct " << string << " {\n" 34 "struct " << string << " {\n"
35 ).generate(sink, cls.cxx_name, context)) return false; 35 ).generate(sink, cls.cxx_name, context)) return false;
36 36
37 if(!as_generator(*(scope_tab << function_declaration(get_klass_name(cls)))) 37 if(!as_generator(*(function_declaration(get_klass_name(cls))))
38 .generate(sink, cls.functions, context)) return false; 38 .generate(sink, cls.functions, context)) return false;
39 39
40 if(!as_generator(*(scope_tab << part_declaration << ";\n")) 40 if(!as_generator(*(part_declaration << ";\n"))
41 .generate(sink, cls.parts, context)) return false; 41 .generate(sink, cls.parts, context)) return false;
42 42
43 // static Efl_Class const* _eo_class(); 43 // static Efl_Class const* _eo_class();
diff --git a/src/lib/eolian_cxx/grammar/class_definition.hpp b/src/lib/eolian_cxx/grammar/class_definition.hpp
index 7367cf7ef0..e7bfaba54d 100644
--- a/src/lib/eolian_cxx/grammar/class_definition.hpp
+++ b/src/lib/eolian_cxx/grammar/class_definition.hpp
@@ -97,7 +97,7 @@ struct class_definition_generator
97 ).generate(sink, attributes::make_infinite_tuple(cls.cxx_name), context)) return false; 97 ).generate(sink, attributes::make_infinite_tuple(cls.cxx_name), context)) return false;
98 98
99#ifndef USE_EOCXX_INHERIT_ONLY 99#ifndef USE_EOCXX_INHERIT_ONLY
100 if(!as_generator(*(scope_tab << function_declaration(get_klass_name(cls)))) 100 if(!as_generator(*(function_declaration(get_klass_name(cls))))
101 .generate(sink, cls.functions, context)) return false; 101 .generate(sink, cls.functions, context)) return false;
102#endif 102#endif
103 103
diff --git a/src/lib/eolian_cxx/grammar/function_declaration.hpp b/src/lib/eolian_cxx/grammar/function_declaration.hpp
index 641ae6560c..04694fa1fb 100644
--- a/src/lib/eolian_cxx/grammar/function_declaration.hpp
+++ b/src/lib/eolian_cxx/grammar/function_declaration.hpp
@@ -51,7 +51,7 @@ struct function_declaration_generator
51 return false; 51 return false;
52 52
53 if(!as_generator 53 if(!as_generator
54 ("::efl::eolian::return_traits<" << grammar::type(true) << ">::type " << string << "(" << (parameter % ", ") << ") const;\n") 54 (scope_tab << "::efl::eolian::return_traits<" << grammar::type(true) << ">::type " << string << "(" << (parameter % ", ") << ") const;\n")
55 .generate(sink, std::make_tuple(f.return_type, escape_keyword(f.name), f.parameters), ctx)) 55 .generate(sink, std::make_tuple(f.return_type, escape_keyword(f.name), f.parameters), ctx))
56 return false; 56 return false;
57 if(f.is_beta && 57 if(f.is_beta &&
diff --git a/src/lib/eolian_cxx/grammar/part_declaration.hpp b/src/lib/eolian_cxx/grammar/part_declaration.hpp
index 383403c6bd..04258c4020 100644
--- a/src/lib/eolian_cxx/grammar/part_declaration.hpp
+++ b/src/lib/eolian_cxx/grammar/part_declaration.hpp
@@ -18,7 +18,7 @@ struct part_declaration_generator
18 template <typename OutputIterator, typename Context> 18 template <typename OutputIterator, typename Context>
19 bool generate(OutputIterator sink, attributes::part_def const& part, Context const& ctx) const 19 bool generate(OutputIterator sink, attributes::part_def const& part, Context const& ctx) const
20 { 20 {
21 if(!as_generator("::efl::eolian::return_traits<::" << *(string << "::")) 21 if(!as_generator(scope_tab << "::efl::eolian::return_traits<::" << *(string << "::"))
22 .generate(sink, part.klass.namespaces, add_lower_case_context(ctx))) 22 .generate(sink, part.klass.namespaces, add_lower_case_context(ctx)))
23 return false; 23 return false;
24 if(!as_generator(string << ">::type " << string << "() const") 24 if(!as_generator(string << ">::type " << string << "() const")