diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-27 17:36:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-27 17:36:59 +0200 |
commit | 7f6c64f2211d37db76a97fbc79a4b5492302ef2f (patch) | |
tree | f2e386644fcaab5c51e3f5ad0ac737ea5b4d5bd2 /odb/include.cxx | |
parent | 5259b98c75f3754a0f713bcee4bddd0ed7ce35ef (diff) |
Implement support for composite value types
New test: common/composite.
Diffstat (limited to 'odb/include.cxx')
-rw-r--r-- | odb/include.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
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)); |