Flag class: describes properties of a warningclass.
More...
|
| static const warningclass_flags | FORCE_PATH |
| | Singleton set containing the "force_path" flag: warnings of this class will always be treated as "pathy", even if they are reported using a warningclass.report() or warningclass.report_return_warning() overload that would otherwise indicate a pathless warning. |
| |
| static const warningclass_flags | NONE |
| | Empty set: contains no flags. |
| |
| static const warningclass_flags | PAD_ABOVE |
| | Singleton set containing the "pad above" flag: in the warning report, pad before the beginning of the warning proper with additional lines of code. |
| |
| static const warningclass_flags | PAD_BELOW |
| | Singleton set containing the "pad below" flag: In the warning report, pad after the end of the warning proper with additional lines of code. |
| |
| static const warningclass_flags | PADDING |
| | Set containing the "pad below" and "pad above" flags: in the warning report, pad both before and after the warning proper with additional lines of code. |
| |
| static const warningclass_flags | SHOW_ENTIRE_PROCEDURE |
| | Singleton set containing the "show entire
procedure" flag: if any part of a procedure appears on a path, show the entire procedure in the warning report. |
| |
| static const warningclass_flags | WARNING_POINT_IS_START_POINT |
| | The start point of the path is most interesting (not the end point). |
| |
Flag class: describes properties of a warningclass.
◆ as_integer()
| csint64 cs::warningclass_flags::as_integer |
( |
| ) |
const |
|
inline |
Get an integer representation of this.
- Returns
- An integer suitable for use with from_integer().
Invariant: For warningclass_flags x, warningclass_flags.from_integer(x.as_integer()) == x
◆ as_repr()
| std::string cs::warningclass_flags::as_repr |
( |
| ) |
const |
|
inline |
Get a representation of a warningclass_flags object that includes information useful for debugging.
- Returns
- The string representation.
◆ as_string()
| std::string cs::warningclass_flags::as_string |
( |
| ) |
const |
|
inline |
Get a simple string representation of a warningclass_flags object.
- Returns
- The string representation.
◆ cmp()
Comparison function for warningclass_flags, with respect to a stable overall ordering.
- Parameters
-
- Returns
- An integer N such that:
-
N==0 if the two objects compare equal
-
N<0 if
this < other
-
N>0 if
this > other
◆ from_integer()
Construct an instance from an integer representation.
- Parameters
-
| [in] | _inner | The integer representation, as returned by as_integer(). |
Invariant: For warningclass_flags x, warningclass_flags.from_integer(x.as_integer()) == x
- Exceptions
-
◆ hash()
| cs_hash_t cs::warningclass_flags::hash |
( |
| ) |
const |
|
inline |
◆ name()
| std::string cs::warningclass_flags::name |
( |
| ) |
const |
|
inline |
◆ operator&=()
AND-assign operator.
- Returns
- A warningclass_flags object containing the flags that are contained in both
this and other.
◆ operator|=()
OR-assign operator.
- Returns
- A warningclass_flags object containing the flags that are contained in
this, other, or both.
◆ operator~()
Complementation operator.
- Returns
- A warningclass_flags object containing the flags that are NOT contained in
this.
◆ operator!=()
◆ operator&()
◆ operator<()
◆ operator<<()
Print a representation of a warningclass_flags object to the specified stream.
- Parameters
-
- Returns
- void
◆ operator<=()
◆ operator==()
◆ operator>()
◆ operator>=()
◆ operator|()
◆ FORCE_PATH
Singleton set containing the "force_path" flag: warnings of this class will always be treated as "pathy", even if they are reported using a warningclass.report() or warningclass.report_return_warning() overload that would otherwise indicate a pathless warning.
This affects various presentation heuristics for the displayed warning. The main application of this flag is for importing warnings from other tools where a list of locations is known to actually represent a path.
◆ NONE
Empty set: contains no flags.
◆ PAD_ABOVE
Singleton set containing the "pad above" flag: in the warning report, pad before the beginning of the warning proper with additional lines of code.
◆ PAD_BELOW
Singleton set containing the "pad below" flag: In the warning report, pad after the end of the warning proper with additional lines of code.
◆ PADDING
Set containing the "pad below" and "pad above" flags: in the warning report, pad both before and after the warning proper with additional lines of code.
◆ SHOW_ENTIRE_PROCEDURE
Singleton set containing the "show entire
procedure" flag: if any part of a procedure appears on a path, show the entire procedure in the warning report.
◆ WARNING_POINT_IS_START_POINT
The start point of the path is most interesting (not the end point).
The documentation for this class was generated from the following file: