summaryrefslogtreecommitdiff
path: root/src/parser/smt2
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/smt2
parentd26e19150d5d3a6cc8cee332a5f2067a7383a129 (diff)
Removing throw specifiers from src/parser/. (#1486)
Diffstat (limited to 'src/parser/smt2')
-rw-r--r--src/parser/smt2/smt2.h12
-rw-r--r--src/parser/smt2/smt2_input.h13
-rw-r--r--src/parser/smt2/sygus_input.h11
3 files changed, 17 insertions, 19 deletions
diff --git a/src/parser/smt2/smt2.h b/src/parser/smt2/smt2.h
index 4832fc6b5..94bc03235 100644
--- a/src/parser/smt2/smt2.h
+++ b/src/parser/smt2/smt2.h
@@ -278,9 +278,11 @@ public:
* Smt2 parser provides its own checkDeclaration, which does the
* same as the base, but with some more helpful errors.
*/
- void checkDeclaration(const std::string& name, DeclarationCheck check,
+ void checkDeclaration(const std::string& name,
+ DeclarationCheck check,
SymbolType type = SYM_VARIABLE,
- std::string notes = "") throw(ParserException) {
+ std::string notes = "")
+ {
// if the symbol is something like "-1", we'll give the user a helpful
// syntax hint. (-1 is a valid identifier in SMT-LIB, NOT unary minus.)
if( check != CHECK_DECLARED ||
@@ -304,7 +306,8 @@ public:
this->Parser::checkDeclaration(name, check, type, ss.str());
}
- void checkOperator(Kind kind, unsigned numArgs) throw(ParserException) {
+ void checkOperator(Kind kind, unsigned numArgs)
+ {
Parser::checkOperator(kind, numArgs);
// strict SMT-LIB mode enables extra checks for some bitvector operators
// that CVC4 permits as N-ary but the standard requires is binary
@@ -328,7 +331,8 @@ public:
}
// Throw a ParserException with msg appended with the current logic.
- inline void parseErrorLogic(const std::string& msg) throw(ParserException) {
+ inline void parseErrorLogic(const std::string& msg)
+ {
const std::string withLogic = msg + getLogic().getLogicString();
parseError(withLogic);
}
diff --git a/src/parser/smt2/smt2_input.h b/src/parser/smt2/smt2_input.h
index 4d6168643..0acb5462d 100644
--- a/src/parser/smt2/smt2_input.h
+++ b/src/parser/smt2/smt2_input.h
@@ -53,8 +53,7 @@ class Smt2Input : public AntlrInput {
*/
void init();
-public:
-
+ public:
/**
* Create an input.
*
@@ -67,22 +66,18 @@ public:
virtual ~Smt2Input();
/** Get the language that this Input is reading. */
- InputLanguage getLanguage() const throw() {
- return d_lang;
- }
-
+ InputLanguage getLanguage() const override { return d_lang; }
/** Set the language that this Input is reading. */
void setLanguage(InputLanguage);
-protected:
-
+ protected:
/**
* Parse a command from the input. Returns <code>NULL</code> if
* there is no command there to parse.
*
* @throws ParserException if an error is encountered during parsing.
*/
- Command* parseCommand();
+ Command* parseCommand() override;
/**
* Parse an expression from the input. Returns a null
diff --git a/src/parser/smt2/sygus_input.h b/src/parser/smt2/sygus_input.h
index a66730ad6..0dca60a82 100644
--- a/src/parser/smt2/sygus_input.h
+++ b/src/parser/smt2/sygus_input.h
@@ -50,8 +50,7 @@ class SygusInput : public AntlrInput {
*/
void init();
-public:
-
+ public:
/**
* Create an input.
*
@@ -63,19 +62,19 @@ public:
virtual ~SygusInput();
/** Get the language that this Input is reading. */
- InputLanguage getLanguage() const throw() {
+ InputLanguage getLanguage() const override
+ {
return language::input::LANG_SYGUS;
}
-protected:
-
+ protected:
/**
* Parse a command from the input. Returns <code>NULL</code> if
* there is no command there to parse.
*
* @throws ParserException if an error is encountered during parsing.
*/
- Command* parseCommand();
+ Command* parseCommand() override;
/**
* Parse an expression from the input. Returns a null
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback