From 0804aa8543136f3e1585e0e59a14f9c331c0c448 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 20 Sep 2009 18:47:48 +0200 Subject: Add name processor Name processor is a separate pass over the semantics graph that assigns names to various constructs while making sure there are no name clashes. --- cli/generator.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cli/generator.cxx') diff --git a/cli/generator.cxx b/cli/generator.cxx index c23f382..b864dfb 100644 --- a/cli/generator.cxx +++ b/cli/generator.cxx @@ -19,6 +19,7 @@ #include "context.hxx" #include "generator.hxx" +#include "name-processor.hxx" using namespace std; using namespace cutl; @@ -99,6 +100,13 @@ generate (semantics::cli_unit& unit, path const& p) cxx_path = dir / cxx_path; } + // Process names. + // + { + context ctx (cerr, unit); + process_names (ctx); + } + fs::auto_removes auto_rm; // -- cgit v1.1