| 58 | } |
| 59 | |
| 60 | QString ErrorItem::tool() const |
| 61 | { |
| 62 | if (errorId == CLANG_ANALYZER) |
| 63 | return CLANG_ANALYZER; |
| 64 | if (errorId.startsWith(CLANG_TIDY)) |
| 65 | return CLANG_TIDY; |
| 66 | if (errorId.startsWith("clang-")) |
| 67 | return "clang"; |
| 68 | return "cppcheck"; |
| 69 | } |
| 70 | |
| 71 | QString ErrorItem::toString() const |
| 72 | { |