summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-28 15:39:39 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-05 15:01:43 +0900
commit5d6a5343b7949daf2bdb5c24af8f7dac66519386 (patch)
tree78941cae450ffc8aceb7f0ca588ed9020e2ef2c3 /src/lib/eolian_cxx
parentcb7f2d0dd5da40be7ae0bcaf89ceebe3c0d32b6d (diff)
cxx: Include definition header in impl header
Good for IDE's. Not extremely useful considering how unreadable those files are.
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/class_implementation.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/eolian_cxx/grammar/class_implementation.hpp b/src/lib/eolian_cxx/grammar/class_implementation.hpp
index 60eb075073..615ee6022e 100644
--- a/src/lib/eolian_cxx/grammar/class_implementation.hpp
+++ b/src/lib/eolian_cxx/grammar/class_implementation.hpp
@@ -38,6 +38,10 @@ struct class_implementation_generator
38 .generate(sink, std::make_tuple(), ctx)) 38 .generate(sink, std::make_tuple(), ctx))
39 return false; 39 return false;
40 40
41 if(!as_generator("\n#include \"" << *(string << "_") << string << ".eo.hh\"\n\n")
42 .generate(sink, std::make_tuple(cls.namespaces, cls.cxx_name), add_lower_case_context(ctx)))
43 return false;
44
41#ifndef USE_EOCXX_INHERIT_ONLY 45#ifndef USE_EOCXX_INHERIT_ONLY
42 if(!as_generator( 46 if(!as_generator(
43 (namespaces 47 (namespaces