public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] parser: Add `clear_errors()` method
@ 2022-06-08 12:09 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:09 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:5f35a8c63780f5033c168d3c32bf68d203695e8d
commit 5f35a8c63780f5033c168d3c32bf68d203695e8d
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date: Fri Feb 18 09:19:04 2022 +0100
parser: Add `clear_errors()` method
Diff:
---
gcc/rust/parse/rust-parse.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h
index 5ee7b4e6c85..616a88b0e16 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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:09 [gcc/devel/rust/master] parser: Add `clear_errors()` method Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).