A set of labels that belong to the same 1-based line number.
More...
#include <report.hpp>
A set of labels that belong to the same 1-based line number.
◆ LineGroup()
| pretty_diagnostics::LineGroup::LineGroup |
( |
size_t |
line_number, |
|
|
std::set< Label > |
labels |
|
) |
| |
Constructs a group for a single line and its labels.
- Parameters
-
| line_number | 1-based line number |
| labels | Labels associated with this line |
◆ labels() [1/2]
| std::set< Label > & pretty_diagnostics::LineGroup::labels |
( |
| ) |
|
|
inline |
Returns the set of labels for this line.
- Returns
- Reference to labels
◆ labels() [2/2]
| const std::set< Label > & pretty_diagnostics::LineGroup::labels |
( |
| ) |
const |
|
inline |
Returns the set of labels for this line.
- Returns
- Const reference to labels
◆ line_number()
| size_t pretty_diagnostics::LineGroup::line_number |
( |
| ) |
const |
|
inline |
Returns the 1-based line number.
- Returns
- 1-based line number of this group
The documentation for this class was generated from the following file: