Skip to content

Commit

Permalink
Merge pull request #2541 from zufuliu/fix-clang-Wdelete-non-abstract-…
Browse files Browse the repository at this point in the history
…non-virtual-dtor

Add default virtual destructor for `Parser` class.
  • Loading branch information
jhasse authored Dec 10, 2024
2 parents d344479 + 32e9958 commit 127f2d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ struct State;
struct Parser {
Parser(State* state, FileReader* file_reader)
: state_(state), file_reader_(file_reader) {}
virtual ~Parser() {}

/// Load and parse a file.
bool Load(const std::string& filename, std::string* err, Lexer* parent = NULL);
Expand Down

0 comments on commit 127f2d3

Please sign in to comment.