diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-01 07:28:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-01 07:28:20 +0200 |
commit | e188fbebff1d4ba01ec906867e2d7ef0824b01f8 (patch) | |
tree | 09a8659d1710d11170128606e7c081e492a3dddb /libbuild2/cc/parser.cxx | |
parent | 11f2e201272239b22a5696eb0537d4357a882398 (diff) |
Modules-related refactoring
Diffstat (limited to 'libbuild2/cc/parser.cxx')
-rw-r--r-- | libbuild2/cc/parser.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libbuild2/cc/parser.cxx b/libbuild2/cc/parser.cxx index 9559b87..61d62b7 100644 --- a/libbuild2/cc/parser.cxx +++ b/libbuild2/cc/parser.cxx @@ -14,13 +14,11 @@ namespace build2 { using type = token_type; - unit parser:: - parse (ifdstream& is, const path_name& in) + void parser:: + parse (ifdstream& is, const path_name& in, unit& u) { lexer l (is, in); l_ = &l; - - unit u; u_ = &u; // If the source has errors then we want the compiler to issues the @@ -160,7 +158,6 @@ namespace build2 << "global module fragment"; checksum = l.checksum (); - return u; } void parser:: |