From a14b9bc18431c6aed8441261d28b6ff20bd25935 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 Apr 2019 14:44:32 +0200 Subject: Initial take on header unit and include translation support --- build2/cc/parser.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build2/cc/parser.hxx') diff --git a/build2/cc/parser.hxx b/build2/cc/parser.hxx index b8a4940..2050dd1 100644 --- a/build2/cc/parser.hxx +++ b/build2/cc/parser.hxx @@ -24,7 +24,7 @@ namespace build2 class parser { public: - translation_unit + unit parse (ifdstream&, const path& name); private: @@ -37,12 +37,15 @@ namespace build2 string parse_module_name (token&); + string + parse_header_name (token&); + public: string checksum; // Translation unit checksum. private: lexer* l_; - translation_unit* u_; + unit* u_; optional module_marker_; }; -- cgit v1.1