summaryrefslogtreecommitdiff
path: root/src/parser/antlr_input.cpp
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.cpp
parentd26e19150d5d3a6cc8cee332a5f2067a7383a129 (diff)
Removing throw specifiers from src/parser/. (#1486)
Diffstat (limited to 'src/parser/antlr_input.cpp')
-rw-r--r--src/parser/antlr_input.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/parser/antlr_input.cpp b/src/parser/antlr_input.cpp
index 915174982..a4bab5a8d 100644
--- a/src/parser/antlr_input.cpp
+++ b/src/parser/antlr_input.cpp
@@ -141,7 +141,7 @@ pANTLR3_INPUT_STREAM AntlrInputStream::getAntlr3InputStream() const {
AntlrInputStream*
AntlrInputStream::newFileInputStream(const std::string& name,
bool useMmap)
- throw (InputStreamException) {
+{
#ifdef _WIN32
if(useMmap) {
useMmap = false;
@@ -164,8 +164,7 @@ AntlrInputStream*
AntlrInputStream::newStreamInputStream(std::istream& input,
const std::string& name,
bool lineBuffered)
- throw (InputStreamException) {
-
+{
pANTLR3_INPUT_STREAM inputStream = NULL;
pANTLR3_UINT8 inputStringCopy = NULL;
LineBuffer* line_buffer = NULL;
@@ -223,8 +222,7 @@ AntlrInputStream::newStreamInputStream(std::istream& input,
AntlrInputStream*
AntlrInputStream::newStringInputStream(const std::string& input,
const std::string& name)
- throw (InputStreamException) {
-
+{
size_t input_size = input.size();
assert(input_size <= std::numeric_limits<uint32_t>::max());
@@ -510,8 +508,7 @@ std::string parseErrorHelper(const char* lineStart, int charPositionInLine, cons
}
void AntlrInput::parseError(const std::string& message, bool eofException)
- throw (ParserException) {
-
+{
string updatedMessage = parseErrorHelper((const char*)d_antlr3InputStream->getLineBuf(d_antlr3InputStream),
d_lexer->getCharPositionInLine(d_lexer),
message);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback