From 7f6c64f2211d37db76a97fbc79a4b5492302ef2f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 27 Oct 2010 17:36:59 +0200 Subject: Implement support for composite value types New test: common/composite. --- odb/include.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'odb/include.cxx') diff --git a/odb/include.cxx b/odb/include.cxx index a56d577..c9da8b2 100644 --- a/odb/include.cxx +++ b/odb/include.cxx @@ -74,11 +74,13 @@ namespace if (c.file () == unit.file ()) return; - if (!(c.count ("object") || c.count ("value"))) + // We only generate things for objects and composite value types. + // + if (!(c.count ("object") || comp_value (c))) return; - // This is a persistent object or value type declared in another - // header file. Include its -odb header. + // This is a persistent object or composite value type declared in + // another header file. Include its -odb header. // tree decl (TYPE_NAME (c.tree_node ())); location_t l (DECL_SOURCE_LOCATION (decl)); -- cgit v1.1