summaryrefslogtreecommitdiff
path: root/cli/semantics/class.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cli/semantics/class.cxx')
-rw-r--r--cli/semantics/class.cxx28
1 files changed, 28 insertions, 0 deletions
diff --git a/cli/semantics/class.cxx b/cli/semantics/class.cxx
new file mode 100644
index 0000000..baa056c
--- /dev/null
+++ b/cli/semantics/class.cxx
@@ -0,0 +1,28 @@
+// file : cli/semantics/class.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+#include <cutl/compiler/type-info.hxx>
+
+#include <semantics/class.hxx>
+
+namespace semantics
+{
+ // type info
+ //
+ namespace
+ {
+ struct init
+ {
+ init ()
+ {
+ using compiler::type_info;
+
+ type_info ti (typeid (class_));
+ ti.add_base (typeid (scope));
+ insert (ti);
+ }
+ } init_;
+ }
+}