From 57abb0703ec640fdcd0b0ac165f742bbc34df533 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 14 Jun 2017 13:06:38 +0200 Subject: Next installment in C++ modules saga: module search, re-export support --- build2/cc/parser.hxx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'build2/cc/parser.hxx') diff --git a/build2/cc/parser.hxx b/build2/cc/parser.hxx index 00be190..8f327cd 100644 --- a/build2/cc/parser.hxx +++ b/build2/cc/parser.hxx @@ -10,20 +10,14 @@ #include +#include + namespace build2 { namespace cc { - // Extract (currently module) information from a preprocessed C/C++ - // source. + // Extract translation unit information from a preprocessed C/C++ source. // - struct translation_unit - { - string module_name; // If not empty, then a module unit. - bool module_interface; // If true, then module interface unit. - vector module_imports; // Imported modules. - }; - struct token; class lexer; @@ -35,7 +29,7 @@ namespace build2 private: void - parse_import (token&); + parse_import (token&, bool); void parse_module (token&, bool); -- cgit v1.1