From cb65012eb524eb57b00249f1dee0f245e947cda4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 13 Sep 2009 18:46:11 +0200 Subject: 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. --- cli/semantics/elements.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cli/semantics/elements.hxx') 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 // std::pair #include +#include + #include #include @@ -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 (); } -- cgit