From 2e19434e09b819105055ddc8e58f69db98ec8669 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 27 May 2017 15:24:25 +0200 Subject: Handle #line directives in C/C++ lexer This way the parser now reports logical rather than physical location in diagnostics. --- build2/cc/parser.hxx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'build2/cc/parser.hxx') diff --git a/build2/cc/parser.hxx b/build2/cc/parser.hxx index d52ddc9..00be190 100644 --- a/build2/cc/parser.hxx +++ b/build2/cc/parser.hxx @@ -30,8 +30,6 @@ namespace build2 class parser { public: - parser (): fail ("error", &name_), warn ("warning", &name_) {} - translation_unit parse (istream&, const path& name); @@ -46,11 +44,6 @@ namespace build2 parse_module_name (token&); private: - const path* name_; - - const fail_mark fail; - const basic_mark warn; - lexer* l_; translation_unit* u_; }; -- cgit v1.1