From 4fd6bca4e75870958ea61b94e0a1e60e78cd91bc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 8 Jan 2012 17:27:40 +0200 Subject: Add support for defining composite value type as class template instantiations --- odb/plugin.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'odb/plugin.cxx') diff --git a/odb/plugin.cxx b/odb/plugin.cxx index fbf1fa0..dd813d8 100644 --- a/odb/plugin.cxx +++ b/odb/plugin.cxx @@ -107,6 +107,12 @@ gate_callback (void*, void*) try { + // Post process pragmas. + // + post_process_pragmas (); + + // Parse the GCC tree to semantic graph. + // parser p (*options_, loc_pragmas_, decl_pragmas_); auto_ptr u (p.parse (global_namespace, file_)); @@ -129,6 +135,12 @@ gate_callback (void*, void*) generator g; g.generate (*options_, *u, file_); } + catch (pragmas_failed const&) + { + // Diagnostics has aready been issued. + // + r = 1; + } catch (parser::failed const&) { // Diagnostics has aready been issued. -- cgit v1.1