aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/parser.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-27 15:24:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-27 15:24:25 +0200
commit2e19434e09b819105055ddc8e58f69db98ec8669 (patch)
treee806e15f6e940a9135f0e7d8cf9ba08637512bd8 /build2/cc/parser.hxx
parentde417f02b2b1f3a02c5c9d206f399c574a93bf7f (diff)
Handle #line directives in C/C++ lexer
This way the parser now reports logical rather than physical location in diagnostics.
Diffstat (limited to 'build2/cc/parser.hxx')
-rw-r--r--build2/cc/parser.hxx7
1 files changed, 0 insertions, 7 deletions
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_;
};