|
FE 0.13.1
Header-only C++ frontend library
|
The underlined source excerpt that goes below a diagnostic. More...
#include <fe/snippet.h>
Public Attributes | |
| Loc | loc |
| term::FG | color = term::FG::Red |
| uint32_t | gutter = 5 |
| Width of the line-number column. | |
| uint32_t | max_rows = 8 |
| Rows streamed before the middle is elided; 0 elides nothing. | |
Friends | |
| std::ostream & | operator<< (std::ostream &, const Snippet &) |
| fe/snippet.h merely declares this. | |
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.
|
friend |
fe/snippet.h merely declares this.
Link fe-lib for the default implementation, or provide your own in namespace fe.
| term::FG fe::Snippet::color = term::FG::Red |
| uint32_t fe::Snippet::gutter = 5 |
| uint32_t fe::Snippet::max_rows = 8 |