A warning instance.
More...
|
| | warning (const std::string &serialized) |
| | Constructor. |
| |
| std::string | as_repr () const |
| | Get a representation of a warning object that includes information useful for debugging. |
| |
| std::string | as_string () const |
| | Get a simple string representation of a warning object. |
| |
| cs_hash_t | hash () const |
| | Get a hash value for a warning. |
| |
| void | retract () |
| | Manually retract a warning instance. |
| |
| std::string | serialize (void) const |
| | Serialize a warning instance. |
| |
|
(Note that these are not member symbols.)
|
| std::ostream & | operator<< (std::ostream &out, const warning &a) |
| |
|
| |
A warning instance.
- Returned by warningclass
report_return_warning() method (many overloads).
- Use to manually retract the warning, if necessary, during the drop phase of incremental analyses. You will only need to manually retract warnings if automatic retraction (managed by passing a warning_retraction_info argument to warningclass
report_return_warning() or report()) does not provide sufficient flexibility.
See the manual section on Warnings: Instances and Groups for more information about warning instances.
◆ warning()
| cs::warning::warning |
( |
const std::string & |
serialized | ) |
|
|
inline |
Constructor.
- Parameters
-
| [in] | serialized | A serialized warning instance, as produced by serialize(). |
- Exceptions
-
◆ as_repr()
| std::string cs::warning::as_repr |
( |
| ) |
const |
|
inline |
Get a representation of a warning object that includes information useful for debugging.
- Returns
- The string representation.
◆ as_string()
| std::string cs::warning::as_string |
( |
| ) |
const |
|
inline |
Get a simple string representation of a warning object.
- Returns
- The string representation.
◆ hash()
| cs_hash_t cs::warning::hash |
( |
| ) |
const |
|
inline |
◆ retract()
| void cs::warning::retract |
( |
| ) |
|
|
inline |
Manually retract a warning instance.
- Returns
- void
- Exceptions
-
Call this method in a drop phase visitor to manually retract a warning instance. Support for calling this function from visitors in other analysis phases is experimental and may be removed in future versions.
◆ serialize()
| std::string cs::warning::serialize |
( |
void |
| ) |
const |
|
inline |
Serialize a warning instance.
- Returns
- The serialized form of the warning instance.
◆ operator<<()
| std::ostream & operator<< |
( |
std::ostream & |
out, |
|
|
const warning & |
a |
|
) |
| |
|
related |
Print a representation of a warning object to the specified stream.
- Parameters
-
| [in] | out | The stream to print to. |
| [in] | a | The warning object to print. |
- Returns
- void
The documentation for this class was generated from the following file: