aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/parser.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-11-18 08:00:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-11-19 13:00:11 +0200
commit6a2d1e3062964fc16cfbc43bc69284f854c35dca (patch)
tree33b10d64adaa01d6afd58f121cb77bdde53d4116 /libbuild2/cc/parser.hxx
parentf91468192ad7066a5e6fa63ddc4e4231e632a457 (diff)
Handle C++20 module partitions in scanner
Diffstat (limited to 'libbuild2/cc/parser.hxx')
-rw-r--r--libbuild2/cc/parser.hxx17
1 files changed, 14 insertions, 3 deletions
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&);