cxx: Include definition header in impl header
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 28 Nov 2017 06:39:39 +0000 (15:39 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 5 Dec 2017 06:01:43 +0000 (15:01 +0900)
Good for IDE's. Not extremely useful considering how unreadable those
files are.

src/lib/eolian_cxx/grammar/class_implementation.hpp

index 60eb075..615ee60 100644 (file)
@@ -38,6 +38,10 @@ struct class_implementation_generator
         .generate(sink, std::make_tuple(), ctx))
        return false;
 
+     if(!as_generator("\n#include \"" << *(string << "_") << string << ".eo.hh\"\n\n")
+        .generate(sink, std::make_tuple(cls.namespaces, cls.cxx_name), add_lower_case_context(ctx)))
+       return false;
+
 #ifndef USE_EOCXX_INHERIT_ONLY
      if(!as_generator(
         (namespaces