aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-02-18 09:19:04 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2022-02-18 09:19:04 +0100
commit5f35a8c63780f5033c168d3c32bf68d203695e8d (patch)
tree39943403140af2d3b07357cdea720f6a4a08b01d /gcc
parent9fb06d66cef70584e7aa2fa3a6ad22ef7def6b84 (diff)
downloadgcc-5f35a8c63780f5033c168d3c32bf68d203695e8d.zip
gcc-5f35a8c63780f5033c168d3c32bf68d203695e8d.tar.gz
gcc-5f35a8c63780f5033c168d3c32bf68d203695e8d.tar.bz2
parser: Add `clear_errors()` method
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/parse/rust-parse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h
index 5ee7b4e..616a88b 100644
--- a/gcc/rust/parse/rust-parse.h
+++ b/gcc/rust/parse/rust-parse.h
@@ -603,6 +603,7 @@ private:
bool done_end_of_file ();
void add_error (Error error) { error_table.push_back (std::move (error)); }
+ void clear_errors () { error_table.clear (); }
public:
// Construct parser with specified "managed" token source.