The underlined source excerpt that goes below a diagnostic.
More...
#include <fe/snippet.h>
The underlined source excerpt that goes below a diagnostic.
Streams every source row Snippet::loc spans, each underlining the columns Snippet::loc covers on it. Streams nothing if Snippet::loc has no Loc::src or does not resolve within it.
Definition at line 15 of file snippet.h.
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | , |
|
|
const Snippet & | ) |
|
friend |
◆ color
◆ gutter
| uint32_t fe::Snippet::gutter = 5 |
Width of the line-number column.
Definition at line 18 of file snippet.h.
◆ loc
◆ max_rows
| uint32_t fe::Snippet::max_rows = 8 |
Rows streamed before the middle is elided; 0 elides nothing.
Definition at line 19 of file snippet.h.
The documentation for this struct was generated from the following file: