Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions jbmc/unit/java-testing-utils/require_goto_statements.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,17 @@ class no_decl_found_exceptiont : public std::exception
{
public:
explicit no_decl_found_exceptiont(const std::string &var_name)
: _varname(var_name)
: message{"Failed to find declaration for: " + var_name}
{
}

virtual const char *what() const throw()
{
std::ostringstream stringStream;
stringStream << "Failed to find declaration for: " << _varname;
return stringStream.str().c_str();
return message.c_str();
}

private:
std::string _varname;
std::string message;
};

pointer_assignment_locationt find_struct_component_assignments(
Expand Down