Match exception specification for InterpreterException.
Some compilers are complaining about the mismatching exception specifications between destructors of InterpreterException and its subclasses. Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
This commit is contained in:
parent
afe23db9d4
commit
378b926d72
@ -42,7 +42,7 @@ namespace cling {
|
||||
DerefType m_Type;
|
||||
public:
|
||||
InvalidDerefException(clang::Sema* S, clang::Expr* E, DerefType type);
|
||||
virtual ~InvalidDerefException();
|
||||
virtual ~InvalidDerefException() noexcept;
|
||||
|
||||
const char* what() const noexcept override;
|
||||
void diagnose() const override;
|
||||
|
@ -32,7 +32,7 @@ namespace cling {
|
||||
public:
|
||||
CompilationException(const std::string& reason):
|
||||
std::runtime_error(reason) {}
|
||||
~CompilationException() throw(); // vtable pinned to UserInterface.cpp
|
||||
~CompilationException() noexcept; // vtable pinned to UserInterface.cpp
|
||||
virtual const char* what() const throw() {
|
||||
return std::runtime_error::what(); }
|
||||
};
|
||||
|
@ -59,7 +59,7 @@ namespace cling {
|
||||
return "runtime_exception\n";
|
||||
}
|
||||
|
||||
InvalidDerefException::~InvalidDerefException() {}
|
||||
InvalidDerefException::~InvalidDerefException() noexcept {}
|
||||
|
||||
const char* InvalidDerefException::what() const noexcept {
|
||||
// Invalid memory access.
|
||||
|
@ -111,7 +111,7 @@ namespace {
|
||||
|
||||
namespace cling {
|
||||
// Declared in CompilationException.h; vtable pinned here.
|
||||
CompilationException::~CompilationException() throw() {}
|
||||
CompilationException::~CompilationException() noexcept {}
|
||||
|
||||
UserInterface::UserInterface(Interpreter& interp) {
|
||||
// We need stream that doesn't close its file descriptor, thus we are not
|
||||
|
Loading…
Reference in New Issue
Block a user