diff options
| author | Fuwn <[email protected]> | 2022-06-24 13:45:00 -1000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-06-24 13:45:00 -1000 |
| commit | c8f9797a88edd041d835a2b388fb8779474c3e81 (patch) | |
| tree | 19c74f21b1ccf376a6c59f26b8e267cf1662e219 | |
| parent | fix(src): apply clang-tidy fixes (diff) | |
| download | cait-c8f9797a88edd041d835a2b388fb8779474c3e81.tar.xz cait-c8f9797a88edd041d835a2b388fb8779474c3e81.zip | |
refactor(parser): out-of-line definition for parser_exception
| -rw-r--r-- | src/parser.cc | 3 | ||||
| -rw-r--r-- | src/parser.hh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/parser.cc b/src/parser.cc index 7bbc388..f853629 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -23,6 +23,9 @@ namespace cait { +parser_exception::parser_exception(const std::string &message) + : std::runtime_error(message) {} + token_bundle::token_bundle(std::size_t &_j, token_t &bundle_token, std::vector<token_t> &_parsed_token_line, std::vector<token_t> &_token_line) diff --git a/src/parser.hh b/src/parser.hh index f49081e..5d1cdb4 100644 --- a/src/parser.hh +++ b/src/parser.hh @@ -31,8 +31,7 @@ using node_tree = std::vector<node::node_set>; class parser_exception : public std::runtime_error { public: - explicit parser_exception(const std::string &message) - : std::runtime_error(message) {} + explicit parser_exception(const std::string &); }; struct token_bundle { |