diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-25 13:47:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-25 13:47:43 +0200 |
commit | 01f77f6d38283b4efbe2b55fc9c7c837fd6498dc (patch) | |
tree | 12059fa0c514a3f2b9da2a9419593e3596cc6f5d /odb/semantics/class-template.cxx | |
parent | ad637abaa62a26461b276769c35dd1b67036b54b (diff) |
Add support for union, enum, class/union template
Diffstat (limited to 'odb/semantics/class-template.cxx')
-rw-r--r-- | odb/semantics/class-template.cxx | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/odb/semantics/class-template.cxx b/odb/semantics/class-template.cxx new file mode 100644 index 0000000..05deef8 --- /dev/null +++ b/odb/semantics/class-template.cxx @@ -0,0 +1,42 @@ +// file : odb/semantics/class-template.cxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#include <cutl/compiler/type-info.hxx> + +#include <semantics/class-template.hxx> + +namespace semantics +{ + // type info + // + namespace + { + struct init + { + init () + { + using compiler::type_info; + + // class_template + // + { + type_info ti (typeid (class_template)); + ti.add_base (typeid (type_template)); + ti.add_base (typeid (scope)); + insert (ti); + } + + // class_instantiation + // + { + type_info ti (typeid (class_instantiation)); + ti.add_base (typeid (class_)); + ti.add_base (typeid (type_instantiation)); + insert (ti); + } + } + } init_; + } +} |