diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-13 18:46:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-13 18:46:11 +0200 |
commit | cb65012eb524eb57b00249f1dee0f245e947cda4 (patch) | |
tree | 9706e59d98f2208ec110d84a5aaef14e45b49542 /cli/semantics/elements.hxx | |
parent | a1686fdeabe24823225cfb4cf79646e12cf98b2c (diff) |
Use new path class, add context and generator classes
Use cutl::fs::path instead of std::string in the semantic
graph. Add context and generator stubs, to be filled next.
Connect everything in the compiler driver.
Diffstat (limited to 'cli/semantics/elements.hxx')
-rw-r--r-- | cli/semantics/elements.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/semantics/elements.hxx b/cli/semantics/elements.hxx index f9b08fc..da9e031 100644 --- a/cli/semantics/elements.hxx +++ b/cli/semantics/elements.hxx @@ -15,6 +15,8 @@ #include <utility> // std::pair #include <cassert> +#include <cutl/fs/path.hxx> + #include <cutl/container/graph.hxx> #include <cutl/container/pointer-iterator.hxx> @@ -35,9 +37,11 @@ namespace semantics // // - typedef string path; typedef string name; + using fs::path; + using fs::invalid_path; + // // @@ -141,6 +145,7 @@ namespace semantics // For virtual inheritance. Should never be actually called. // node () + : file_ ("") { std::abort (); } |