-
Notifications
You must be signed in to change notification settings - Fork 274
Invariant with diagnostics #2906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,9 @@ Author: Daniel Kroening, [email protected] | |
#define CPROVER_UTIL_DSTRING_H | ||
|
||
#include <iosfwd> | ||
#include <string> | ||
|
||
#include "invariant.h" | ||
#include "string_container.h" | ||
|
||
/// \ref dstringt has one field, an unsigned integer \ref no which is an index | ||
|
@@ -198,4 +200,13 @@ struct hash<dstringt> // NOLINT(readability/identifiers) | |
}; | ||
} | ||
|
||
template <> | ||
struct diagnostics_helpert<dstringt> | ||
{ | ||
static std::string diagnostics_as_string(const dstringt &dstring) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm considering making this a function that takes a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can leave this for future work I'd say :) |
||
{ | ||
return as_string(dstring); | ||
} | ||
}; | ||
|
||
#endif // CPROVER_UTIL_DSTRING_H |
Uh oh!
There was an error while loading. Please reload this page.