diff options
Diffstat (limited to 'odb/plugin.cxx')
-rw-r--r-- | odb/plugin.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/odb/plugin.cxx b/odb/plugin.cxx index aba5e78..7f01478 100644 --- a/odb/plugin.cxx +++ b/odb/plugin.cxx @@ -110,11 +110,11 @@ gate_callback (void*, void*) parser p (*options_, loc_pragmas_, decl_pragmas_); auto_ptr<unit> u (p.parse (global_namespace, file_)); - // Validate. + // Validate, pass 1. // { validator v; - if (!v.validate (*options_, *u, file_)) + if (!v.validate (*options_, *u, file_, 1)) r = 1; } @@ -126,6 +126,15 @@ gate_callback (void*, void*) p.process (*options_, *u, file_); } + // Validate, pass 2. + // + if (r == 0) + { + validator v; + if (!v.validate (*options_, *u, file_, 2)) + r = 1; + } + // Generate. // if (r == 0) |