diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-14 13:06:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-14 13:06:38 +0200 |
commit | 57abb0703ec640fdcd0b0ac165f742bbc34df533 (patch) | |
tree | ec0fc9b3f23b2ed34e354978788384ee08be8035 /build2/cc/parser.hxx | |
parent | 700f2e7c4be9c8caa0ac0fcd58b1a0ce505e33fa (diff) |
Next installment in C++ modules saga: module search, re-export support
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); |