| 587 | } |
| 588 | |
| 589 | string reportError(const struct LineInfo & at, const string & message, |
| 590 | const string & extra, const string & fixme, CompilationError erc) { |
| 591 | const char * src = nullptr; |
| 592 | uint32_t len = 0; |
| 593 | if ( at.fileInfo ) at.fileInfo->getSourceAndLength(src, len); |
| 594 | return reportError( |
| 595 | src, len, |
| 596 | at.fileInfo ? at.fileInfo->name.c_str() : nullptr, |
| 597 | at.line, at.column, at.last_line, at.last_column, |
| 598 | at.fileInfo ? at.fileInfo->tabSize : 4, |
| 599 | message, extra, fixme, erc ); |
| 600 | } |
| 601 | |
| 602 | string reportError ( const char * st, uint32_t stlen, const char * fileName, |
| 603 | int row, int col, int lrow, int lcol, int tabSize, const string & message, |
no test coverage detected