From beab8baab8a7f727f5ba65ecbd7e11decea18112 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 4 Oct 2009 09:00:19 +0200 Subject: Add --suppress-inline option --- cli/generator.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cli/generator.cxx') 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; -- cgit v1.1