aboutsummaryrefslogtreecommitdiff
path: root/odb/tracer
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-19 14:36:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-19 14:36:47 +0200
commit33cd64535d2307a2e7884ee0796e1aae42937aaf (patch)
tree6f20845b78387138def085377b3a07f984f09507 /odb/tracer
parent7615f4dd87092aec82569bce68d75efcb82a90ae (diff)
Add validator pass
Detect members with anonymous types.
Diffstat (limited to 'odb/tracer')
-rw-r--r--odb/tracer/header.cxx28
1 files changed, 0 insertions, 28 deletions
diff --git a/odb/tracer/header.cxx b/odb/tracer/header.cxx
index 011ff9d..0516847 100644
--- a/odb/tracer/header.cxx
+++ b/odb/tracer/header.cxx
@@ -32,37 +32,9 @@ namespace tracer
//
id_member t;
t.traverse (c);
-
- if (t.member () == 0)
- {
- cerr << c.file () << ":" << c.line () << ":" << c.column () << ":"
- << " error: no data member designated as object id" << endl;
-
- cerr << c.file () << ":" << c.line () << ":" << c.column () << ":"
- << " info: use '#pragma odb id' to specify object id member"
- << endl;
-
- throw generation_failed ();
- }
-
semantics::data_member& id (*t.member ());
semantics::type& id_type (id.type ());
- if (id_type.anonymous ())
- {
- // Can be a template-id (which we should handle eventually) or an
- // anonymous type in member declaration (e.g., struct {...} m_;).
- //
- cerr << id.file () << ":" << id.line () << ":" << id.column () << ":"
- << " error: unnamed type in data member declaration" << endl;
-
- cerr << id.file () << ":" << id.line () << ":" << id.column () << ":"
- << " info: use 'typedef' to name this type"
- << endl;
-
- throw generation_failed ();
- }
-
os << "// " << c.name () << endl
<< "//" << endl;