From 6a2d1e3062964fc16cfbc43bc69284f854c35dca Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 18 Nov 2020 08:00:16 +0200 Subject: Handle C++20 module partitions in scanner --- libbuild2/cc/parser.hxx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'libbuild2/cc/parser.hxx') diff --git a/libbuild2/cc/parser.hxx b/libbuild2/cc/parser.hxx index 7c893b5..db5858e 100644 --- a/libbuild2/cc/parser.hxx +++ b/libbuild2/cc/parser.hxx @@ -28,13 +28,24 @@ namespace build2 private: void - parse_import (token&, bool); + parse_module (token&, bool, location_value); void - parse_module (token&, bool, location_value); + parse_import (token&, bool); string - parse_module_name (token&); + parse_module_name (token&, bool); + + string + parse_module_part (token& t) + { + string n; + parse_module_part (t, n); + return n; + } + + void + parse_module_part (token&, string&); string parse_header_name (token&); -- cgit v1.1