diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-08 14:51:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-27 11:38:53 +0300 |
commit | 720c5a33b6a49cf328fdd7611f49153cf8f60247 (patch) | |
tree | 9725f3d1f42ec90fde84520f49647edea013ce5e /cli/cli/semantics/unit.cxx | |
parent | 3183f3bb927a90783ae0aeaf190a0919377aabe4 (diff) |
Separate tests and examples into individual packages
Also make cli module to be explicitly enabled via the config.cli configuration
variable.
Diffstat (limited to 'cli/cli/semantics/unit.cxx')
-rw-r--r-- | cli/cli/semantics/unit.cxx | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/cli/cli/semantics/unit.cxx b/cli/cli/semantics/unit.cxx new file mode 100644 index 0000000..9c532ea --- /dev/null +++ b/cli/cli/semantics/unit.cxx @@ -0,0 +1,63 @@ +// file : cli/semantics/unit.cxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// license : MIT; see accompanying LICENSE file + +#include <cutl/compiler/type-info.hxx> + +#include <cli/semantics/unit.hxx> + +namespace semantics +{ + // type info + // + namespace + { + struct init + { + init () + { + using compiler::type_info; + + // includes + // + { + type_info ti (typeid (includes)); + ti.add_base (typeid (edge)); + insert (ti); + } + + // cxx_includes + // + { + type_info ti (typeid (cxx_includes)); + ti.add_base (typeid (includes)); + insert (ti); + } + + // cli_includes + // + { + type_info ti (typeid (cli_includes)); + ti.add_base (typeid (includes)); + insert (ti); + } + + // cxx_unit + // + { + type_info ti (typeid (cxx_unit)); + ti.add_base (typeid (node)); + insert (ti); + } + + // cli_unit + // + { + type_info ti (typeid (cli_unit)); + ti.add_base (typeid (namespace_)); + insert (ti); + } + } + } init_; + } +} |