Skip to content

Commit

Permalink
Merge pull request #8134 from tautschnig/cleanup/parser-messaget-prep
Browse files Browse the repository at this point in the history
Permit constructing parsert with a message handler
  • Loading branch information
kroening authored Dec 20, 2023
2 parents 1068770 + c33db82 commit f0c2391
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/util/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Author: Daniel Kroening, [email protected]
#ifndef CPROVER_UTIL_PARSER_H
#define CPROVER_UTIL_PARSER_H

#include "deprecate.h"
#include "expr.h"
#include "message.h"

Expand Down Expand Up @@ -39,7 +40,13 @@ class parsert
last_line.clear();
}

DEPRECATED(SINCE(2023, 12, 20, "use parsert(message_handler) instead"))
parsert():in(nullptr) { clear(); }
explicit parsert(message_handlert &message_handler)
: in(nullptr), log(message_handler)
{
clear();
}
virtual ~parsert() { }

// The following are for the benefit of the scanner
Expand Down

0 comments on commit f0c2391

Please sign in to comment.