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:
Frederich Munch 2016-08-16 06:44:17 -04:00 committed by sftnight
parent afe23db9d4
commit 378b926d72
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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(); }
};

View File

@ -59,7 +59,7 @@ namespace cling {
return "runtime_exception\n";
}
InvalidDerefException::~InvalidDerefException() {}
InvalidDerefException::~InvalidDerefException() noexcept {}
const char* InvalidDerefException::what() const noexcept {
// Invalid memory access.

View File

@ -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