aboutsummaryrefslogtreecommitdiff
path: root/odb/semantics/enum.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/semantics/enum.cxx')
-rw-r--r--odb/semantics/enum.cxx21
1 files changed, 18 insertions, 3 deletions
diff --git a/odb/semantics/enum.cxx b/odb/semantics/enum.cxx
index 7cffe30..dd8b905 100644
--- a/odb/semantics/enum.cxx
+++ b/odb/semantics/enum.cxx
@@ -22,13 +22,18 @@ namespace semantics
{
}
+ underlies::
+ underlies ()
+ : type_ (0), enum__ (0), hint_ (0)
+ {
+ }
+
enum_::
enum_ (path const& file,
size_t line,
size_t column,
- tree tn,
- bool unsigned_)
- : node (file, line, column, tn), unsigned__ (unsigned_)
+ tree tn)
+ : node (file, line, column, tn)
{
}
@@ -54,15 +59,25 @@ namespace semantics
//
{
type_info ti (typeid (enumerator));
+ ti.add_base (typeid (nameable));
ti.add_base (typeid (instance));
insert (ti);
}
+ // underlies
+ //
+ {
+ type_info ti (typeid (underlies));
+ ti.add_base (typeid (edge));
+ insert (ti);
+ }
+
// enum_
//
{
type_info ti (typeid (enum_));
ti.add_base (typeid (type));
+ ti.add_base (typeid (scope));
insert (ti);
}
}