aboutsummaryrefslogtreecommitdiff
path: root/odb/plugin.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-03-21 08:36:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-23 16:50:56 +0200
commit8d89bf37dd4ef3cb7373e1841ff57a53916fff0d (patch)
tree704b7de0338eba0e008a96a09b6d57e86846d1b1 /odb/plugin.cxx
parent68ff21c56fb287790440208907ad2a851a108f89 (diff)
Polymorphic inheritance support
Diffstat (limited to 'odb/plugin.cxx')
-rw-r--r--odb/plugin.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/odb/plugin.cxx b/odb/plugin.cxx
index 599760f..73ada7a 100644
--- a/odb/plugin.cxx
+++ b/odb/plugin.cxx
@@ -17,6 +17,7 @@
#include <odb/parser.hxx>
#include <odb/options.hxx>
#include <odb/option-functions.hxx>
+#include <odb/features.hxx>
#include <odb/profile.hxx>
#include <odb/version.hxx>
#include <odb/validator.hxx>
@@ -115,24 +116,26 @@ gate_callback (void*, void*)
parser p (*options_, loc_pragmas_, ns_loc_pragmas_, decl_pragmas_);
auto_ptr<unit> u (p.parse (global_namespace, file_));
+ features f;
+
// Validate, pass 1.
//
validator v;
- v.validate (*options_, *u, file_, 1);
+ v.validate (*options_, f, *u, file_, 1);
// Process.
//
processor pr;
- pr.process (*options_, *u, file_);
+ pr.process (*options_, f, *u, file_);
// Validate, pass 2.
//
- v.validate (*options_, *u, file_, 2);
+ v.validate (*options_, f, *u, file_, 2);
// Generate.
//
generator g;
- g.generate (*options_, *u, file_);
+ g.generate (*options_, f, *u, file_);
}
catch (pragmas_failed const&)
{