summaryrefslogtreecommitdiff
path: root/cli/generator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-20 18:47:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-20 18:47:48 +0200
commit0804aa8543136f3e1585e0e59a14f9c331c0c448 (patch)
tree7ffaaf06f0627b13fe3f14868d19bdd277d98399 /cli/generator.cxx
parentddb77e1407eeaf0f18390cb49d915ca50ac2b528 (diff)
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.
Diffstat (limited to 'cli/generator.cxx')
-rw-r--r--cli/generator.cxx8
1 files changed, 8 insertions, 0 deletions
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;
//