summaryrefslogtreecommitdiff
path: root/cli/generator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-04 09:00:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-04 09:00:19 +0200
commitbeab8baab8a7f727f5ba65ecbd7e11decea18112 (patch)
treeac06c0ee6e7e92e3853f717e47143d3f3d5d49ff /cli/generator.cxx
parent0f637644070c796d4a1561dc38dceb1de15cd577 (diff)
Add --suppress-inline option
Diffstat (limited to 'cli/generator.cxx')
-rw-r--r--cli/generator.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/generator.cxx b/cli/generator.cxx
index 0142201..6c766e4 100644
--- a/cli/generator.cxx
+++ b/cli/generator.cxx
@@ -75,7 +75,7 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p)
{
try
{
- bool inl (false);
+ bool inl (!ops.suppress_inline ());
string hxx_suffix (".hxx");
string ixx_suffix (".ixx");
@@ -104,7 +104,7 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p)
// Process names.
//
{
- context ctx (cerr, unit);
+ context ctx (cerr, unit, ops);
process_names (ctx);
}
@@ -167,7 +167,7 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p)
//
{
cxx_filter filt (hxx);
- context ctx (hxx, unit);
+ context ctx (hxx, unit, ops);
string guard (make_guard (hxx_name, "", ctx));
@@ -193,7 +193,7 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p)
if (inl)
{
cxx_filter filt (ixx);
- context ctx (ixx, unit);
+ context ctx (ixx, unit, ops);
generate_inline (ctx);
}
@@ -201,7 +201,7 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p)
//
{
cxx_filter filt (cxx);
- context ctx (cxx, unit);
+ context ctx (cxx, unit, ops);
cxx << "#include \"" << hxx_name << "\"" << endl
<< endl;