diff options
Diffstat (limited to 'build2/cc/parser.hxx')
-rw-r--r-- | build2/cc/parser.hxx | 14 |
1 files changed, 4 insertions, 10 deletions
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 <build2/diagnostics.hxx> +#include <build2/cc/types.hxx> + 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<string> 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); |