summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-28 21:32:45 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-05 15:01:45 +0900
commit2b0805ddce66903c73c82047772f695b70c3b810 (patch)
tree08cd3fe7f63032fa383b358fbb0642a4aa044cc2 /src/lib/eolian_cxx/grammar
parent052d9dda448abe4e12c3f4d1a234eb6896f6487b (diff)
cxx: Define types after forward declarations
This is useful if the types refer to the current class.
Diffstat (limited to 'src/lib/eolian_cxx/grammar')
-rw-r--r--src/lib/eolian_cxx/grammar/header.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian_cxx/grammar/header.hpp b/src/lib/eolian_cxx/grammar/header.hpp
index 4f1df9233f..29435404dd 100644
--- a/src/lib/eolian_cxx/grammar/header.hpp
+++ b/src/lib/eolian_cxx/grammar/header.hpp
@@ -24,9 +24,9 @@ auto class_header =
24 << "#include <Eina.hh>\n" 24 << "#include <Eina.hh>\n"
25 "#include <Eo.hh>\n" 25 "#include <Eo.hh>\n"
26 << *header_include_directive // sequence<string> 26 << *header_include_directive // sequence<string>
27 << string // extra header <string>
28 << *class_declaration // sequence<class> | class 27 << *class_declaration // sequence<class> | class
29 << *class_forward_declaration // sequence<class> | class 28 << *class_forward_declaration // sequence<class> | class
29 << string // extra header <string>
30 << "\nnamespace eo_cxx {\n" 30 << "\nnamespace eo_cxx {\n"
31 << *base_class_definition // sequence<class> | class 31 << *base_class_definition // sequence<class> | class
32 << "}\n" 32 << "}\n"