aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/parser.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/parser.hxx')
-rw-r--r--build2/cc/parser.hxx55
1 files changed, 0 insertions, 55 deletions
diff --git a/build2/cc/parser.hxx b/build2/cc/parser.hxx
deleted file mode 100644
index 3a588e9..0000000
--- a/build2/cc/parser.hxx
+++ /dev/null
@@ -1,55 +0,0 @@
-// file : build2/cc/parser.hxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-#ifndef BUILD2_CC_PARSER_HXX
-#define BUILD2_CC_PARSER_HXX
-
-#include <libbuild2/types.hxx>
-#include <libbuild2/utility.hxx>
-
-#include <libbuild2/diagnostics.hxx>
-
-#include <build2/cc/types.hxx>
-
-namespace build2
-{
- namespace cc
- {
- // Extract translation unit information from a preprocessed C/C++ source.
- //
- struct token;
- class lexer;
-
- class parser
- {
- public:
- unit
- parse (ifdstream&, const path& name);
-
- private:
- void
- parse_import (token&, bool);
-
- void
- parse_module (token&, bool);
-
- string
- parse_module_name (token&);
-
- string
- parse_header_name (token&);
-
- public:
- string checksum; // Translation unit checksum.
-
- private:
- lexer* l_;
- unit* u_;
-
- optional<location> module_marker_;
- };
- }
-}
-
-#endif // BUILD2_CC_PARSER_HXX