forked from enlightenment/efl
cxx: Fix indentation of ifdef guard
This commit is contained in:
parent
c372e5e6c7
commit
0f812f1584
|
@ -34,10 +34,10 @@ struct base_class_definition_generator
|
|||
"struct " << string << " {\n"
|
||||
).generate(sink, cls.cxx_name, context)) return false;
|
||||
|
||||
if(!as_generator(*(scope_tab << function_declaration(get_klass_name(cls))))
|
||||
if(!as_generator(*(function_declaration(get_klass_name(cls))))
|
||||
.generate(sink, cls.functions, context)) return false;
|
||||
|
||||
if(!as_generator(*(scope_tab << part_declaration << ";\n"))
|
||||
if(!as_generator(*(part_declaration << ";\n"))
|
||||
.generate(sink, cls.parts, context)) return false;
|
||||
|
||||
// static Efl_Class const* _eo_class();
|
||||
|
|
|
@ -97,7 +97,7 @@ struct class_definition_generator
|
|||
).generate(sink, attributes::make_infinite_tuple(cls.cxx_name), context)) return false;
|
||||
|
||||
#ifndef USE_EOCXX_INHERIT_ONLY
|
||||
if(!as_generator(*(scope_tab << function_declaration(get_klass_name(cls))))
|
||||
if(!as_generator(*(function_declaration(get_klass_name(cls))))
|
||||
.generate(sink, cls.functions, context)) return false;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ struct function_declaration_generator
|
|||
return false;
|
||||
|
||||
if(!as_generator
|
||||
("::efl::eolian::return_traits<" << grammar::type(true) << ">::type " << string << "(" << (parameter % ", ") << ") const;\n")
|
||||
(scope_tab << "::efl::eolian::return_traits<" << grammar::type(true) << ">::type " << string << "(" << (parameter % ", ") << ") const;\n")
|
||||
.generate(sink, std::make_tuple(f.return_type, escape_keyword(f.name), f.parameters), ctx))
|
||||
return false;
|
||||
if(f.is_beta &&
|
||||
|
|
|
@ -18,7 +18,7 @@ struct part_declaration_generator
|
|||
template <typename OutputIterator, typename Context>
|
||||
bool generate(OutputIterator sink, attributes::part_def const& part, Context const& ctx) const
|
||||
{
|
||||
if(!as_generator("::efl::eolian::return_traits<::" << *(string << "::"))
|
||||
if(!as_generator(scope_tab << "::efl::eolian::return_traits<::" << *(string << "::"))
|
||||
.generate(sink, part.klass.namespaces, add_lower_case_context(ctx)))
|
||||
return false;
|
||||
if(!as_generator(string << ">::type " << string << "() const")
|
||||
|
|
Loading…
Reference in New Issue