| 26 | }; |
| 27 | |
| 28 | struct ErrorFormat |
| 29 | { |
| 30 | ErrorFormat() = default; |
| 31 | ErrorFormat( const QString& regExp, int file, int line, int text, int column=-1 ); |
| 32 | ErrorFormat( const QString& regExp, int file, int line, int text, const QString& comp, int column=-1 ); |
| 33 | QRegularExpression expression; |
| 34 | int fileGroup; |
| 35 | int lineGroup, columnGroup; |
| 36 | int textGroup; |
| 37 | QString compiler; |
| 38 | |
| 39 | // Returns the column number starting with 0 as the first column |
| 40 | // If no match was found for columns or if index was not valid |
| 41 | // (i.e. less than zero) - 0 is returned. |
| 42 | int columnNumber(const QRegularExpressionMatch& match) const; |
| 43 | }; |
| 44 | |
| 45 | } |
| 46 | #endif |