diff options
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/error.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh index 348018f57..e31311c80 100644 --- a/src/libutil/error.hh +++ b/src/libutil/error.hh @@ -102,6 +102,15 @@ struct ErrPos { } }; +std::optional<LinesOfCode> getCodeLines(const ErrPos & errPos); +void printCodeLines(std::ostream & out, + const std::string & prefix, + const ErrPos & errPos, + const LinesOfCode & loc); + +void printAtPos(const ErrPos & pos, std::ostream & out); + + struct Trace { std::optional<ErrPos> pos; hintformat hint; |