We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 037e860 + 04e12dc commit c12016bCopy full SHA for c12016b
jbmc/unit/java-testing-utils/require_goto_statements.h
@@ -34,19 +34,17 @@ class no_decl_found_exceptiont : public std::exception
34
{
35
public:
36
explicit no_decl_found_exceptiont(const std::string &var_name)
37
- : _varname(var_name)
+ : message{"Failed to find declaration for: " + var_name}
38
39
}
40
41
virtual const char *what() const throw()
42
43
- std::ostringstream stringStream;
44
- stringStream << "Failed to find declaration for: " << _varname;
45
- return stringStream.str().c_str();
+ return message.c_str();
46
47
48
private:
49
- std::string _varname;
+ std::string message;
50
};
51
52
pointer_assignment_locationt find_struct_component_assignments(
0 commit comments