summaryrefslogtreecommitdiff
path: root/cli/inline.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-20 07:06:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-20 07:06:51 +0200
commitddb77e1407eeaf0f18390cb49d915ca50ac2b528 (patch)
treea914a9aaa4894f94795cb2b556e332ce25470e37 /cli/inline.cxx
parentf15dcbcb90c92e0ce4c9ff575349b60713fe1f83 (diff)
Add header, inline, and source generators
All they currently do is output the namespace structure plus the included C++ files for header.
Diffstat (limited to 'cli/inline.cxx')
-rw-r--r--cli/inline.cxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/cli/inline.cxx b/cli/inline.cxx
new file mode 100644
index 0000000..e376d76
--- /dev/null
+++ b/cli/inline.cxx
@@ -0,0 +1,24 @@
+// file : cli/inline.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+#include "inline.hxx"
+
+namespace
+{
+
+}
+
+void
+generate_inline (context& ctx)
+{
+ traversal::cli_unit unit;
+ traversal::names unit_names;
+ namespace_ ns (ctx);
+ traversal::names ns_names;
+
+ unit >> unit_names >> ns >> ns_names >> ns;
+
+ unit.dispatch (ctx.unit);
+}