summaryrefslogtreecommitdiff
path: root/src/parser/antlr_input.h
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2018-01-06 15:27:11 -0800
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-01-06 17:27:11 -0600
commit8497910df4d1c254b26f09c3dc5ee6191c970b12 (patch)
tree495df915de750ad09ade2d9f8844365e5feaeb76 /src/parser/antlr_input.h
parentd26e19150d5d3a6cc8cee332a5f2067a7383a129 (diff)
Removing throw specifiers from src/parser/. (#1486)
Diffstat (limited to 'src/parser/antlr_input.h')
-rw-r--r--src/parser/antlr_input.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/parser/antlr_input.h b/src/parser/antlr_input.h
index afede6bbf..d2bb8667d 100644
--- a/src/parser/antlr_input.h
+++ b/src/parser/antlr_input.h
@@ -88,14 +88,12 @@ public:
* input will use the standard ANTLR3 I/O implementation.
*/
static AntlrInputStream* newFileInputStream(const std::string& name,
- bool useMmap = false)
- throw (InputStreamException);
+ bool useMmap = false);
/** Create an input from an istream. */
static AntlrInputStream* newStreamInputStream(std::istream& input,
const std::string& name,
- bool lineBuffered = false)
- throw (InputStreamException);
+ bool lineBuffered = false);
/** Create a string input.
* NOTE: the new AntlrInputStream will take ownership of input over
@@ -105,8 +103,7 @@ public:
* @param name the "filename" to use when reporting errors
*/
static AntlrInputStream* newStringInputStream(const std::string& input,
- const std::string& name)
- throw (InputStreamException);
+ const std::string& name);
};/* class AntlrInputStream */
class Parser;
@@ -223,13 +220,12 @@ protected:
/**
* Issue a non-fatal warning to the user with file, line, and column info.
*/
- void warning(const std::string& msg);
+ void warning(const std::string& msg) override;
/**
* Throws a <code>ParserException</code> with the given message.
*/
- void parseError(const std::string& msg, bool eofException = false)
- throw (ParserException);
+ void parseError(const std::string& msg, bool eofException = false) override;
/** Set the ANTLR3 lexer for this input. */
void setAntlr3Lexer(pANTLR3_LEXER pLexer);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback