Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lin Zhihao <59785146+LinZhihao-723@users.noreply.github.com>
  • Loading branch information
gibber9809 and LinZhihao-723 authored Aug 12, 2024
1 parent d96505e commit 436c396
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class ErrorListener : public antlr4::BaseErrorListener {
m_error_message = msg;
}

bool error() const { return m_error; }
[[nodiscard]] bool error() const { return m_error; }

std::string const& message() const { return m_error_message; }
[[nodiscard]] std::string const& message() const { return m_error_message; }

private:
bool m_error{false};
Expand Down

0 comments on commit 436c396

Please sign in to comment.